Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1212)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html

Issue 1952503003: [Devtools] Fixed XSL sheets not showing in network tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698