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

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: Fixed expectation for origin header test 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 }
14 test(0);
15 onload = function(){
16 test(76);
17 finishJSTest();
18 };
19 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698