Index: ui/file_manager/integration_tests/remote_call.js |
diff --git a/ui/file_manager/integration_tests/remote_call.js b/ui/file_manager/integration_tests/remote_call.js |
index a2eddda4219abf3c1e25141b260cfebf02384546..39617ba5407fb8ed6b8db4b33b1ebcb48cd6af7b 100644 |
--- a/ui/file_manager/integration_tests/remote_call.js |
+++ b/ui/file_manager/integration_tests/remote_call.js |
@@ -431,18 +431,18 @@ RemoteCallGallery.prototype.waitForSlideImage = |
expected.name = name; |
return repeatUntil(function() { |
- var query = '.gallery[mode="slide"] .content canvas.fullres'; |
+ var query = '.gallery[mode="slide"] .image-container > .image'; |
return Promise.all([ |
this.waitForElement(windowId, '.filename-spacer input'), |
this.waitForElement(windowId, query) |
]).then(function(args) { |
var nameBox = args[0]; |
- var fullResCanvas = args[1]; |
+ var image = args[1]; |
var actual = {}; |
- if (width && fullResCanvas) |
- actual.width = Number(fullResCanvas.attributes.width); |
- if (height && fullResCanvas) |
- actual.height = Number(fullResCanvas.attributes.height); |
+ if (width && image) |
+ actual.width = image.imageWidth; |
+ if (height && image) |
+ actual.height = image.imageHeight; |
if (name && nameBox) |
actual.name = nameBox.value; |