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

Unified Diff: chrome/content/tests/filterStorage.js

Issue 6309214725079040: Issue 1409 - Fix some errors in adblockplustest (Closed)
Patch Set: Created Sept. 19, 2014, 10:35 a.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
« no previous file with comments | « chrome/content/httpd.js ('k') | chrome/content/tests/matcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/filterStorage.js
===================================================================
--- a/chrome/content/tests/filterStorage.js
+++ b/chrome/content/tests/filterStorage.js
@@ -364,35 +364,35 @@
FilterStorage.addFilter(filter1);
equal(filter1.hitCount, 0, "filter1 initial hit count");
equal(filter2.hitCount, 0, "filter2 initial hit count");
equal(filter1.lastHit, 0, "filter1 initial last hit");
equal(filter2.lastHit, 0, "filter2 initial last hit");
- let changes = [];
+ changes = [];
FilterStorage.increaseHitCount(filter1);
equal(filter1.hitCount, 1, "Hit count after increase (filter in list)");
ok(filter1.lastHit > 0, "Last hit changed after increase");
deepEqual(changes, ["filter.hitCount filter1", "filter.lastHit filter1"], "Received changes");
- let changes = [];
+ changes = [];
FilterStorage.increaseHitCount(filter2);
equal(filter2.hitCount, 1, "Hit count after increase (filter not in list)");
ok(filter2.lastHit > 0, "Last hit changed after increase");
deepEqual(changes, ["filter.hitCount filter2", "filter.lastHit filter2"], "Received changes");
- let changes = [];
+ changes = [];
FilterStorage.resetHitCounts([filter1]);
equal(filter1.hitCount, 0, "Hit count after reset");
equal(filter1.lastHit, 0, "Last hit after reset");
deepEqual(changes, ["filter.hitCount filter1", "filter.lastHit filter1"], "Received changes");
- let changes = [];
+ changes = [];
FilterStorage.resetHitCounts(null);
equal(filter2.hitCount, 0, "Hit count after complete reset");
equal(filter2.lastHit, 0, "Last hit after complete reset");
deepEqual(changes, ["filter.hitCount filter2", "filter.lastHit filter2"], "Received changes");
});
test("Filter/subscription relationship", function()
{
« no previous file with comments | « chrome/content/httpd.js ('k') | chrome/content/tests/matcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld