mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb+Tests: Add internal property for echo server port
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
namespace Web::Internals {
|
||||
|
||||
static u16 s_echo_server_port { 0 };
|
||||
|
||||
GC_DEFINE_ALLOCATOR(Internals);
|
||||
|
||||
Internals::Internals(JS::Realm& realm)
|
||||
@@ -207,4 +209,14 @@ String Internals::get_computed_label(DOM::Element& element)
|
||||
return MUST(element.accessible_name(active_document));
|
||||
}
|
||||
|
||||
u16 Internals::get_echo_server_port()
|
||||
{
|
||||
return s_echo_server_port;
|
||||
}
|
||||
|
||||
void Internals::set_echo_server_port(u16 const port)
|
||||
{
|
||||
s_echo_server_port = port;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user