Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Side by Side Diff: LayoutTests/http/tests/images/image-currentsrc-error.html

Issue 317723003: Split image-currentsrc test into 3 separate tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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/re sources/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-im age.php?name=not_there.png&mimeType=image/png&sleep=100"');
10 };
11
12 window.onload = function() {
13 finishJSTest();
14 };
15 </script>
16 </body>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/images/image-currentsrc.html ('k') | LayoutTests/http/tests/images/image-currentsrc-error-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698