https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 20d1447c7c5e95723d5c102b3645461fd0477e55 authored by Marcos Cáceres on 22 March 2018, 02:51:25 UTC
Remove PaymentCurrencyAmount.currencySystem tests
Tip revision: 20d1447
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