blob: f2f7bc126d6cceab7464b0715f3c797cbf30e0bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<html>
<script>
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
setTimeout(test2, 0);
}
function test2() {
document.getElementById('tf').focus();
eventSender.keyDown('a');
eventSender.keyDown("\r", null);
if (window.testRunner)
testRunner.notifyDone();
}
function test3()
{
document.getElementById('tf').style.display = "none";
}
function log(msg) {
var res = document.getElementById('res');
res.innerHTML = res.innerHTML + msg + "<br>";
}
</script>
<body onload="test()">
This tests that when the onchange event handler causes the renderer to be deleted, we don't crash.<br>
To run this test manually, type a character in the field and hit enter.<br>
<input id="tf" onchange="test3()">
<br>
<div id="res"></div>
</body>
</html>
|