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

Issue 29355872: Issue 4223 - Adapt synchronizer tests to work in adblockpluscore repository (Closed)

Created:
Oct. 5, 2016, 8:05 a.m. by Wladimir Palant
Modified:
Oct. 5, 2016, 12:36 p.m.
Reviewers:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore
Visibility:
Public.

Description

Issue 4223 - Adapt synchronizer tests to work in adblockpluscore repository

Patch Set 1 #

Total comments: 4

Patch Set 2 : Converted former loops into separate tests #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -374 lines) Patch
M test/_common.js View 2 chunks +13 lines, -7 lines 0 comments Download
M test/filterListener.js View 1 chunk +4 lines, -2 lines 0 comments Download
A test/stub-modules/info.js View 1 chunk +8 lines, -0 lines 0 comments Download
M test/stub-modules/prefs.js View 1 chunk +4 lines, -1 line 0 comments Download
M test/stub-modules/utils.js View 1 chunk +11 lines, -1 line 0 comments Download
M test/synchronizer.js View 1 1 chunk +687 lines, -363 lines 5 comments Download

Messages

Total messages: 6
Wladimir Palant
Oct. 5, 2016, 8:05 a.m. (2016-10-05 08:05:55 UTC) #1
Wladimir Palant
The diff is moderately useful unfortunately, too much had to be changed. The original test ...
Oct. 5, 2016, 8:12 a.m. (2016-10-05 08:12:01 UTC) #2
Wladimir Palant
Done, no more looping within tests - the former loops are test groups now.
Oct. 5, 2016, 9:26 a.m. (2016-10-05 09:26:06 UTC) #3
kzar
Found this a little hard to review, but had a go. https://codereview.adblockplus.org/29355872/diff/29355873/test/_common.js File test/_common.js (right): ...
Oct. 5, 2016, 11:36 a.m. (2016-10-05 11:36:51 UTC) #4
Wladimir Palant
> Found this a little hard to review, Not exactly unexpected, this is a complex ...
Oct. 5, 2016, 12:12 p.m. (2016-10-05 12:12:50 UTC) #5
kzar
Oct. 5, 2016, 12:18 p.m. (2016-10-05 12:18:16 UTC) #6
LGTM since as you say we don't want to mess with this file too much before it's
migrated.

https://codereview.adblockplus.org/29355872/diff/29355873/test/_common.js
File test/_common.js (right):

https://codereview.adblockplus.org/29355872/diff/29355873/test/_common.js#new...
test/_common.js:34: log: () => undefined,
On 2016/10/05 12:12:51, Wladimir Palant wrote:
> Maybe something to have as a command line switch.

Yea, a switch to enable logging would be pretty useful.

https://codereview.adblockplus.org/29355872/diff/29355950/test/synchronizer.js
File test/synchronizer.js (right):

https://codereview.adblockplus.org/29355872/diff/29355950/test/synchronizer.j...
test/synchronizer.js:82: function XMLHttpRequest()
On 2016/10/05 12:12:51, Wladimir Palant wrote:
> On 2016/10/05 11:36:51, kzar wrote:
> > Seems kind of wasteful to define XMLHttpRequest and some of this other stuff
> > inside setUp for every test?
> 
> Not really - we want a clean environment for every test. But the code is quite
> massive and unstructured indeed, the next change is going to move it into
> _common.js.

Fair enough.

Powered by Google App Engine
This is Rietveld