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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js b/third_party/WebKit/LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js
deleted file mode 100644
index 72211924243cf71f6a8dd589045e2d073a54dd1d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js
+++ /dev/null
@@ -1,68 +0,0 @@
-description("This tests that setting window event listeners on the body, sets them on the window.");
-
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
- var s = new String("");
- }
-}
-
-var func = function() { }
-
-document.body.onblur = func;
-shouldBe("window.onblur", "func");
-shouldBe("window.onblur", "document.body.onblur");
-
-document.body.onfocus = func;
-shouldBe("window.onfocus", "func");
-shouldBe("window.onfocus", "document.body.onfocus");
-
-document.body.onerror = func;
-shouldBe("window.onerror", "func");
-shouldBe("window.onerror", "document.body.onerror");
-
-document.body.onload = func;
-shouldBe("window.onload", "func");
-shouldBe("window.onload", "document.body.onload");
-
-document.body.onbeforeunload = func;
-shouldBe("window.onbeforeunload", "func");
-shouldBe("window.onbeforeunload", "document.body.onbeforeunload");
-
-document.body.onhashchange = func;
-shouldBe("window.onhashchange", "func");
-shouldBe("window.onhashchange", "document.body.onhashchange");
-
-document.body.onmessage = func;
-shouldBe("window.onmessage", "func");
-shouldBe("window.onmessage", "document.body.onmessage");
-
-document.body.onoffline = func;
-shouldBe("window.onoffline", "func");
-shouldBe("window.onoffline", "document.body.onoffline");
-
-document.body.ononline = func;
-shouldBe("window.ononline", "func");
-shouldBe("window.ononline", "document.body.ononline");
-
-document.body.onresize = func;
-shouldBe("window.onresize", "func");
-shouldBe("window.onresize", "document.body.onresize");
-
-document.body.onscroll = func;
-shouldBe("window.onscroll", "func");
-shouldBe("window.onscroll", "document.body.onscroll");
-
-document.body.onstorage = func;
-shouldBe("window.onstorage", "func");
-shouldBe("window.onstorage", "document.body.onstorage");
-
-document.body.onunload = func;
-shouldBe("window.onunload", "func");
-shouldBe("window.onunload", "document.body.onunload");
-window.onunload = null;
-
-gc();

Powered by Google App Engine
This is Rietveld 408576698