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