Bug 1448882 [wpt PR 10175] - Add base protocol to ConnectionlessProtocol., a=testonly
authorJosh Matthews <josh@joshmatthews.net>
Mon, 09 Apr 2018 18:11:40 +0000
changeset 467182 739a2ad639eb6b8910970d236031b6cf0f5d6dd4
parent 467181 6a0124ceb8963b3ee42b443f30e155239f44ae84
child 467183 ef9bce229bcce13d8bbbecd8d51d388adb9c0702
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1448882, 10175
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1448882 [wpt PR 10175] - Add base protocol to ConnectionlessProtocol., a=testonly Automatic update from web-platform-testsAdd base protocol to ConnectionlessProtocol. wpt-commits: 3b57b118a10cc6ec05c8d7aeb30ec6faadc729ad wpt-pr: 10175 wpt-commits: 3b57b118a10cc6ec05c8d7aeb30ec6faadc729ad wpt-pr: 10175
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/base.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/base.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/base.py
@@ -3,17 +3,17 @@ import httplib
 import os
 import threading
 import traceback
 import socket
 import urlparse
 from abc import ABCMeta, abstractmethod
 
 from ..testrunner import Stop
-from protocol import Protocol
+from protocol import Protocol, BaseProtocolPart
 
 here = os.path.split(__file__)[0]
 
 # Extra timeout to use after internal test timeout at which the harness
 # should force a timeout
 extra_timeout = 5  # seconds
 
 
@@ -406,17 +406,33 @@ class WdspecRun(object):
             if message:
                 message += "\n"
             message += traceback.format_exc(e)
             self.result = False, ("ERROR", message)
         finally:
             self.result_flag.set()
 
 
+class ConnectionlessBaseProtocolPart(BaseProtocolPart):
+    def execute_script(self, script, async=False):
+        pass
+
+    def set_timeout(self, timeout):
+        pass
+
+    def wait(self):
+        pass
+
+    def set_window(self, handle):
+        pass
+
+
 class ConnectionlessProtocol(Protocol):
+    implements = [ConnectionlessBaseProtocolPart]
+
     def connect(self):
         pass
 
     def after_connect(self):
         pass
 
 
 class WebDriverProtocol(Protocol):