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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html

Issue 2227423002: Use testharness.js instead of js-test.js in fast/images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Give correct location of resources folder. Created 4 years, 4 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 <title>This tests onerror event is fired if we change image src to a url blocked by content-security-policy.</title>
3 <meta http-equiv="Content-Security-Policy" content="img-src 'self'">
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <img src="../resources/image-error-event-not-firing-test-image.png"></img>
7 <script>
8 async_test(function(t) {
9 var img = document.querySelector("img");
10 img.onerror = t.step_func_done();
11 img.src = "http://127.0.0.1:8000/resources/dummy.html";
fs 2016/08/16 09:39:37 Please make this reference a valid image as well (
sivag 2016/08/16 10:06:40 Done.
12 });
13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698