当前位置: 首页>>代码示例>>Python>>正文


Python TestImporter.find_importable_tests方法代码示例

本文整理汇总了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
             }
         ])
开发者ID:,项目名称:,代码行数:27,代码来源:

示例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, [])
开发者ID:,项目名称:,代码行数:12,代码来源:

示例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,
             }
         ])
开发者ID:mirror,项目名称:chromium,代码行数:21,代码来源:test_importer_unittest.py


注:本文中的webkitpy.w3c.test_importer.TestImporter.find_importable_tests方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。