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

Unified Diff: LayoutTests/editing/input/orphan-set-selection-range.html

Issue 945873003: Ignore setSelectionRange when node is un-parented. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add NeverFixTests entry Created 5 years, 10 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/input/orphan-set-selection-range.html
diff --git a/LayoutTests/editing/input/orphan-set-selection-range.html b/LayoutTests/editing/input/orphan-set-selection-range.html
new file mode 100755
index 0000000000000000000000000000000000000000..a5b897f1312f1b561c81caae7206385238fbf4ec
--- /dev/null
+++ b/LayoutTests/editing/input/orphan-set-selection-range.html
@@ -0,0 +1,10 @@
+<script src="../../resources/js-test.js"></script>
+<script>
+ description = "Calling setSelectionRange() on an orphaned text node should be a no-op.";
+
+ input = document.createElement('input');
+ input.setSelectionRange(0, 0);
+ doc = document.implementation.createDocument("", null);
+ doc.appendChild(input);
+ document.execCommand("FindString", false, "test");
+</script>

Powered by Google App Engine
This is Rietveld 408576698