2010-11-22 11:13:37 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
min-height: 36px;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
</style>
|
2011-06-29 22:22:39 +04:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2010-11-22 11:13:37 +03:00
|
|
|
<script>
|
|
|
|
function test() {
|
|
|
|
document.querySelector("div").focus();
|
|
|
|
// type a character, then press backspace to delete it
|
2011-12-16 17:38:45 +04:00
|
|
|
sendChar("X");
|
|
|
|
sendKey("BACK_SPACE");
|
2010-11-22 11:13:37 +03:00
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="test()">
|
2011-08-22 22:17:37 +04:00
|
|
|
<div id="div1" contenteditable></div>
|
2010-11-22 11:13:37 +03:00
|
|
|
</body>
|
|
|
|
</html>
|