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

Issue 29402576: Issue 5052 - Adjust filter storage unit tests for API changes (Closed)

Created:
April 4, 2017, 12:06 p.m. by Wladimir Palant
Modified:
April 5, 2017, 3:48 p.m.
Reviewers:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore
Visibility:
Public.

Description

Issue 5052 - Adjust filter storage unit tests for API changes

Patch Set 1 #

Total comments: 11

Patch Set 2 : Removed unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -76 lines) Patch
M test/filterStorage_readwrite.js View 1 5 chunks +114 lines, -76 lines 0 comments Download

Messages

Total messages: 5
Wladimir Palant
April 4, 2017, 12:06 p.m. (2017-04-04 12:06:36 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js File test/filterStorage_readwrite.js (left): https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js#oldcode76 test/filterStorage_readwrite.js:76: let tempFile2 = IO.resolveFilePath("temp_patterns2.ini"); Working with temporary files is ...
April 4, 2017, 12:11 p.m. (2017-04-04 12:11:16 UTC) #2
kzar
https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js File test/filterStorage_readwrite.js (left): https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js#oldcode76 test/filterStorage_readwrite.js:76: let tempFile2 = IO.resolveFilePath("temp_patterns2.ini"); On 2017/04/04 12:11:16, Wladimir Palant ...
April 5, 2017, 4 a.m. (2017-04-05 04:00:15 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js File test/filterStorage_readwrite.js (right): https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_readwrite.js#newcode44 test/filterStorage_readwrite.js:44: dataFile = IO.resolveFilePath(Prefs.patternsfile); On 2017/04/05 04:00:15, kzar wrote: > ...
April 5, 2017, 7:14 a.m. (2017-04-05 07:14:24 UTC) #4
kzar
April 5, 2017, 10:08 a.m. (2017-04-05 10:08:58 UTC) #5
LGTM

https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_...
File test/filterStorage_readwrite.js (right):

https://codereview.adblockplus.org/29402576/diff/29402577/test/filterStorage_...
test/filterStorage_readwrite.js:44: dataFile =
IO.resolveFilePath(Prefs.patternsfile);
On 2017/04/05 07:14:24, Wladimir Palant wrote:
> On 2017/04/05 04:00:15, kzar wrote:
> > Shouldn't dataFile be assigned inside the setUp function so that it's state
is
> > fresh for each test?
> 
> Isn't it? We are still inside setUp.

Argh sorry, so it is.

Powered by Google App Engine
This is Rietveld