Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xmlhttprequest / xmlhttprequest-recursive-sync-event.html
blobec88cf2002a33eda01fc76c56689357d7cabbe34
1 <html>
2 <script>
3 function log(s)
5 var logDiv = document.getElementById("log");
6 logDiv.appendChild(document.createTextNode(s));
7 logDiv.appendChild(document.createElement("br"));
10 function test()
12 if (window.testRunner) {
13 testRunner.dumpAsText();
15 var xhr = new XMLHttpRequest();
16 xhr.onreadystatechange = function() {
17 lastReadyStateObserved = xhr.readyState;
18 if (xhr.readyState == 4) {
19 try {
20 xhr.open("GET", "recurse.html", false);
21 xhr.send(null);
22 } catch(e) {
23 log("FAIL: An event listener should not throw an exception.");
27 xhr.open("GET", "recurse.html", false);
28 xhr.send(null);
29 log("PASS");
31 </script>
32 <body onload="test()">
33 This tests that having infinite recursion in XMLHttpRequest event handler does not crash.
34 <br>
35 <div id="log"></div>
36 </body>
37 </html>