4 <link href=
"resources/flexbox.css" rel=
"stylesheet">
7 <script src=
"../../resources/check-layout.js"></script>
10 <p>Test to make sure that we properly relayout when an image loads. You
11 should see a green
100x100 image.
</p>
12 <div id=
"test" class=
"flexbox">
15 <img data-expected-width=
100 data-expected-height=
100 id=
"image" onload=
"imageLoaded()">
19 if (window
.testRunner
)
20 testRunner
.waitUntilDone();
22 function changeImage()
24 document
.getElementById("image").src
= "../images/resources/green-100.png";
26 setTimeout(changeImage
, 0);
28 function imageLoaded()
31 if (window
.testRunner
)
32 testRunner
.notifyDone();