本文整理汇总了Python中webkitpy.w3c.test_importer.TestImporter.find_importable_tests方法的典型用法代码示例。如果您正苦于以下问题:Python TestImporter.find_importable_tests方法的具体用法?Python TestImporter.find_importable_tests怎么用?Python TestImporter.find_importable_tests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webkitpy.w3c.test_importer.TestImporter
的用法示例。
在下文中一共展示了TestImporter.find_importable_tests方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ref_test_with_ref_is_copied
# 需要导入模块: from webkitpy.w3c.test_importer import TestImporter [as 别名]
# 或者: from webkitpy.w3c.test_importer.TestImporter import find_importable_tests [as 别名]
def test_ref_test_with_ref_is_copied(self):
host = MockHost()
host.filesystem = MockFileSystem(files={
'/blink/w3c/dir1/my-ref-test.html': '<html><head><link rel="match" href="ref-file.html" />test</head></html>',
'/blink/w3c/dir1/ref-file.html': '<html><head>test</head></html>',
'/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations': '',
'/mock-checkout/third_party/WebKit/Source/core/css/CSSProperties.in': '',
})
importer = TestImporter(host, FAKE_SOURCE_REPO_DIR, self.options())
importer.find_importable_tests()
self.assertEqual(
importer.import_list,
[
{
'copy_list': [
{'src': '/blink/w3c/dir1/ref-file.html', 'dest': 'ref-file.html'},
{'src': '/blink/w3c/dir1/ref-file.html', 'dest': 'my-ref-test-expected.html', 'reference_support_info': {}},
{'src': '/blink/w3c/dir1/my-ref-test.html', 'dest': 'my-ref-test.html'}
],
'dirname': '/blink/w3c/dir1',
'jstests': 0,
'reftests': 1,
'total_tests': 1
}
])
示例2: test_ref_test_without_ref_is_skipped
# 需要导入模块: from webkitpy.w3c.test_importer import TestImporter [as 别名]
# 或者: from webkitpy.w3c.test_importer.TestImporter import find_importable_tests [as 别名]
def test_ref_test_without_ref_is_skipped(self):
host = MockHost()
host.filesystem = MockFileSystem(files={
'/blink/w3c/dir1/my-ref-test.html': '<html><head><link rel="match" href="not-here.html" /></head></html>',
'/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations': '',
'/mock-checkout/third_party/WebKit/Source/core/css/CSSProperties.in': '',
})
importer = TestImporter(host, FAKE_SOURCE_REPO_DIR, self.options())
importer.find_importable_tests()
self.assertEqual(importer.import_list, [])
示例3: test_does_not_import_owner_files
# 需要导入模块: from webkitpy.w3c.test_importer import TestImporter [as 别名]
# 或者: from webkitpy.w3c.test_importer.TestImporter import find_importable_tests [as 别名]
def test_does_not_import_owner_files(self):
host = MockHost()
host.filesystem = MockFileSystem(files=FAKE_FILES)
importer = TestImporter(host, FAKE_SOURCE_REPO_DIR, self.options())
importer.find_importable_tests()
self.assertEqual(
importer.import_list,
[
{
'copy_list': [
{'dest': 'has_shebang.txt', 'src': '/blink/w3c/dir/has_shebang.txt'},
{'dest': 'README.txt', 'src': '/blink/w3c/dir/README.txt'}
],
'dirname': '/blink/w3c/dir',
'jstests': 0,
'reftests': 0,
'total_tests': 0,
}
])