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

Unified Diff: LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive.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/HTMLLinkElement/link-beforeload-recursive.html
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive.html b/LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive.html
deleted file mode 100644
index 96364219a84932cab7d68ecd1285043e9bef620b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="resources/link-load-utilities.js" media="all"></script>
-
-<div><link id=thelink rel=stylesheet></div>
-
-<script>
-if (window.testRunner) {
- testRunner.dumpResourceResponseMIMETypes();
-}
-
-var theLink = document.getElementById("thelink");
-
-var beforeloadRecurseCount = 5;
-
-function linkBeforeLoadHandler() {
- log("Entering linkBeforeLoadHandler().");
- if (--beforeloadRecurseCount > 1) {
- var newHrefAttr = theLink.getAttribute("href") + "#" + beforeloadRecurseCount;
- theLink.setAttribute("href", newHrefAttr);
- } else if (beforeloadRecurseCount == 1) {
- theLink.setAttribute("href", "resources/stylesheet-pre-pass.css");
- }
- log("Exiting linkBeforeLoadHandler().");
- return true;
-}
-
-function runTest() {
- theLink.addEventListener("beforeload", linkBeforeLoadHandler);
-
- theLink.setAttribute("href", "resources/stylesheet-pre-fail.css");
-
- <!-- Remove the element from the document and clean garbage, which will cause a crash -->
- <!-- if the recursive beforeload calls caused extra client registration in the loader. -->
- theLink.parentNode.removeChild(theLink);
- theLink = null;
- window.GCController.collect();
- setTimeout('testFinished()', 0);
-}
-</script>
-
-</head>
-<body onload="runTest()">
-<p>This tests that a beforeload event can mutate the firing link element. This test passes if it does
-not crash and the link element only loads its final (innermost) style sheet
-<pre id="console"></pre>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698