https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9a2e7a8ddcd0c2bb7475d31c92a5d61705ca1f2f authored by Andrea Marchesini on 04 April 2018, 17:49:15 UTC
Update the StructuredCloneAlgorithm to follow the latest version of the spec,
Tip revision: 9a2e7a8
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