예제 #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)
예제 #2
0
파일: mocktool.py 프로젝트: eocanha/webkit
    def __init__(self, *args, **kwargs):
        MockHost.__init__(self, *args, **kwargs)

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

        self.wakeup_event = threading.Event()
예제 #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",
                "{}")
예제 #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()
예제 #5
0
파일: mocktool.py 프로젝트: wxg0/miniblink
    def __init__(self, *args, **kwargs):
        MockHost.__init__(self, *args, **kwargs)

        self._deprecated_port = MockPort()