Index: LayoutTests/fast/events/xhr-onclick-crash.html |
diff --git a/LayoutTests/fast/events/xhr-onclick-crash.html b/LayoutTests/fast/events/xhr-onclick-crash.html |
index 23d152ea02a1d7a22797af6c44f55f2c9c020882..fd2edc2bc8ccc2a325a88f4ab5fd73a5f39a4831 100644 |
--- a/LayoutTests/fast/events/xhr-onclick-crash.html |
+++ b/LayoutTests/fast/events/xhr-onclick-crash.html |
@@ -3,11 +3,15 @@ This test passes if it doesn't crash. |
if (window.testRunner) |
testRunner.dumpAsText(); |
+testRunner.waitUntilDone(); |
xhr = new XMLHttpRequest(); |
-xhr.open('GET', 'resources/onclick.html', false); |
+xhr.open('GET', 'resources/onclick.html', true); |
xhr.responseType = 'document'; |
-xhr.onload = function () { r = this.responseXML; } |
+xhr.onload = function () { |
+ var r = this.responseXML; |
+ var td = r.getElementById('foo'); |
+ td.children[0].onclick; |
+ testRunner.notifyDone(); |
+}; |
xhr.send(); |
-td = r.getElementById('foo'); |
-td.children[0].onclick; |
</script> |