2015-03-04 21:00:47 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
2019-01-08 10:50:14 +03:00
|
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
2015-03-04 21:00:47 +03:00
|
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
|
|
|
<script>
|
|
|
|
function focused() {
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
</script>
|
2019-01-08 10:50:14 +03:00
|
|
|
<body>
|
2015-03-04 21:00:47 +03:00
|
|
|
<div contenteditable spellcheck="false" onfocus="focused()"
|
|
|
|
style="outline: none">foo<span contenteditable=false
|
|
|
|
style="-moz-user-select: none">bar</span>baz</div>
|
2019-01-08 10:50:14 +03:00
|
|
|
<script>
|
|
|
|
SimpleTest.waitForFocus(() => {
|
|
|
|
SimpleTest.executeSoon(() => {
|
|
|
|
synthesizeMouseAtCenter(document.querySelector("span"), {});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2015-03-04 21:00:47 +03:00
|
|
|
</body>
|
|
|
|
</html>
|