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