| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..acba882fd4ac4568e7e472f9c50150d4b5309e05
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html
|
| @@ -0,0 +1,49 @@
|
| +<html>
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="../network-test.js"></script>
|
| +<script>
|
| +function loadIframe()
|
| +{
|
| + var iframe = document.createElement("iframe");
|
| + document.body.appendChild(iframe);
|
| + iframe.src = "resources/xml-with-stylesheet.xml";
|
| +}
|
| +
|
| +function test()
|
| +{
|
| + var expectedResourceCount = 2;
|
| + var foundResources = 0;
|
| + var resultsOutput = [];
|
| + InspectorTest.recordNetwork();
|
| + InspectorTest.evaluateInPage("loadIframe()");
|
| + InspectorTest.addSniffer(WebInspector.NetworkDispatcher.prototype, "loadingFinished", loadingFinished, true);
|
| +
|
| + function loadingFinished(requestId)
|
| + {
|
| + var request = InspectorTest.networkLog.requestForId(requestId);
|
| + request.requestContent().then(contentReceived.bind(this, request));
|
| + }
|
| + function contentReceived(request, content)
|
| + {
|
| + var output = [];
|
| + output.push(request.url)
|
| + output.push("resource.type: " + request.resourceType());
|
| + output.push("resource.content: " + content);
|
| +
|
| + resultsOutput.push(output.join("\n"));
|
| + if (++foundResources >= expectedResourceCount)
|
| + finish();
|
| + }
|
| + function finish()
|
| + {
|
| + InspectorTest.addResult(resultsOutput.sort().join("\n"));
|
| + InspectorTest.completeTest();
|
| + }
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests XSL stylsheet content. http://crbug.com/603806 </p>
|
| +</body>
|
| +</html>
|
|
|