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