Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / console-xhr-logging.html
blob4d1afe808ac7670e1104e6eb92258acbe0006d12
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="console-test.js"></script>
5 <script src="network-test.js"></script>
6 <script>
7 function requestHelper(method, url)
9 // Make synchronous requests for simplicity.
10 console.log("sending a %s request to %s", method, url);
11 makeSimpleXHR(method, url, false);
14 function makeRequests()
16 // 1. Page that exists.
17 requestHelper("GET", "resources/xhr-exists.html");
18 // 2. Page that doesn't exist.
19 requestHelper("GET", "resources/xhr-does-not-exist.html");
20 // 3. POST to a page.
21 requestHelper("POST", "resources/post-target.cgi");
22 // 4. Cross-origin request
23 requestHelper("GET", "http://localhost:8000/inspector/resources/xhr-exists.html");
26 function test()
28 step1();
30 function step1()
32 function callback()
34 InspectorTest.evaluateInPage("makeRequests()", step2);
36 InspectorTest.NetworkAgent.setMonitoringXHREnabled(true, callback);
39 function step2()
41 function callback()
43 InspectorTest.evaluateInPage("makeRequests()", step3);
45 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, callback);
48 function step3()
50 function finish()
52 InspectorTest.dumpConsoleMessages();
53 InspectorTest.completeTest();
55 InspectorTest.runAfterPendingDispatches(finish);
58 //# sourceURL=console-xhr-logging.html
59 </script>
60 </head>
62 <body onload="runTest()">
63 <p>
64 Tests that XMLHttpRequest Logging works when Enabled and doesn't show logs when Disabled.
65 </p>
67 </body>
68 </html>