def test_skipped_specifiers_when_test_is_wontfix(self): host = self.mock_host() expectations_path = '/test.checkout/LayoutTests/NeverFixTests' host.filesystem.write_text_file( expectations_path, 'crbug.com/111 [ Linux ] external/wpt/test.html [ WontFix ]\n') host.filesystem.write_text_file('/test.checkout/LayoutTests/external/wpt/test.html', '') updater = WPTExpectationsUpdater(host) self.assertEqual(updater.skipped_specifiers('external/wpt/test.html'), ['Precise', 'Trusty'])
def test_skipped_specifiers_when_test_is_wontfix(self): host = self.mock_host() expectations_path = '/test.checkout/LayoutTests/NeverFixTests' host.filesystem.files[ expectations_path] = 'crbug.com/111 [ Trusty ] external/wpt/test.html [ WontFix ]\n' host.filesystem.files[ '/test.checkout/LayoutTests/external/wpt/test.html'] = '' updater = WPTExpectationsUpdater(host) self.assertEqual(updater.skipped_specifiers('external/wpt/test.html'), ['Trusty'])