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

Unified Diff: LayoutTests/fast/text/international/bidi-crash-reached-end-of-line.html

Issue 67313009: BidiResolver needs to know when it reached the end of the line. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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/text/international/bidi-crash-reached-end-of-line-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/international/bidi-crash-reached-end-of-line.html
diff --git a/LayoutTests/fast/text/international/bidi-crash-reached-end-of-line.html b/LayoutTests/fast/text/international/bidi-crash-reached-end-of-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5a4bfc753c265490a076bfdec1823843f007783
--- /dev/null
+++ b/LayoutTests/fast/text/international/bidi-crash-reached-end-of-line.html
@@ -0,0 +1,41 @@
+<body onload="runTest();">
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function reference(domNode)
+ {
+ this.domNode = domNode;
+ }
+ function walk(a, currentPrefix, index, domNode)
+ {
+ if (domNode == null)
+ return;
+ newPrefix = currentPrefix + "_" + index;
+ walk(a, currentPrefix, index + 1, domNode.nextSibling);
+ walk(a, newPrefix, 0, domNode.firstChild);
+ a[newPrefix] = new reference(domNode);
+ }
+ function clearAllNodes()
+ {
+ var a = new Array();
+ walk(a, "", 0, document.body);
+ for (key in a)
+ {
+ document.body.offsetTop;
+ child = a[key].domNode.parentNode.removeChild(a[key].domNode);
+ }
+ }
+ function runTest() {
+ clearAllNodes();
+ document.body = document.createElement("body");
+ document.body.innerHTML = "This test has passed if it doesn't crash under ASAN";
+ }
+ </script>>>>>>><legend style="widows:994907373; padding-right:493197256%; ">><h1 accesskey="5N'" class="Y990" dir="rtl" style="direction:rtl; line-height:20034836;" id="8" lang="tr" >>>>><abbr title="@u\>qr$^" accesskey="" tabindex="2147483648" title="\" title="QA'>9JQT" style="border-top-width:medium; white-space:pre-line; " id="b71pkZOs" >>><center>,</center>
+<dl>></dl>
+<output>nnlN8rc<b></b>
+</output>
+> lang="xh" ></i>
+<output></output>
+</abbr>
+<sup>>
« no previous file with comments | « no previous file | LayoutTests/fast/text/international/bidi-crash-reached-end-of-line-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698