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

Unified Diff: LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash.html

Issue 1121633004: Revert Range firstNode/pastLastNode() refactoring. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert back to previous versions of firstNode/pastLastNode + add test Created 5 years, 7 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 | LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash.html
diff --git a/LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash.html b/LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..d5ec507dd968df224cf71e611bde362592072107
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<script>
+description('Tests that performing toString() over a Range without a root does not crash.');
+
+var t1 = document.createElement("textarea");
+var t2 = document.createElement("textarea");
+t1.appendChild(document.createTextNode("PASS"));
+t1.appendChild(t2);
+
+var r = document.createRange();
+r.setStart(t1, 0);
+r.setEnd(t2, 0);
+
+shouldBeEqualToString('r.toString()', 'PASS');
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/range-toString-non-anchor-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698