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

Unified Diff: ui/file_manager/integration_tests/gallery/open_image_files.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/gallery/js/slide_mode.js ('k') | ui/file_manager/integration_tests/remote_call.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/integration_tests/gallery/open_image_files.js
diff --git a/ui/file_manager/integration_tests/gallery/open_image_files.js b/ui/file_manager/integration_tests/gallery/open_image_files.js
index 49d37f6c3ca73bd39c5c7cc96539ad942bf53bb6..a85c6d59673e4059da4e6e7edb855947f15aa71f 100644
--- a/ui/file_manager/integration_tests/gallery/open_image_files.js
+++ b/ui/file_manager/integration_tests/gallery/open_image_files.js
@@ -43,16 +43,14 @@ function openSingleImage(testVolumeName, volumeType) {
return resizedWindowPromise.then(function() {
var rootElementPromise =
gallery.waitForElement(appId, '.gallery[mode="slide"]');
- var imagePromise = gallery.waitForElement(
- appId, '.gallery .content canvas.image[width="760"]');
var fullImagePromsie = gallery.waitForElement(
- appId, '.gallery .content canvas.fullres[width="800"]');
- return Promise.all([rootElementPromise, imagePromise, fullImagePromsie]).
+ appId, '.gallery .image-container > .image');
+ return Promise.all([rootElementPromise, fullImagePromsie]).
then(function(args) {
- chrome.test.assertEq('760', args[1].attributes.width);
- chrome.test.assertEq('570', args[1].attributes.height);
- chrome.test.assertEq('800', args[2].attributes.width);
- chrome.test.assertEq('600', args[2].attributes.height);
+ chrome.test.assertEq(760, args[1].renderedWidth);
+ chrome.test.assertEq(570, args[1].renderedHeight);
+ chrome.test.assertEq(800, args[1].imageWidth);
+ chrome.test.assertEq(600, args[1].imageHeight);
});
});
});
« no previous file with comments | « ui/file_manager/gallery/js/slide_mode.js ('k') | ui/file_manager/integration_tests/remote_call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698