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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.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/forms/form-associated-element-crash2.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html b/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
index 39d310a2f508185453d9579f4af3c1878f8cacbb..da086473550815c21991a43064975ae3ff5dcf50 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
@@ -1,20 +1,12 @@
<html>
<head>
+<script src="../../resources/gc.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
-function gc() {
- var array = [];
- for (var i = 0x30000; i--; )
- if (!(Math.round(Math.random() * 20)))
- array = [];
- else
- array.push(new String(Math.random()))
-}
-
function test()
{
var element = document.createElement('input');

Powered by Google App Engine
This is Rietveld 408576698