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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-columns-visible.html

Issue 2330613002: [Devtools] Fixed not showing remoteaddress in network log (Closed)
Patch Set: Changes Created 4 years, 3 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-columns-visible-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-columns-visible.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-columns-visible.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-columns-visible.html
new file mode 100644
index 0000000000000000000000000000000000000000..7f445af159d4f99afa39f013535c8fdc37e8dabb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-columns-visible.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../network-test.js"></script>
+<script>
+function sendXHRRequest() {
+ var xhr = new XMLHttpRequest();
+ xhr.open("GET", "resources/empty.html?xhr");
+ xhr.send();
+}
+
+function test() {
+ var columnsToTest = ["name", "method", "status", "protocol", "scheme", "domain", "remoteaddress", "type", "initiator", "cookies", "setcookies", "priority", "cache-control", "connection", "content-encoding", "content-length", "vary"];
+
+ function onNodeInserted(node)
+ {
+ if (node.request().name() !== "empty.html?xhr")
+ return;
+ for (var columnName of columnsToTest)
+ InspectorTest.addResult(columnName + ": " + node.createCell(columnName).textContent);
+ InspectorTest.completeTest();
+ }
+
+ InspectorTest.recordNetwork();
+ InspectorTest.addSniffer(WebInspector.panels.network._networkLogView._dataGrid, "insertChild", onNodeInserted, true);
+ InspectorTest.NetworkAgent.setCacheDisabled(true, InspectorTest.evaluateInPage.bind(null, "sendXHRRequest()"));
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests to ensure column names are matching data.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-columns-visible-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698