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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html

Issue 2818563004: sendBeacon should throw a TypeError on bad URLs. (Closed)
Patch Set: Patch Set 2 was the final submit, 3 was uploaded by mistake. Created 3 years, 8 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/NodeList/childNodes-reset-cache.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html b/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html
index 929a4a1f3a350d73f02e3aa26189f396ddea087a..5bb6d99d4bb2cea5fcfb60ac608d0276fded0df1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html
@@ -1,5 +1,6 @@
<html>
<body>
+<script src="../../../resources/gc.js"></script>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13514">bug 13514</a>:
REGRESSION (r20997-21003): Crash in WebCore::Node::Document.</p>
<div id="elem"><p></p></div>
@@ -8,16 +9,6 @@ REGRESSION (r20997-21003): Crash in WebCore::Node::Document.</p>
if (window.testRunner)
testRunner.dumpAsText();
-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("");
- }
-}
-
elem = document.getElementById('elem');
elem.childNodes.length;

Powered by Google App Engine
This is Rietveld 408576698