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