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

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

Issue 2910503003: Print Preview: Migrate JS tests to use Mocha, part 2. (Closed)
Patch Set: Address comments. Created 3 years, 6 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 }); 74 });
75 75
76 TEST_F('PrintPreviewUIBrowserTest', 'RestoreMultipleDestinations', function() { 76 TEST_F('PrintPreviewUIBrowserTest', 'RestoreMultipleDestinations', function() {
77 mocha.grep(/RestoreMultipleDestinations\b/).run(); 77 mocha.grep(/RestoreMultipleDestinations\b/).run();
78 }); 78 });
79 79
80 TEST_F('PrintPreviewUIBrowserTest', 'DefaultDestinationSelectionRules', 80 TEST_F('PrintPreviewUIBrowserTest', 'DefaultDestinationSelectionRules',
81 function() { 81 function() {
82 mocha.grep(/DefaultDestinationSelectionRules\b/).run(); 82 mocha.grep(/DefaultDestinationSelectionRules\b/).run();
83 }); 83 });
84
85 TEST_F('PrintPreviewUIBrowserTest', 'SystemDialogLinkIsHiddenInAppKioskMode',
86 function() {
87 mocha.grep(/SystemDialogLinkIsHiddenInAppKioskMode\b/).run();
88 });
89
90 TEST_F('PrintPreviewUIBrowserTest', 'SectionsDisabled', function() {
91 mocha.grep(/SectionsDisabled\b/).run();
92 });
93
94 TEST_F('PrintPreviewUIBrowserTest', 'PrintToPDFSelectedCapabilities',
95 function() {
96 mocha.grep(/PrintToPDFSelectedCapabilities\b/).run();
97 });
98
99 TEST_F('PrintPreviewUIBrowserTest', 'SourceIsHTMLCapabilities', function() {
100 mocha.grep(/SourceIsHTMLCapabilities\b/).run();
101 });
102
103 TEST_F('PrintPreviewUIBrowserTest', 'SourceIsPDFCapabilities', function() {
104 mocha.grep(/SourceIsPDFCapabilities\b/).run();
105 });
106
107 TEST_F('PrintPreviewUIBrowserTest', 'ScalingUnchecksFitToPage', function() {
108 mocha.grep(/ScalingUnchecksFitToPage\b/).run();
109 });
110
111 TEST_F('PrintPreviewUIBrowserTest', 'CheckNumCopiesPrintPreset', function() {
112 mocha.grep(/CheckNumCopiesPrintPreset\b/).run();
113 });
114
115 TEST_F('PrintPreviewUIBrowserTest', 'CheckDuplexPrintPreset', function() {
116 mocha.grep(/CheckDuplexPrintPreset\b/).run();
117 });
118
119 TEST_F('PrintPreviewUIBrowserTest', 'CustomMarginsControlsCheck', function() {
120 mocha.grep(/CustomMarginsControlsCheck\b/).run();
121 });
122
123 TEST_F('PrintPreviewUIBrowserTest', 'PageLayoutHasNoMarginsHideHeaderFooter',
124 function() {
125 mocha.grep(/PageLayoutHasNoMarginsHideHeaderFooter\b/).run();
126 });
127
128 TEST_F('PrintPreviewUIBrowserTest', 'PageLayoutHasMarginsShowHeaderFooter',
129 function() {
130 mocha.grep(/PageLayoutHasMarginsShowHeaderFooter\b/).run();
131 });
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