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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/selection/getRangeAt.html

Issue 2630243004: Manually import wpt/editing and wpt/selection/ (Closed)
Patch Set: Add expectation Created 3 years, 11 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: third_party/WebKit/LayoutTests/imported/wpt/selection/getRangeAt.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/selection/getRangeAt.html b/third_party/WebKit/LayoutTests/imported/wpt/selection/getRangeAt.html
new file mode 100644
index 0000000000000000000000000000000000000000..3c6d7976fa06e284f74c71f7e7e6ba3ff9dea422
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/selection/getRangeAt.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<title>The getRangeAt method</title>
+<div id=log></div>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script>
+test(function() {
+ var sel = getSelection();
+ var range = document.createRange();
+ sel.addRange(range);
+ assert_throws("INDEX_SIZE_ERR", function() { sel.getRangeAt(-1); })
+ assert_throws("INDEX_SIZE_ERR", function() { sel.getRangeAt(1); })
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698