def test_has_changes_in_wpt_looks_at_start_of_string(self): host = MockHost() def run_command_fn(_): return ("something/something.html\n" "something/third_party/WebKit/LayoutTests/imported/wpt/something.html\n") host.executive = MockExecutive2(run_command_fn=run_command_fn) chromium_wpt = ChromiumWPT(host) self.assertFalse(chromium_wpt.has_changes_in_wpt('sha'))
def test_has_changes_in_wpt_does_not_count_expectation_files(self): host = MockHost() def run_command_fn(_): return ("something/something.html\n" "third_party/WebKit/LayoutTests/imported/wpt/something-expected.html\n" "-expected.txt\n") host.executive = MockExecutive2(run_command_fn=run_command_fn) chromium_wpt = ChromiumWPT(host) self.assertFalse(chromium_wpt.has_changes_in_wpt('sha'))