https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 86fb98f2c3ec4e05bc529f19e41465da62052c3a authored by Lukasz Anforowicz on 02 April 2018, 23:48:36 UTC
Make CORB MIME type classification consistent with the web specs.
Tip revision: 86fb98f
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