| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * @constructor | 7 * @constructor |
| 8 * @extends {testing.Test} | 8 * @extends {testing.Test} |
| 9 */ | 9 */ |
| 10 function PrintPreviewWebUITest() { | 10 function PrintPreviewWebUITest() { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 this.initialSettings_.serializedAppStateStr_ = | 358 this.initialSettings_.serializedAppStateStr_ = |
| 359 '{"version":2,"recentDestinations":[{"id":"ID", "origin":"local",' + | 359 '{"version":2,"recentDestinations":[{"id":"ID", "origin":"local",' + |
| 360 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + | 360 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + |
| 361 '"extensionName":""}]}'; | 361 '"extensionName":""}]}'; |
| 362 this.setInitialSettings(); | 362 this.setInitialSettings(); |
| 363 | 363 |
| 364 testDone(); | 364 testDone(); |
| 365 }); | 365 }); |
| 366 | 366 |
| 367 //Test with multiple destinations | 367 //Test with multiple destinations |
| 368 TEST_F('PrintPreviewWebUITest', 'TestPrintPreviewRestoreMultipleDestinations', | 368 // Flaky on Windows: https://crbug.com/650127 |
| 369 TEST_F('PrintPreviewWebUITest', |
| 370 'DISABLED_TestPrintPreviewRestoreMultipleDestinations', |
| 369 function() { | 371 function() { |
| 370 this.initialSettings_.serializedAppStateStr_ = | 372 this.initialSettings_.serializedAppStateStr_ = |
| 371 '{"version":2,"recentDestinations":[{"id":"ID1", "origin":"local",' + | 373 '{"version":2,"recentDestinations":[{"id":"ID1", "origin":"local",' + |
| 372 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + | 374 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + |
| 373 '"extensionName":""},' + | 375 '"extensionName":""},' + |
| 374 '{"id":"ID2", "origin":"local",' + | 376 '{"id":"ID2", "origin":"local",' + |
| 375 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + | 377 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + |
| 376 '"extensionName":""},' + | 378 '"extensionName":""},' + |
| 377 '{"id":"ID3", "origin":"local",' + | 379 '{"id":"ID3", "origin":"local",' + |
| 378 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + | 380 '"account":"", "capabilities":0, "name":"", "extensionId":"",' + |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 // appears. | 1144 // appears. |
| 1143 var advancedSettingsCloseButton = $('advanced-settings'). | 1145 var advancedSettingsCloseButton = $('advanced-settings'). |
| 1144 querySelector('.close-button'); | 1146 querySelector('.close-button'); |
| 1145 checkElementDisplayed(advancedSettingsCloseButton, true); | 1147 checkElementDisplayed(advancedSettingsCloseButton, true); |
| 1146 checkElementDisplayed($('advanced-settings'). | 1148 checkElementDisplayed($('advanced-settings'). |
| 1147 querySelector('.search-box-area'), true); | 1149 querySelector('.search-box-area'), true); |
| 1148 | 1150 |
| 1149 this.waitForAnimationToEnd('more-settings'); | 1151 this.waitForAnimationToEnd('more-settings'); |
| 1150 }); | 1152 }); |
| 1151 | 1153 |
| OLD | NEW |