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

Side by Side Diff: chrome/test/data/webui/print_preview/print_preview_ui_browsertest.js

Issue 2973743002: Add plugin stub for print preview tests (Closed)
Patch Set: Update annotation Created 3 years, 5 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 | « chrome/test/data/webui/print_preview/print_preview_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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');
OLDNEW
« no previous file with comments | « chrome/test/data/webui/print_preview/print_preview_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698