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

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: Rebasing 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('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 (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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 checkCompatiblePluginExists: function() { 442 checkCompatiblePluginExists: function() {
443 return false; 443 return false;
444 }, 444 },
445 }; 445 };
446 446
447 // Test that error message is displayed when plugin doesn't exist. 447 // Test that error message is displayed when plugin doesn't exist.
448 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() { 448 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() {
449 var errorButton = $('error-button'); 449 var errorButton = $('error-button');
450 assertNotEquals(null, errorButton); 450 assertNotEquals(null, errorButton);
451 expectFalse(errorButton.disabled); 451 expectFalse(errorButton.disabled);
452 var errorText = $('error-text'); 452 var errorText = $('custom-message');
453 assertNotEquals(null, errorText); 453 assertNotEquals(null, errorText);
454 expectFalse(errorText.classList.contains('hidden')); 454 expectFalse(errorText.classList.contains('hidden'));
455 }); 455 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698