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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/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 PUBLIC "-//IETF//DTD HTML//EN">
fs 2016/08/16 10:36:15 This file is listed as "moved", could you make sur
sivag 2016/08/16 11:54:21 Done.
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="img-src 'self'">
5 <script src="../../resources/js-test.js"></script>
6 <script>
7 description(
8 "This tests onerror event is fired if we change image src to a url blocked b y content-security-policy."
9 )
10
11 jsTestIsAsync = true;
12
13 function load()
14 {
15 var image = document.getElementById('test');
16 image.onerror = function() {
17 testPassed("error event fired.");
18 finishJSTest();
19 };
20 image.src = 'http://www.myfakesiteabc.com/image.png';
21
22 setTimeout(function() {
23 testFailed("error event is not fired.")
24 finishJSTest();
25 }, 200);
26 }
27 </script>
28
29 </head>
30 <body onload='load()'>
31
32 <img src="./color-jpeg-with-color-profile-expected.png" id="test"></img>
33
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698