1 This test checks that EventHandler attributes only accept JS functions as input.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS div.onkeydown is null
7 PASS div.onkeydown = callback did not throw exception.
8 PASS div.onkeydown is callback
9 PASS callbackCount is 0
10 PASS callbackCount is 1
11 PASS div.onkeydown is not null
12 PASS div.onkeydown = o did not throw exception.
13 PASS div.onkeydown is o
14 PASS callbackCount is 1
15 PASS div.onkeydown = callback did not throw exception.
16 PASS div.onkeydown is callback
17 PASS div.onkeydown = "non-object" did not throw exception.
18 PASS div.onkeydown is null
19 PASS div.onkeydown = callback did not throw exception.
20 PASS div.onkeydown is callback
21 PASS div.onkeydown = null did not throw exception.
22 PASS div.onkeydown is null
23 PASS successfullyParsed is true