mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 19:27:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
20
layout/reftests/selection/extend-1e.html
Normal file
20
layout/reftests/selection/extend-1e.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<body style="white-space:pre">0123456789
|
||||
<script>
|
||||
document.body.offsetTop;
|
||||
// Test anchor < focus < newfocus
|
||||
var t = document.body.firstChild;
|
||||
var sel = window.getSelection();
|
||||
sel.collapse(t, 2); // anchor
|
||||
sel.extend(t, 6); // focus
|
||||
|
||||
function doTest() {
|
||||
sel.extend(t, 8); // newfocus
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue