Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py

Issue 2432883003: Update all non-generic test expectations files for removed tests when updating w3c tests. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import unittest 5 import unittest
6 6
7 from webkitpy.w3c.deps_updater import DepsUpdater 7 from webkitpy.w3c.deps_updater import DepsUpdater
8 from webkitpy.common.host_mock import MockHost 8 from webkitpy.common.host_mock import MockHost
9 from webkitpy.common.system.filesystem_mock import MockFileSystem 9 from webkitpy.common.system.filesystem_mock import MockFileSystem
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 'Bug(test) some/test/c.html [ Failure ]\n') 75 'Bug(test) some/test/c.html [ Failure ]\n')
76 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/Vir tualTestSuites'] = '[]' 76 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/Vir tualTestSuites'] = '[]'
77 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/new /a.html'] = '' 77 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/new /a.html'] = ''
78 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/new /b.html'] = '' 78 host.filesystem.files['/mock-checkout/third_party/WebKit/LayoutTests/new /b.html'] = ''
79 updater = DepsUpdater(host) 79 updater = DepsUpdater(host)
80 deleted_tests = ['some/test/b.html'] 80 deleted_tests = ['some/test/b.html']
81 renamed_test_pairs = { 81 renamed_test_pairs = {
82 'some/test/a.html': 'new/a.html', 82 'some/test/a.html': 'new/a.html',
83 'some/test/c.html': 'new/c.html', 83 'some/test/c.html': 'new/c.html',
84 } 84 }
85 updater.update_test_expectations(deleted_tests, renamed_test_pairs) 85 updater.update_all_test_expectations_files(deleted_tests, renamed_test_p airs)
86 self.assertMultiLineEqual( 86 self.assertMultiLineEqual(
87 host.filesystem.read_text_file('/mock-checkout/third_party/WebKit/La youtTests/TestExpectations'), 87 host.filesystem.read_text_file('/mock-checkout/third_party/WebKit/La youtTests/TestExpectations'),
88 ('Bug(test) new/a.html [ Failure ]\n' 88 ('Bug(test) new/a.html [ Failure ]\n'
89 'Bug(test) new/c.html [ Failure ]\n')) 89 'Bug(test) new/c.html [ Failure ]\n'))
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698