diff options
Diffstat (limited to 'chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js')
-rw-r--r-- | chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js b/chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js index faa6a03..261f0cd 100644 --- a/chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js +++ b/chrome/test/data/webui/settings/change_picture_browsertest_chromeos.js @@ -85,13 +85,13 @@ TEST_F('SettingsChangePictureBrowserTest', 'MAYBE_ChangePicture', function() { assertTrue(!!cameraIcon); // Force the camera to be absent, even if it's actually present. - settings.ChangePicturePage.receiveCameraPresence(false); + cr.webUIListenerCallback('camera-presence-changed', false); Polymer.dom.flush(); expectTrue(cameraIcon.hidden); expectFalse(settingsCamera.cameraActive); - settings.ChangePicturePage.receiveCameraPresence(true); + cr.webUIListenerCallback('camera-presence-changed', true); Polymer.dom.flush(); expectFalse(cameraIcon.hidden); @@ -127,7 +127,7 @@ TEST_F('SettingsChangePictureBrowserTest', 'MAYBE_ChangePicture', function() { assertTrue(oldImage.hidden); return runAndResolveWhenSelectedItemChanged(function() { - settings.ChangePicturePage.receiveOldImage('fake-old-image.jpg'); + cr.webUIListenerCallback('old-image-changed', 'fake-old-image.jpg'); }).then(function() { Polymer.dom.flush(); @@ -172,7 +172,7 @@ TEST_F('SettingsChangePictureBrowserTest', 'MAYBE_ChangePicture', function() { function injectAndVerifyOldImage() { return runAndResolveWhenSelectedItemChanged(function() { - settings.ChangePicturePage.receiveOldImage('fake-old-image.jpg'); + cr.webUIListenerCallback('old-image-changed', 'fake-old-image.jpg'); }).then(function() { Polymer.dom.flush(); expectEquals('old', changePicture.selectedItem_.dataset.type); |