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


Python MockHost.skipped_layout_tests方法代码示例

本文整理汇总了Python中webkitpy.common.host_mock.MockHost.skipped_layout_tests方法的典型用法代码示例。如果您正苦于以下问题:Python MockHost.skipped_layout_tests方法的具体用法?Python MockHost.skipped_layout_tests怎么用?Python MockHost.skipped_layout_tests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在webkitpy.common.host_mock.MockHost的用法示例。


在下文中一共展示了MockHost.skipped_layout_tests方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_skipped_entry_dont_exist

# 需要导入模块: from webkitpy.common.host_mock import MockHost [as 别名]
# 或者: from webkitpy.common.host_mock.MockHost import skipped_layout_tests [as 别名]
 def test_skipped_entry_dont_exist(self):
     port = MockHost().port_factory.get('qt')
     expectations_dict = OrderedDict()
     expectations_dict['expectations'] = ''
     port.expectations_dict = lambda: expectations_dict
     port.skipped_layout_tests = lambda tests: set(['foo/bar/baz.html'])
     capture = OutputCapture()
     capture.capture_output()
     exp = TestExpectations(port)
     _, _, logs = capture.restore_output()
     self.assertEqual('The following test foo/bar/baz.html from the Skipped list doesn\'t exist\n', logs)
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:13,代码来源:test_expectations_unittest.py

示例2: check

# 需要导入模块: from webkitpy.common.host_mock import MockHost [as 别名]
# 或者: from webkitpy.common.host_mock.MockHost import skipped_layout_tests [as 别名]
 def check(self, expectations, overrides, skips, lint=False, expected_results=[WONTFIX, SKIP, FAIL]):
     port = MockHost().port_factory.get('test-win-xp')
     port._filesystem.write_text_file(port._filesystem.join(port.layout_tests_dir(), 'failures/expected/text.html'), 'foo')
     expectations_dict = OrderedDict()
     expectations_dict['expectations'] = expectations
     if overrides:
         expectations_dict['overrides'] = overrides
     port.expectations_dict = lambda: expectations_dict
     port.skipped_layout_tests = lambda tests: set(skips)
     expectations_to_lint = expectations_dict if lint else None
     exp = TestExpectations(port, ['failures/expected/text.html'], expectations_dict=expectations_to_lint, is_lint_mode=lint)
     self.assertEqual(exp.get_expectations('failures/expected/text.html'), set(expected_results))
开发者ID:howardroark2018,项目名称:chromium,代码行数:14,代码来源:test_expectations_unittest.py

示例3: check

# 需要导入模块: from webkitpy.common.host_mock import MockHost [as 别名]
# 或者: from webkitpy.common.host_mock.MockHost import skipped_layout_tests [as 别名]
    def check(self, expectations, overrides, skips, lint=False):
        port = MockHost().port_factory.get('qt')
        port._filesystem.write_text_file(port._filesystem.join(port.layout_tests_dir(), 'failures/expected/text.html'), 'foo')
        port.test_expectations = lambda: expectations
        port.test_expectations_overrides = lambda: overrides
        port.skipped_layout_tests = lambda tests: set(skips)
        exp = TestExpectations(port, ['failures/expected/text.html'], lint)

        # Check that the expectation is for BUG_DUMMY SKIP : ... = PASS
        self.assertEquals(exp.get_modifiers('failures/expected/text.html'),
                          [TestExpectationParser.DUMMY_BUG_MODIFIER, TestExpectationParser.SKIP_MODIFIER])
        self.assertEquals(exp.get_expectations('failures/expected/text.html'), set([PASS]))
开发者ID:dzhshf,项目名称:WebKit,代码行数:14,代码来源:test_expectations_unittest.py

示例4: check

# 需要导入模块: from webkitpy.common.host_mock import MockHost [as 别名]
# 或者: from webkitpy.common.host_mock.MockHost import skipped_layout_tests [as 别名]
    def check(self, expectations, overrides, skips, lint=False):
        port = MockHost().port_factory.get('qt')
        port._filesystem.write_text_file(port._filesystem.join(port.layout_tests_dir(), 'failures/expected/text.html'), 'foo')
        expectations_dict = OrderedDict()
        expectations_dict['expectations'] = expectations
        if overrides:
            expectations_dict['overrides'] = overrides
        port.expectations_dict = lambda: expectations_dict
        port.skipped_layout_tests = lambda tests: set(skips)
        expectations_to_lint = expectations_dict if lint else None
        exp = TestExpectations(port, ['failures/expected/text.html'], expectations_to_lint=expectations_to_lint)

        # Check that the expectation is for BUG_DUMMY SKIP : ... [ Pass ]
        self.assertEqual(exp.get_modifiers('failures/expected/text.html'),
                          [TestExpectationParser.DUMMY_BUG_MODIFIER, TestExpectationParser.SKIP_MODIFIER, TestExpectationParser.WONTFIX_MODIFIER])
        self.assertEqual(exp.get_expectations('failures/expected/text.html'), set([PASS]))
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:18,代码来源:test_expectations_unittest.py


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