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

Unified Diff: LayoutTests/editing/style/bold-with-dom-changes.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 | « no previous file | LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/style/bold-with-dom-changes.html
diff --git a/LayoutTests/editing/style/bold-with-dom-changes.html b/LayoutTests/editing/style/bold-with-dom-changes.html
index 6ebb23044b5b7c1b978837332c395efee216fb8c..3793f6f79f69bcb4f2f57747900b1a43c46eaee4 100644
--- a/LayoutTests/editing/style/bold-with-dom-changes.html
+++ b/LayoutTests/editing/style/bold-with-dom-changes.html
@@ -1,42 +1,42 @@
-<!DOCTYPE html>
-<html>
-<body>
-This test verifies that deleting DOM elements in a DOMSubtreeModified handler triggered by and execCommand('bold') does not produce a crash.
-<div id="test" contenteditable style="border: 1px solid red">
-<b class="x" id="inlined">
- <u></u>
- x
-</b>
-</div>
-<script>
-function treeModifiedHandler()
-{
- document.removeEventListener("DOMSubtreeModified", treeModifiedHandler, false);
-
- var b = document.getElementById("inlined");
- b.insertBefore(document.createTextNode(), b.firstChild);
-
- var range = document.createRange();
- range.setStart(b,0);
- range.setEnd(b,2);
- range.deleteContents();
- document.body.appendChild(document.createTextNode("PASS"));
-}
-
-function runtest()
-{
- var test = document.getElementById('test');
- window.getSelection().selectAllChildren(test);
-
- document.execCommand('bold', false, null);
- document.addEventListener("DOMSubtreeModified", treeModifiedHandler, false);
- document.execCommand('bold', false, null);
-}
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-runtest();
-</script>
-</body>
-</html>
+<!DOCTYPE html>
+<html>
+<body>
+This test verifies that deleting DOM elements in a DOMSubtreeModified handler triggered by and execCommand('bold') does not produce a crash.
+<div id="test" contenteditable style="border: 1px solid red">
+<b class="x" id="inlined">
+ <u></u>
+ x
+</b>
+</div>
+<script>
+function treeModifiedHandler()
+{
+ document.removeEventListener("DOMSubtreeModified", treeModifiedHandler, false);
+
+ var b = document.getElementById("inlined");
+ b.insertBefore(document.createTextNode(), b.firstChild);
+
+ var range = document.createRange();
+ range.setStart(b,0);
+ range.setEnd(b,2);
+ range.deleteContents();
+ document.body.appendChild(document.createTextNode("PASS"));
+}
+
+function runtest()
+{
+ var test = document.getElementById('test');
+ window.getSelection().selectAllChildren(test);
+
+ document.execCommand('bold', false, null);
+ document.addEventListener("DOMSubtreeModified", treeModifiedHandler, false);
+ document.execCommand('bold', false, null);
+}
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+runtest();
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/node-iterator-reference-node-moved-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698