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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-postmessage-clone-really-deep-array.html

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/window-postmessage-clone-really-deep-array.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/window-postmessage-clone-really-deep-array.html b/third_party/WebKit/LayoutTests/fast/dom/Window/window-postmessage-clone-really-deep-array.html
index eb6d66b9c009a1d039f9ef7e8514b594cd9e0f83..14923bf25a23303d2689e9263a8cb8665b70c6bf 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/window-postmessage-clone-really-deep-array.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/window-postmessage-clone-really-deep-array.html
@@ -4,7 +4,14 @@
<div id="description"></div>
<input type="file" id="fileInput" multiple></input>
<div id="console"></div>
-<script src="script-tests/postmessage-test.js"></script>
-<script src="script-tests/postmessage-clone-really-deep-array.js"></script>
+<script src="resources/postmessage-test.js"></script>
+<script>
+document.getElementById("description").innerHTML = "Tests that we abort cloning overdeep arrays.";
+reallyDeepArray=[];
+for (var i = 0; i < 100000; i++)
+ reallyDeepArray=[reallyDeepArray];
+tryPostMessage('reallyDeepArray', true, null, RangeError);
+tryPostMessage('"done"');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698