OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |