コード例 #1
0
 def test_is_js_test_false(self):
     host = self.mock_host()
     host.filesystem.files[
         '/mock-checkout/third_party/WebKit/LayoutTests/foo/bar.html'] = (
             '<script src="ref-test.html"></script>')
     updater = WPTExpectationsUpdater(host)
     self.assertFalse(updater.is_js_test('foo/bar.html'))
コード例 #2
0
 def test_is_js_test_true(self):
     host = self.mock_host()
     host.filesystem.files[
         '/mock-checkout/third_party/WebKit/LayoutTests/foo/bar.html'] = (
             '<script src="/resources/testharness.js"></script>')
     updater = WPTExpectationsUpdater(host)
     self.assertTrue(updater.is_js_test('foo/bar.html'))
コード例 #3
0
 def test_is_js_test_non_existent_file(self):
     updater = WPTExpectationsUpdater(self.mock_host())
     self.assertFalse(updater.is_js_test('foo/bar.html'))