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

Unified Diff: LayoutTests/plugins/layout-in-beforeload-listener-affects-plugin-loading.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/plugins/layout-in-beforeload-listener-affects-plugin-loading.html
diff --git a/LayoutTests/plugins/layout-in-beforeload-listener-affects-plugin-loading.html b/LayoutTests/plugins/layout-in-beforeload-listener-affects-plugin-loading.html
deleted file mode 100644
index 30e89312088d9c264cad0dd3f7b31d813520a65f..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/layout-in-beforeload-listener-affects-plugin-loading.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window._beforeloadReceivedForEmbed = false;
-
- document.addEventListener("beforeload", function(event) {
- if (document.getElementsByTagName("object")[0] == event.target) {
- // trigger a layout
- event.target.offsetWidth;
- return;
- }
-
- _beforeloadReceivedForEmbed = document.getElementsByTagName("embed")[0] == event.target;
- }, true);
-
- function test() {
- // The <embed> should load as a post-layout task that executes in
- // the current run loop iteration. Queue a task to check if the
- // <embed>'s beforeload event fired.
- window.setTimeout(function() {
- console.log(_beforeloadReceivedForEmbed ? "PASS" : "FAIL");
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
- }
- </script>
-</head>
-<body onload="test();">
- <!-- Test that performing layout in a beforeload listener does not affect
- plug-in loading. See http://webkit.org/b/77167 for details. This test
- requires TestNetscapePlugIn so it must be run in DumpRenderTree. -->
- <object>
- <embed type="application/x-webkit-test-netscape">
- </object>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698