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

Unified Diff: webkit/data/layout_tests/chrome/fast/dom/Window/customized-property-survives-gc.html

Issue 55025: Remove tests that have been upstreamed. Update test_expectations list... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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: webkit/data/layout_tests/chrome/fast/dom/Window/customized-property-survives-gc.html
===================================================================
--- webkit/data/layout_tests/chrome/fast/dom/Window/customized-property-survives-gc.html (revision 12664)
+++ webkit/data/layout_tests/chrome/fast/dom/Window/customized-property-survives-gc.html (working copy)
@@ -1,50 +0,0 @@
-<html>
-<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
-function CollectGarbage() {
- if (window.gc) {
- // Chrome code
- window.gc();
- } else {
- // Safari hack
- for (var i = 0; i < 50000; i++)
- new Object();
- }
-}
-
-
-function check(name) {
- if (!window[name]) return;
-
- window[name].myProp = 10;
- CollectGarbage();
- var r = document.getElementById("result");
- if (window[name].myProp) {
- r.innerHTML += name + ".myProp survived GC.<br>";
- } else {
- r.innerHTML += name + ".myProp did not survive GC.<br>";
- }
-}
-
-function runTest() {
- check("screen");
- check("history");
- check("locationbar");
- check("menubar");
- check("personalbar");
- check("scrollbars");
- check("statusbar");
- check("toolbar");
- check("location");
- check("navigator");
-}
-</script>
-
-<body onload="runTest()">
-This tests that customized properties on window.location and window.navigator
-won't get lost after a GC.
-<div id="result">TEST running.<br></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698