Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: ui/file_manager/integration_tests/remote_call.js

Issue 1608143002: support animated GIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add assert to pass closure compiler Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/integration_tests/gallery/open_image_files.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ui/file_manager/integration_tests/gallery/open_image_files.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698