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

Unified 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: fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html b/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html
deleted file mode 100644
index 0bfcdeca24cb0eb111c7b0f7a4829981ff308c4e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<meta http-equiv="Content-Security-Policy" content="img-src 'self'">
-<script src="../../resources/js-test.js"></script>
-<script>
-description(
- "This tests onerror event is fired if we change image src to a url blocked by content-security-policy."
-)
-
-jsTestIsAsync = true;
-
-function load()
-{
- var image = document.getElementById('test');
- image.onerror = function() {
- testPassed("error event fired.");
- finishJSTest();
- };
- image.src = 'http://www.myfakesiteabc.com/image.png';
-
- setTimeout(function() {
- testFailed("error event is not fired.")
- finishJSTest();
- }, 200);
-}
-</script>
-
-</head>
-<body onload='load()'>
-
-<img src="./color-jpeg-with-color-profile-expected.png" id="test"></img>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698