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

Unified Diff: LayoutTests/fast/dom/beforeload/pi-before-load.xhtml

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/pi-before-load.xhtml
diff --git a/LayoutTests/fast/dom/beforeload/pi-before-load.xhtml b/LayoutTests/fast/dom/beforeload/pi-before-load.xhtml
deleted file mode 100644
index d23b55e4bb14af5ead49fe4a09f39c8e392feb4c..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/beforeload/pi-before-load.xhtml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<style>
-.block {
- width: 100px;
- height: 100px;
- background-color: green;
-}
-</style>
-<script src="resources/print.js"></script>
-<script>
-function test()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
-
- if (document.getElementById('block').offsetWidth == 100)
- print("PASS", "green");
- else
- print("FAIL", "red");
-}
-</script>
-</head>
-<body onload="test()">
-<div id="block" class="block"></div>
-<script>
-function beforeLoadFunc()
-{
- event.preventDefault();
-}
-
-document.addEventListener("beforeload", beforeLoadFunc, true);
-
-var pi = document.createProcessingInstruction("xml-stylesheet", "type=\"text/css\" href=\"resources/fail.css\"");
-document.insertBefore(pi, document.documentElement);
-</script>
-<hr/>
-<div id="console"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698