gecko/layout/reftests/selection/dynamic-text-1a.html
Robert O'Callahan 9b800f0c9f Bug 371839. Some simple selection rendering tests. r=bzbarsky
--HG--
extra : rebase_source : b90d4b4eb7d17cc32ab2b9cacc7b54c6a72b209f
2009-07-27 10:07:22 +12:00

22 lines
433 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<body style="white-space:pre">0000
ABCD
EFGH
IJKL
<script>
var t = document.body.firstChild;
var sel = window.getSelection();
sel.collapse(t, 11);
sel.extend(t, 13);
function doTest() {
t.replaceData(0, 5, '');
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>