Ejemplo n.º 1
0
 def test_runtime_feature_list(self):
     port = WebKitPort(MockSystemHost())
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "Nonsense"
     # runtime_features_list returns None when its results are meaningless (it couldn't run DRT or parse the output, etc.)
     self.assertEquals(port._runtime_feature_list(), None)
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "SupportedFeatures:foo bar"
     self.assertEquals(port._runtime_feature_list(), ['foo', 'bar'])
Ejemplo n.º 2
0
 def test_runtime_feature_list(self):
     port = WebKitPort(MockHost())
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "Nonsense"
     # runtime_features_list returns None when its results are meaningless (it couldn't run DRT or parse the output, etc.)
     self.assertEquals(port._runtime_feature_list(), None)
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "SupportedFeatures:foo bar"
     self.assertEquals(port._runtime_feature_list(), ['foo', 'bar'])
Ejemplo n.º 3
0
 def test_runtime_feature_list(self):
     port = WebKitPort(executive=MockExecutive())
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "Nonsense"
     self.assertEquals(port._runtime_feature_list(), [])
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "SupportedFeatures:foo bar"
     self.assertEquals(port._runtime_feature_list(), ['foo', 'bar'])
Ejemplo n.º 4
0
 def test_runtime_feature_list(self):
     port = WebKitPort(executive=MockExecutive())
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "Nonsense"
     self.assertEquals(port._runtime_feature_list(), [])
     port._executive.run_command = lambda command, cwd=None, error_handler=None: "SupportedFeatures:foo bar"
     self.assertEquals(port._runtime_feature_list(), ["foo", "bar"])