Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/filterListener.js

Issue 29907586: Issue 6994 - Use shortcut matching for location only filters (Closed)
Patch Set: Address PS4, and rebase Created Oct. 24, 2018, 8:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/matcher.js ('K') | « lib/matcher.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterListener.js
===================================================================
--- a/test/filterListener.js
+++ b/test/filterListener.js
@@ -70,16 +70,25 @@
{
for (let filter of set)
{
test.equal(matcher.findKeyword(filter), keyword,
"Keyword of filter " + filter.text);
filters.push(filter.text);
}
}
+ for (let [keyword, set] of matcher._fastFilterByKeyword)
+ {
+ for (let filter of set)
+ {
+ test.equal(matcher.findKeyword(filter), keyword,
+ "Keyword of filter " + filter.text);
+ filters.push(filter.text);
+ }
+ }
result[type] = filters;
}
let elemHide = sandboxedRequire("../lib/elemHide");
result.elemhide = [];
for (let filter of elemHide.knownFilters)
result.elemhide.push(filter.text);
« lib/matcher.js ('K') | « lib/matcher.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld