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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 }, | 440 }, |
441 }; | 441 }; |
442 | 442 |
443 // Test that error message is displayed when plugin doesn't exist. | 443 // Test that error message is displayed when plugin doesn't exist. |
444 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() { | 444 TEST_F('PrintPreviewNoPDFWebUITest', 'TestErrorMessage', function() { |
445 var errorButton = $('error-button'); | 445 var errorButton = $('error-button'); |
446 assertNotEquals(null, errorButton); | 446 assertNotEquals(null, errorButton); |
447 expectFalse(errorButton.disabled); | 447 expectFalse(errorButton.disabled); |
448 var errorText = $('custom-message'); | 448 var errorText = $('custom-message'); |
449 assertNotEquals(null, errorText); | 449 assertNotEquals(null, errorText); |
450 expectFalse(errorText.classList.contains('hidden')); | 450 expectFalse(errorText.hidden); |
451 }); | 451 }); |
OLD | NEW |