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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_baselines_unittest.py

Issue 2679173005: Rename Host.scm -> Host.git. (Closed)
Patch Set: Created 3 years, 10 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
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 optparse 5 import optparse
6 6
7 from webkitpy.common.system.output_capture import OutputCapture 7 from webkitpy.common.system.output_capture import OutputCapture
8 from webkitpy.tool.commands.optimize_baselines import OptimizeBaselines 8 from webkitpy.tool.commands.optimize_baselines import OptimizeBaselines
9 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase 9 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase
10 10
(...skipping 13 matching lines...) Expand all
24 self._write_test_file(test_port, 'another/test.html', "Dummy test conten ts") 24 self._write_test_file(test_port, 'another/test.html', "Dummy test conten ts")
25 self._write_test_file(test_port, 'platform/test-mac-mac10.10/another/tes t-expected.txt', "result A") 25 self._write_test_file(test_port, 'platform/test-mac-mac10.10/another/tes t-expected.txt', "result A")
26 self._write_test_file(test_port, 'platform/test-mac-mac10.10/another/tes t-expected.png', "result A png") 26 self._write_test_file(test_port, 'platform/test-mac-mac10.10/another/tes t-expected.png', "result A png")
27 self._write_test_file(test_port, 'another/test-expected.txt', "result A" ) 27 self._write_test_file(test_port, 'another/test-expected.txt', "result A" )
28 self._write_test_file(test_port, 'another/test-expected.png', "result A png") 28 self._write_test_file(test_port, 'another/test-expected.png', "result A png")
29 29
30 try: 30 try:
31 oc = OutputCapture() 31 oc = OutputCapture()
32 oc.capture_output() 32 oc.capture_output()
33 self.command.execute( 33 self.command.execute(
34 optparse.Values({'suffixes': 'txt,wav,png', 'no_modify_scm': Tru e, 'platform': 'test-mac-mac10.10'}), 34 optparse.Values({'suffixes': 'txt,wav,png', 'no_modify_git': Tru e, 'platform': 'test-mac-mac10.10'}),
35 ['another/test.html'], 35 ['another/test.html'],
36 self.tool) 36 self.tool)
37 finally: 37 finally:
38 oc.restore_output() 38 oc.restore_output()
39 39
40 self.assertFalse( 40 self.assertFalse(
41 self.tool.filesystem.exists(self.tool.filesystem.join( 41 self.tool.filesystem.exists(self.tool.filesystem.join(
42 test_port.layout_tests_dir(), 'platform/mac/another/test-expecte d.txt'))) 42 test_port.layout_tests_dir(), 'platform/mac/another/test-expecte d.txt')))
43 self.assertFalse( 43 self.assertFalse(
44 self.tool.filesystem.exists(self.tool.filesystem.join( 44 self.tool.filesystem.exists(self.tool.filesystem.join(
45 test_port.layout_tests_dir(), 'platform/mac/another/test-expecte d.png'))) 45 test_port.layout_tests_dir(), 'platform/mac/another/test-expecte d.png')))
46 self.assertTrue( 46 self.assertTrue(
47 self.tool.filesystem.exists(self.tool.filesystem.join( 47 self.tool.filesystem.exists(self.tool.filesystem.join(
48 test_port.layout_tests_dir(), 'another/test-expected.txt'))) 48 test_port.layout_tests_dir(), 'another/test-expected.txt')))
49 self.assertTrue( 49 self.assertTrue(
50 self.tool.filesystem.exists(self.tool.filesystem.join( 50 self.tool.filesystem.exists(self.tool.filesystem.join(
51 test_port.layout_tests_dir(), 'another/test-expected.png'))) 51 test_port.layout_tests_dir(), 'another/test-expected.png')))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698