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

Issue 29356068: Issue 4495 - Update adblockplustests dependency (Closed)

Created:
Oct. 6, 2016, 9:20 a.m. by kzar
Modified:
Oct. 6, 2016, 5:50 p.m.
Visibility:
Public.

Description

Issue 4495 - Update adblockplustests dependency

Patch Set 1 #

Patch Set 2 : Remove adblockplustests #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+3259 lines, -15 lines) Patch
M dependencies View 1 1 chunk +1 line, -2 lines 0 comments Download
M metadata.common View 1 3 chunks +1 line, -13 lines 5 comments Download
A qunit/qunit.css View 1 1 chunk +280 lines, -0 lines 0 comments Download
A qunit/qunit.js View 1 1 chunk +2875 lines, -0 lines 0 comments Download
A qunit/tests/prefs.js View 1 1 chunk +102 lines, -0 lines 0 comments Download

Messages

Total messages: 8
kzar
Patch Set 1
Oct. 6, 2016, 9:21 a.m. (2016-10-06 09:21:07 UTC) #1
kzar
Patch Set 2 : Remove adblockplustests
Oct. 6, 2016, 9:37 a.m. (2016-10-06 09:37:59 UTC) #2
Wladimir Palant
LGTM
Oct. 6, 2016, 9:44 a.m. (2016-10-06 09:44:44 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common File metadata.common (left): https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common#oldcode107 metadata.common:107: adblockplustests/chrome/content/tests/filterClasses.js Do I miss something here, or shouldn't we ...
Oct. 6, 2016, 11:47 a.m. (2016-10-06 11:47:36 UTC) #4
Wladimir Palant
https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common File metadata.common (left): https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common#oldcode107 metadata.common:107: adblockplustests/chrome/content/tests/filterClasses.js On 2016/10/06 11:47:36, Sebastian Noack wrote: > Do ...
Oct. 6, 2016, 12:09 p.m. (2016-10-06 12:09:29 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common File metadata.common (left): https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common#oldcode107 metadata.common:107: adblockplustests/chrome/content/tests/filterClasses.js On 2016/10/06 12:09:29, Wladimir Palant wrote: > On ...
Oct. 6, 2016, 12:24 p.m. (2016-10-06 12:24:17 UTC) #6
Wladimir Palant
https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common File metadata.common (left): https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common#oldcode107 metadata.common:107: adblockplustests/chrome/content/tests/filterClasses.js On 2016/10/06 12:24:17, Sebastian Noack wrote: > Not ...
Oct. 6, 2016, 2:27 p.m. (2016-10-06 14:27:59 UTC) #7
Sebastian Noack
Oct. 6, 2016, 4:24 p.m. (2016-10-06 16:24:23 UTC) #8
https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common
File metadata.common (left):

https://codereview.adblockplus.org/29356068/diff/29356072/metadata.common#old...
metadata.common:107: adblockplustests/chrome/content/tests/filterClasses.js
On 2016/10/06 14:27:58, Wladimir Palant wrote:
> On 2016/10/06 12:24:17, Sebastian Noack wrote:
> > Not sure about the effort, but I think it generally makes sense to run these
> > tests on the actual platform, the code is used on. One could argue that
nodejs
> > is the same platform, but that's not quite true. Though nodejs is using the
> same
> > JavaScript engine, chances are that your nodejs version is using a different
> V8
> > version than the latest Chrome, not to mention that the global namespace is
> for
> > the most part quite different in nodejs from what you have in the browser.
> Also
> > what is about platforms like Microsoft Edge that don't even use V8? Do you
> > remember, when a misoptimization by JavaScriptCore (WebKit) of our element
> > hiding code caused each page to be rendered blank?
> 
> I don't really remember that misoptimization being caught by unit tests, I
think
> it was manual testing?
> 
> Either way, these are *unit* tests, their purpose it to test *our* code and
> making sure that it is correct. The only platform relevant here is ECMAScript
6.
> Catching errors in the ECMAScript implementation cannot be the purpose - we
> cannot possibly know what to test.
> 
> Globals are different, you are right. But these are integration points and
> should be subject to integration tests if necessary - making sure that the
> platform behaves the way we expect it to. Luckily, the unit tests now show
> clearly what globals they depend on
>
(https://hg.adblockplus.org/adblockpluscore/file/cc214664f060/test/_common.js#l35)
> so we can add integration tests if we have concerns. The only non-trivial
thing
> in there is the version comparator and that one is already tested in Chrome.

I don't agree, but if we still want to run the core tests on Chrome and Edge
this is apparently a separate effort, unrelated of this change. So LGTM.

Powered by Google App Engine
This is Rietveld