OLD | NEW |
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 Loading... |
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')) |
OLD | NEW |