OLD | NEW |
1 This test passes if it doesn't crash. | 1 This test passes if it doesn't crash. |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 | 5 |
| 6 testRunner.waitUntilDone(); |
6 xhr = new XMLHttpRequest(); | 7 xhr = new XMLHttpRequest(); |
7 xhr.open('GET', 'resources/onclick.html', false); | 8 xhr.open('GET', 'resources/onclick.html', true); |
8 xhr.responseType = 'document'; | 9 xhr.responseType = 'document'; |
9 xhr.onload = function () { r = this.responseXML; } | 10 xhr.onload = function () { |
| 11 var r = this.responseXML; |
| 12 var td = r.getElementById('foo'); |
| 13 td.children[0].onclick; |
| 14 testRunner.notifyDone(); |
| 15 }; |
10 xhr.send(); | 16 xhr.send(); |
11 td = r.getElementById('foo'); | |
12 td.children[0].onclick; | |
13 </script> | 17 </script> |
OLD | NEW |