Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLImageElement / image-sizes-js-innerhtml.html
blobb6167d805e7793d55e05a5392a8d3b04de8ce0a8
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script src="resources/currentSrcHelper.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 addEventListener("DOMContentLoaded", function() {
9 window.testdiv = document.createElement("div");
10 window.testdiv.innerHTML = '<img id="foo" src="resources/blue-100-px-square.png" srcset="../../hidpi/resources/image-set-1x.png 200w, ../../hidpi/resources/image-set-2x.png 400w, resources/image-set-4x.png 800w">';
11 }, false);
12 addEventListener("load", function() {
13 shouldBe('fileName(window.testdiv.children[0].currentSrc)', '"image-set-4x.png"');
14 }, false);
15 </script>
16 <img id="foo">