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

Unified Diff: chrome/test/data/webui/net_internals/events_view.js

Issue 13725016: about:net-internals: Add support for negative text filters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Created 7 years, 8 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 | « chrome/browser/resources/net_internals/source_row.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/net_internals/events_view.js
===================================================================
--- chrome/test/data/webui/net_internals/events_view.js (revision 194509)
+++ chrome/test/data/webui/net_internals/events_view.js (working copy)
@@ -154,11 +154,14 @@
{text: 'type:URL_REQUEST', matches: [true, true] },
{text: 'type:SOCKET,URL_REQUEST', matches: [true, true] },
{text: 'type:SOCKET', matches: [false, false] },
+ {text: '-type:PONY', matches: [true, true] },
+ {text: '-type:URL_REQUEST', matches: [false, false] },
{text: 'id:31,32', matches: [true, false] },
+ {text: '-id:31,32', matches: [false, true] },
{text: 'id:32,56,', matches: [false, true] },
- {text: 'is:-active', matches: [true, false] },
+ {text: '-is:active', matches: [true, false] },
{text: 'is:active', matches: [false, true] },
- {text: 'is:-error', matches: [true, true] },
+ {text: '-is:error', matches: [true, true] },
{text: 'is:error', matches: [false, false] },
// Partial match of source type.
{text: 'URL_REQ', matches: [true, true] },
@@ -176,12 +179,13 @@
{ text: '\\"\\"\\"\\"', matches: [false, false] },
{ text: '"Host: www.google.com"', matches: [true, false], },
{ text: 'Connection:" keep-alive"', matches: [true, false], },
+ { text: '-Connection:" keep-alive"', matches: [false, true], },
{ text: '"Host: GET"', matches: [false, false] },
// Make sure sorting has no effect on filters. Sort by ID so order is
// preserved.
{ text: 'sort:"id"', matches: [true, true] },
- // Sorting by unrecognized methods should do a text match.
- { text: 'sort:"shoe size"', matches: [false, false] },
+ { text: '-sort:"shoe size"', matches: [true, true] },
+ { text: '"-sort:shoe size"', matches: [false, false] },
];
for (var filter1 = 0; filter1 < testFilters.length; ++filter1) {
« no previous file with comments | « chrome/browser/resources/net_internals/source_row.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698