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

Unified Diff: LayoutTests/fast/dom/beforeload/cached-image-before-load.html

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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: LayoutTests/fast/dom/beforeload/cached-image-before-load.html
diff --git a/LayoutTests/fast/dom/beforeload/cached-image-before-load.html b/LayoutTests/fast/dom/beforeload/cached-image-before-load.html
deleted file mode 100644
index cf9e56680e652aed1b9ae2862ea95c2282920f02..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/beforeload/cached-image-before-load.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<script src="resources/print.js"></script>
-<script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window._beforeloadfired = false;
-
- function runTest()
- {
- document.addEventListener("beforeload", function(event) {
- window._beforeloadfired = true;
- }, true);
-
- cachedImage = new Image();
- document.body.appendChild(cachedImage);
- cachedImage.onload = function(event) {
- if (window._beforeloadfired)
- print("PASS: load fired after beforeload for a cached image.", "green");
- else
- print("FAIL: load fired before beforeload for a cached image.", "red");
-
- if (this.width == 16)
- print("PASS: image is 16px wide.", "green");
- else
- print("FAIL: image claims not to be 16px wide.", "red");
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
- cachedImage.src = document.getElementById("originalImage").src;
- cachedImage.style.visibility = "hidden";
- }
-</script>
-<p>This is a regression test for <a href="http://webkit.org/b/45586">http://webkit.org/b/45586</a>. It verifies that the beforeload event fires before the load event when loading a cached image, and that the image's style attributes can be queried in the load event handler. On success, you should see two lines of green text starting with the word 'PASS'.</p>
-<div id="console"></div>
-<img id="originalImage" style="visibility:hidden" onload="runTest()" src="../../images/resources/test-load.jpg">

Powered by Google App Engine
This is Rietveld 408576698