https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a7c6f918b6c42b7175b6f70334ba834b7dc583c4 authored by kaixinjxq on 15 March 2018, 02:53:31 UTC
Changed the test name.
Tip revision: a7c6f91
getRangeAt.html
<!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>
back to top