OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** @fileoverview Runs the Print Preview tests. */ | 5 /** @fileoverview Runs the Print Preview tests. */ |
6 | 6 |
7 var ROOT_PATH = '../../../../../'; | 7 var ROOT_PATH = '../../../../../'; |
8 | 8 |
9 /** | 9 /** |
10 * @constructor | 10 * @constructor |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 // Disable accessibility errors for some tests. | 107 // Disable accessibility errors for some tests. |
108 [ | 108 [ |
109 'AdvancedSettings1Option', | 109 'AdvancedSettings1Option', |
110 'AdvancedSettings2Options', | 110 'AdvancedSettings2Options', |
111 ].forEach(function(testName) { | 111 ].forEach(function(testName) { |
112 TEST_F('PrintPreviewUIBrowserTest', testName, function() { | 112 TEST_F('PrintPreviewUIBrowserTest', testName, function() { |
113 this.accessibilityIssuesAreErrors = false; | 113 this.accessibilityIssuesAreErrors = false; |
114 mocha.grep(new RegExp(testName + '\\b')).run(); | 114 mocha.grep(new RegExp(testName + '\\b')).run(); |
115 }); | 115 }); |
116 }); | 116 }); |
117 | |
118 TEST_F('PrintPreviewUIBrowserTest', 'SystemDefaultPrinterPolicy', function() { | |
119 loadTimeData.overrideValues({useSystemDefaultPrinter: true}); | |
dpapad
2017/06/19 17:43:37
Can we not do this inside SystemDefaultPrinterPoli
rbpotter
2017/06/19 23:10:49
It doesn't work inside the test as print preview h
| |
120 mocha.grep(new RegExp('SystemDefaultPrinterPolicy' + '\\b')).run(); | |
121 }); | |
OLD | NEW |