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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 }); |
OLD | NEW |