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> |