Chromium Code Reviews| 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..3833c73ae56b0582865ac62fa9903f3e3263aaa5 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,12 @@ 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); |
|
hirono
2016/01/22 07:24:18
Could you add assertions for imageWidth/imageHeigh
ryoh
2016/01/25 03:29:26
Done.
|
| }); |
| }); |
| }); |