예제 #1
0
 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'])
예제 #2
0
 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'])