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

Unified Diff: third_party/WebKit/LayoutTests/traversal/size-zero-run.html

Issue 2179283008: Fix spelling and change formatting in traversal/size-zero-run.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unrelated change. Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/traversal/size-zero-run-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/traversal/size-zero-run.html
diff --git a/third_party/WebKit/LayoutTests/traversal/size-zero-run.html b/third_party/WebKit/LayoutTests/traversal/size-zero-run.html
index c67b22b49152a4a96cc43a4fc4902c235eb73ed7..988ffb5dd4955693fce0c3b667f003e7ecf68eb3 100644
--- a/third_party/WebKit/LayoutTests/traversal/size-zero-run.html
+++ b/third_party/WebKit/LayoutTests/traversal/size-zero-run.html
@@ -3,13 +3,14 @@
<head>
<script>
function test() {
- if(window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsText();
-
+ }
+
var textnode1 = document.getElementById("node").firstChild;
var textnode2 = textnode1.splitText(3);
textnode2.nodeValue = "";
-
+
var root = document.body;
var it = document.createNodeIterator(root, NodeFilter.SHOW_ELEMENT, NodeFilter.FILTER_ACCEPT, false);
@@ -17,15 +18,20 @@ function test() {
while(n) {
n = it.nextNode();
}
-
+
var text = document.getElementById("node").innerText;
}
</script>
</head>
<body onload="test();">
-<p>If a zero lengthed render object (such as a text node that has been set to "") occured at the end of a line, it was previously given a non-zero sized run.</p>
-<p>A crash would occur on iteration over a node containing such a run. NodeIterators, the innerText property, and hovering over a link all use iteration.</p>
-<p>This tests iteration using both the innerText property and NodeIterators. It is successful if it doesn't crash Safari.</p>
+<p>If a zero-length render object (such as a text node that has been set
+to "") occurred at the end of a line, it was previously given a non-zero
+sized run.</p>
+<p>A crash would occur on iteration over a node containing such a run.
+NodeIterators, the innerText property, and hovering over a link all
+use iteration.</p>
+<p>This tests iteration using both the innerText property and
+NodeIterators. It is successful if it doesn't crash Safari.</p>
<hr>
-<a href="#" id="node">hello</a></body></html>
+<a href="#" id="node">hello</a></body></html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/traversal/size-zero-run-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698