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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters-internals.html

Issue 2229683002: [Devtools] Fix RJSMIN for backtick (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Devtools] Fix RJSMIN Created 4 years, 4 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-filters-internals-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-filters-internals.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters-internals.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters-internals.html
new file mode 100644
index 0000000000000000000000000000000000000000..93f3e0ac452583c248393d580126fe596db97df6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters-internals.html
@@ -0,0 +1,60 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../network-test.js"></script>
+<script>
+function test()
+{
+ InspectorTest.recordNetwork();
+
+ var totalResourceCount = 3;
+ InspectorTest.makeFetch("resources/style.css", {}, ensureAllResources);
+ InspectorTest.makeFetch("resources/abe.png", {}, ensureAllResources);
+ InspectorTest.makeFetch("resources/abe.png", {}, ensureAllResources);
+ InspectorTest.makeFetch("resources/cyrillic.html", {}, ensureAllResources);
+ var filterArray = [
+ {
+ filterType: WebInspector.NetworkLogView.FilterType.Domain,
+ filterValue: "127.0.0.1"
+ } ,{
+ filterType: WebInspector.NetworkLogView.FilterType.Scheme,
+ filterValue: "http"
+ }
+ ];
+
+ var resourceCount = 0;
+ function ensureAllResources()
+ {
+ if (++resourceCount >= totalResourceCount)
+ checkFilters();
+ }
+
+ function checkFilters()
+ {
+ for (var filter of filterArray) {
+ InspectorTest.addResult("");
+ InspectorTest.addResult("filterType: " + filter.filterType);
+ InspectorTest.addResult("filterValue: " + filter.filterValue);
+ }
+ InspectorTest.addResult("");
+
+ WebInspector.NetworkPanel.revealAndFilter(filterArray);
+
+ var nodes = WebInspector.panels.network._networkLogView._nodesByRequestId.valuesArray();
+ var foundNodesCount = 0;
+ for (var i = 0; i < nodes.length; i++) {
+ if (!nodes[i][WebInspector.NetworkLogView._isFilteredOutSymbol])
+ foundNodesCount++;
+ }
+
+ InspectorTest.addResult("Found results: " + foundNodesCount);
+ InspectorTest.addResult("");
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests to ensure data being passed from outside network to filter results filters properly.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters-internals-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698