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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/baseline_optimizer_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
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/git_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 '/mock-checkout/third_party/WebKit/LayoutTests/platform/win': 'a aa', 52 '/mock-checkout/third_party/WebKit/LayoutTests/platform/win': 'a aa',
53 '/mock-checkout/third_party/WebKit/LayoutTests/platform/mac': 'a aa', 53 '/mock-checkout/third_party/WebKit/LayoutTests/platform/mac': 'a aa',
54 '/mock-checkout/third_party/WebKit/LayoutTests': 'bbb', 54 '/mock-checkout/third_party/WebKit/LayoutTests': 'bbb',
55 }, 55 },
56 { 56 {
57 '/mock-checkout/third_party/WebKit/LayoutTests': 'aaa', 57 '/mock-checkout/third_party/WebKit/LayoutTests': 'aaa',
58 }) 58 })
59 self.assertEqual(host.filesystem.read_binary_file( 59 self.assertEqual(host.filesystem.read_binary_file(
60 '/mock-checkout/third_party/WebKit/LayoutTests/another/test-expected .txt'), 'result A') 60 '/mock-checkout/third_party/WebKit/LayoutTests/another/test-expected .txt'), 'result A')
61 61
62 def test_move_baselines_skip_scm_commands(self): 62 def test_move_baselines_skip_git_commands(self):
63 host = MockHost() 63 host = MockHost()
64 host.filesystem.write_text_file('/mock-checkout/third_party/WebKit/Layou tTests/VirtualTestSuites', '[]') 64 host.filesystem.write_text_file('/mock-checkout/third_party/WebKit/Layou tTests/VirtualTestSuites', '[]')
65 host.filesystem.write_binary_file( 65 host.filesystem.write_binary_file(
66 '/mock-checkout/third_party/WebKit/LayoutTests/platform/win/another/ test-expected.txt', 'result A') 66 '/mock-checkout/third_party/WebKit/LayoutTests/platform/win/another/ test-expected.txt', 'result A')
67 host.filesystem.write_binary_file( 67 host.filesystem.write_binary_file(
68 '/mock-checkout/third_party/WebKit/LayoutTests/platform/mac/another/ test-expected.txt', 'result A') 68 '/mock-checkout/third_party/WebKit/LayoutTests/platform/mac/another/ test-expected.txt', 'result A')
69 host.filesystem.write_binary_file('/mock-checkout/third_party/WebKit/Lay outTests/another/test-expected.txt', 'result B') 69 host.filesystem.write_binary_file('/mock-checkout/third_party/WebKit/Lay outTests/another/test-expected.txt', 'result B')
70 baseline_optimizer = BaselineOptimizer(host, host.port_factory.get( 70 baseline_optimizer = BaselineOptimizer(host, host.port_factory.get(
71 ), host.port_factory.all_port_names()) 71 ), host.port_factory.all_port_names())
72 baseline_optimizer._move_baselines( 72 baseline_optimizer._move_baselines(
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 self._assert_optimization( 247 self._assert_optimization(
248 { 248 {
249 'virtual/gpu/fast/canvas': '2', 249 'virtual/gpu/fast/canvas': '2',
250 'platform/mac/fast/canvas': '1', 250 'platform/mac/fast/canvas': '1',
251 }, 251 },
252 { 252 {
253 'virtual/gpu/fast/canvas': '2', 253 'virtual/gpu/fast/canvas': '2',
254 'platform/mac/fast/canvas': '1', 254 'platform/mac/fast/canvas': '1',
255 }, 255 },
256 baseline_dirname='virtual/gpu/fast/canvas') 256 baseline_dirname='virtual/gpu/fast/canvas')
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/git_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698