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

Side by Side Diff: LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width.html

Issue 136693020: Add image loading spec related tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added srcset related tests Created 6 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description("Test that creating a cached image and immediately checking its widt h works");
5 jsTestIsAsync = true;
6 var src = '../resources/abe.png?' + Math.random();
7 var currentResult = false;
8 function test(expected) {
9 var i = new Image();
10 i.src = src;
11 currentResult = (i.width == expected);
12 shouldBeTrue('currentResult');
13 finishJSTest();
14 }
15 test(0);
16 onload = function(){test(76);};
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698