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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-img-element/invalid-src.html

Issue 2247073006: Add loadend event when finishing loading image Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/imported/wpt/html/semantics/embedded-content/the-img-element/invalid-src.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-img-element/invalid-src.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-img-element/invalid-src.html
deleted file mode 100644
index a4323da4b877321bc3315e65a30e7f9bc92724eb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-img-element/invalid-src.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<title>Loading a non-parsing URL as an image should silently fail; triggering appropriate events</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<img id=myimg />
-<script>
-async_test(function(t) {
- var img = document.getElementById("myimg");
- img.src = "http://also a broken url";
- var errorevent = false;
-
- // The errors should be queued in the event loop, so they should only trigger
- // after this block of code finishes, not during the img.src setter itself
- img.addEventListener('error', t.step_func(function(){errorevent = true;}));
- img.addEventListener('loadend', t.step_func_done(function() {
- assert_true(errorevent, "error event fired");
- }));
-});
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698