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

Unified Diff: LayoutTests/editing/inserting/insert-paragraph-separator-crash.html

Issue 217003006: Remove carriage returns from LayoutTests (01) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix caret-and-focus-ring Created 6 years, 9 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: LayoutTests/editing/inserting/insert-paragraph-separator-crash.html
diff --git a/LayoutTests/editing/inserting/insert-paragraph-separator-crash.html b/LayoutTests/editing/inserting/insert-paragraph-separator-crash.html
index f18b98f3b8ab5cc7f3c55fa1718364363768d763..033e26addd6406649b757715f1f6001954bbc5bb 100644
--- a/LayoutTests/editing/inserting/insert-paragraph-separator-crash.html
+++ b/LayoutTests/editing/inserting/insert-paragraph-separator-crash.html
@@ -1,34 +1,34 @@
-<!DOCTYPE html>
-<html>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function handler() {
- var element = event.srcElement;
- document.execCommand('Undo', false, false);
- element.parentNode.removeChild(element);
- var em = document.getElementById('em');
- var span = document.getElementById('span');
- em.insertBefore(element, span);
- document.execCommand('JustifyFull', false, false);
-}
-document.addEventListener("DOMCharacterDataModified", handler, true);
-
-window.onload = function() {
- var selection = window.getSelection();
- document.execCommand("SelectAll", false, false)
- var element = document.getElementById("ruby");
- element.innerHTML = "<em id='em'>^x?x<span id='span'>x&'x";
- selection.deleteFromDocument();
- selection.deleteFromDocument();
- document.designMode = "on";
- document.execCommand('JustifyRight', false, false);
- document.execCommand('InsertHorizontalRule', false, '');
- document.documentElement.innerHTML = "PASS. WebKit didn't crash.";
-};
-</script>
-<ruby id="ruby">
-<a>A</a>
-</ruby>
-</html>
+<!DOCTYPE html>
+<html>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function handler() {
+ var element = event.srcElement;
+ document.execCommand('Undo', false, false);
+ element.parentNode.removeChild(element);
+ var em = document.getElementById('em');
+ var span = document.getElementById('span');
+ em.insertBefore(element, span);
+ document.execCommand('JustifyFull', false, false);
+}
+document.addEventListener("DOMCharacterDataModified", handler, true);
+
+window.onload = function() {
+ var selection = window.getSelection();
+ document.execCommand("SelectAll", false, false)
+ var element = document.getElementById("ruby");
+ element.innerHTML = "<em id='em'>^x?x<span id='span'>x&'x";
+ selection.deleteFromDocument();
+ selection.deleteFromDocument();
+ document.designMode = "on";
+ document.execCommand('JustifyRight', false, false);
+ document.execCommand('InsertHorizontalRule', false, '');
+ document.documentElement.innerHTML = "PASS. WebKit didn't crash.";
+};
+</script>
+<ruby id="ruby">
+<a>A</a>
+</ruby>
+</html>

Powered by Google App Engine
This is Rietveld 408576698