Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLImageElement / image-src-added-srcset-w-descriptors.html
blob467449b235bcdabf9ec6c990a6bf379fa23cf635
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <img id="our_image" src="resources/blue_rect.jpg">
4 <script>
5 var jsTestIsAsync = true;
6 var img;
8 onload = function() {
10 img = document.getElementById("our_image");
11 shouldNotBe('img.currentSrc.indexOf("blue_rect.jpg")', '-1');
12 img.onload = function() {
13 shouldNotBe('img.currentSrc.indexOf("image-set-4x")', '-1');
14 finishJSTest();
16 img.srcset = "resources/image-set-4x.png 120w";
18 img.onerror = function() {
19 testFailed('Image should have loaded');
22 </script>