| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 extraLibraries: [ | 52 extraLibraries: [ |
| 53 ROOT_PATH + 'ui/webui/resources/js/cr.js', | 53 ROOT_PATH + 'ui/webui/resources/js/cr.js', |
| 54 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 54 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
| 55 ROOT_PATH + 'third_party/mocha/mocha.js', | 55 ROOT_PATH + 'third_party/mocha/mocha.js', |
| 56 ROOT_PATH + 'chrome/test/data/webui/mocha_adapter.js', | 56 ROOT_PATH + 'chrome/test/data/webui/mocha_adapter.js', |
| 57 ROOT_PATH + 'ui/webui/resources/js/util.js', | 57 ROOT_PATH + 'ui/webui/resources/js/util.js', |
| 58 ROOT_PATH + 'chrome/test/data/webui/test_browser_proxy.js', | 58 ROOT_PATH + 'chrome/test/data/webui/test_browser_proxy.js', |
| 59 'print_preview_tests.js', | 59 'print_preview_tests.js', |
| 60 'native_layer_stub.js', | 60 'native_layer_stub.js', |
| 61 'plugin_stub.js', |
| 61 ], | 62 ], |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 // Run each mocha test in isolation (within a new TEST_F() call). | 65 // Run each mocha test in isolation (within a new TEST_F() call). |
| 65 [ | 66 [ |
| 66 'PrinterList', | 67 'PrinterList', |
| 67 'PrinterListCloudEmpty', | 68 'PrinterListCloudEmpty', |
| 68 'RestoreLocalDestination', | 69 'RestoreLocalDestination', |
| 69 'RestoreMultipleDestinations', | 70 'RestoreMultipleDestinations', |
| 70 'DefaultDestinationSelectionRules', | 71 'DefaultDestinationSelectionRules', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 mocha.grep(new RegExp(testName + '\\b')).run(); | 115 mocha.grep(new RegExp(testName + '\\b')).run(); |
| 115 }); | 116 }); |
| 116 }); | 117 }); |
| 117 | 118 |
| 118 GEN('#if !defined(OS_CHROMEOS)'); | 119 GEN('#if !defined(OS_CHROMEOS)'); |
| 119 TEST_F('PrintPreviewUIBrowserTest', 'SystemDefaultPrinterPolicy', function() { | 120 TEST_F('PrintPreviewUIBrowserTest', 'SystemDefaultPrinterPolicy', function() { |
| 120 loadTimeData.overrideValues({useSystemDefaultPrinter: true}); | 121 loadTimeData.overrideValues({useSystemDefaultPrinter: true}); |
| 121 mocha.grep(new RegExp('SystemDefaultPrinterPolicy' + '\\b')).run(); | 122 mocha.grep(new RegExp('SystemDefaultPrinterPolicy' + '\\b')).run(); |
| 122 }); | 123 }); |
| 123 GEN('#endif'); | 124 GEN('#endif'); |
| OLD | NEW |