Exemplo n.º 1
0
        def __init__(self, options, spawn_wpt_func=None):
            self.port = MockPort()
            self.host = MockHost()

            # In non-test environments, this value is by default set to the WEBKIT_TEST_CHILD_PROCESSES
            # env value or, if that's not present, to the default number of child processes. Here we
            # manually set it to 4 for consistency, unless the test case specifies it.
            if not options.child_processes:
                options.child_processes = 4

            self.runner = WPTRunner(self.port, self.host, "wptrunner_unittest", options,
                WPTRunnerTest.MockTestDownloader, WPTRunnerTest.MockWebDriver.create, spawn_wpt_func)
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        MockHost.__init__(self, *args, **kwargs)

        self._deprecated_port = MockPort()
        self.ews_server = MockEWSServer()

        self.wakeup_event = threading.Event()
Exemplo n.º 3
0
    class TestInstance(object):
        def __init__(self, options, spawn_wpt_func=None):
            self.port = MockPort()
            self.host = MockHost()

            # In non-test environments, this value is by default set to the WEBKIT_TEST_CHILD_PROCESSES
            # env value or, if that's not present, to the default number of child processes. Here we
            # manually set it to 4 for consistency, unless the test case specifies it.
            if not options.child_processes:
                options.child_processes = 4

            self.runner = WPTRunner(self.port, self.host, "wptrunner_unittest",
                                    options, WPTRunnerTest.MockTestDownloader,
                                    WPTRunnerTest.MockWebDriver.create,
                                    spawn_wpt_func)

        def prepare_mock_files_for_run(self):
            self.host.filesystem.maybe_make_directory(
                self.port.wpt_metadata_directory())
            self.host.filesystem.write_text_file(
                "/mock-checkout/WebPlatformTests/MockPort/TestExpectations.json",
                "{}")
            self.host.filesystem.write_text_file(
                "/mock-checkout/WebPlatformTests/MockPort/TestManifest.ini",
                "{}")
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        MockHost.__init__(self, *args, **kwargs)

        self._deprecated_port = MockPort()
        self.status_server = MockStatusServer()

        self._irc = None
        self.irc_password = "******"
        self.wakeup_event = threading.Event()
Exemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        MockHost.__init__(self, *args, **kwargs)

        self._deprecated_port = MockPort()