| Index: chrome/test/data/webui/print_preview_destination_search_test.js
|
| diff --git a/chrome/test/data/webui/print_preview_destination_search_test.js b/chrome/test/data/webui/print_preview_destination_search_test.js
|
| index 2155bd7820beb4ff844b9bbad2fb318f5ba96494..fdba0e14b3ac328ee0a828a4bf69dea2a570a660 100644
|
| --- a/chrome/test/data/webui/print_preview_destination_search_test.js
|
| +++ b/chrome/test/data/webui/print_preview_destination_search_test.js
|
| @@ -196,7 +196,6 @@ TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() {
|
| });
|
|
|
| test('ReceiveSuccessfulSetup', function() {
|
| -
|
| var destId = "00112233DEADBEEF";
|
|
|
| var waiter = waitForEvent(
|
| @@ -216,24 +215,21 @@ TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() {
|
| });
|
| });
|
|
|
| - test('ReceiveFailedSetup', function() {
|
| - var destId = '00112233DEADBEEF';
|
| + if (cr.isChromeOS) {
|
| + // The 'ResolutionFails' test covers this case for non-CrOS.
|
| + test('ReceiveFailedSetup', function() {
|
| + var destId = '00112233DEADBEEF';
|
|
|
| - var resolver = mockSetupCall(destId, nativeLayer_);
|
| - requestSetup(destId, destinationSearch_);
|
| + var resolver = mockSetupCall(destId, nativeLayer_);
|
| + requestSetup(destId, destinationSearch_);
|
|
|
| - // Force resolution to fail.
|
| - resolveSetup(resolver, destId, false, null);
|
| + // Force resolution to fail.
|
| + resolveSetup(resolver, destId, false, null);
|
|
|
| - if (cr.isChromeOS) {
|
| // Selection should not change on ChromeOS.
|
| assertEquals(null, destinationStore_.selectedDestination);
|
| - } else {
|
| - // Other code expects selection to be present so it still occurs
|
| - // for non-CrOS.
|
| - assertEquals(destId, destinationStore_.selectedDestination.id);
|
| - }
|
| - });
|
| + });
|
| + }
|
| });
|
|
|
| mocha.run();
|
|
|