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

Unified Diff: LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html

Issue 107393002: Convert a few tests from CRLF to LF line endings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « LayoutTests/editing/style/bold-with-dom-changes.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html
diff --git a/LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html b/LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html
index bc8e1ad69c18f2352de28aebd74de62597ec6501..553ce5649c32bc3c7ed4ccdcb8b606b9e16fab4f 100644
--- a/LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html
+++ b/LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html
@@ -1,49 +1,48 @@
-<html>
- <head>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- 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("abc");
- }
- }
-
- function runTest()
- {
- iteratorRoot = document.createElement();
- element = iteratorRoot.appendChild(document.createElement());
- element.appendChild(document.createElement());
-
- iterator = document.createNodeIterator(iteratorRoot, -1);
- iterator.nextNode(); iterator.nextNode(); iterator.nextNode();
- iterator.previousNode();
-
- iteratorRoot.removeChild(element);
-
- otherDocument = document.implementation.createHTMLDocument();
- otherDocument.body.appendChild(iteratorRoot);
-
- delete iterator;
- gc();
- div = document.body.appendChild(document.createElement('div'));
- document.body.removeChild(div);
- gc();
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
- </script>
- </head>
- <body onload="runTest()">
- Test passes if it does not crash.
- </body>
-</html>
-
+<html>
+ <head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ 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("abc");
+ }
+ }
+
+ function runTest()
+ {
+ iteratorRoot = document.createElement();
+ element = iteratorRoot.appendChild(document.createElement());
+ element.appendChild(document.createElement());
+
+ iterator = document.createNodeIterator(iteratorRoot, -1);
+ iterator.nextNode(); iterator.nextNode(); iterator.nextNode();
+ iterator.previousNode();
+
+ iteratorRoot.removeChild(element);
+
+ otherDocument = document.implementation.createHTMLDocument();
+ otherDocument.body.appendChild(iteratorRoot);
+
+ delete iterator;
+ gc();
+ div = document.body.appendChild(document.createElement('div'));
+ document.body.removeChild(div);
+ gc();
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+ </script>
+ </head>
+ <body onload="runTest()">
+ Test passes if it does not crash.
+ </body>
+</html>
« no previous file with comments | « LayoutTests/editing/style/bold-with-dom-changes.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698