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

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

Issue 7792085: Print Preview: Handling pending print to pdf requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing kmadhusu's and vandebo's comments Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * Test fixture for print preview WebUI testing. 6 * Test fixture for print preview WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 */ 9 */
10 function PrintPreviewWebUITest() {} 10 function PrintPreviewWebUITest() {}
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 checkCompatiblePluginExists: function() { 388 checkCompatiblePluginExists: function() {
389 return false; 389 return false;
390 }, 390 },
391 }; 391 };
392 392
393 // Test that error message is displayed when plugin doesn't exist. 393 // Test that error message is displayed when plugin doesn't exist.
394 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() { 394 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() {
395 var errorButton = $('error-button'); 395 var errorButton = $('error-button');
396 assertNotEquals(null, errorButton); 396 assertNotEquals(null, errorButton);
397 expectFalse(errorButton.disabled); 397 expectFalse(errorButton.disabled);
398 var errorText = $('error-text'); 398 var errorText = $('custom-message');
399 assertNotEquals(null, errorText); 399 assertNotEquals(null, errorText);
400 expectFalse(errorText.classList.contains('hidden')); 400 expectFalse(errorText.classList.contains('hidden'));
401 }); 401 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698