Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / images / image-currentsrc-broken.html
blob28e851c30cf3dcf6174d75189f41125cd2814698
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <body>
4 <script>
5 document.body.innerHTML += '<img id="broken" srcset="http://127.0.0.1:8000/resources/slow-image.php?name=dummy.js&mimeType=image/png&sleep=100">';
6 jsTestIsAsync = true;
7 var img = window.document.getElementById("broken");
8 img.onerror = function() {
9 shouldBe('img.currentSrc', '"http://127.0.0.1:8000/resources/slow-image.php?name=dummy.js&mimeType=image/png&sleep=100"');
12 window.onload = function() {
13 finishJSTest();
15 </script>
16 </body>