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

Issue 5279235799252992: Issue 491 - Validate custom filters (Closed)

Created:
Nov. 18, 2014, 3:57 p.m. by Sebastian Noack
Modified:
Nov. 21, 2014, 10:34 a.m.
Reviewers:
kzar, Wladimir Palant
Visibility:
Public.

Description

Issue 491 - Validate custom filters

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Patch Set 3 : Addressed comment and added tests #

Total comments: 15

Patch Set 4 : Addressed comments #

Total comments: 2

Patch Set 5 : Improved test messages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -26 lines) Patch
M _locales/en_US/messages.json View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M background.js View 1 2 chunks +14 lines, -3 lines 0 comments Download
M block.js View 1 1 chunk +14 lines, -6 lines 0 comments Download
A lib/filterValidation.js View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M metadata.common View 1 1 chunk +1 line, -0 lines 0 comments Download
M options.js View 1 2 4 chunks +40 lines, -17 lines 0 comments Download
M qunit/index.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A qunit/tests/filterValidation.js View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 12
Sebastian Noack
Nov. 18, 2014, 4 p.m. (2014-11-18 16:00:04 UTC) #1
kzar
http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/background.js File background.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/background.js#newcode529 background.js:529: How come you don't check that msg.filters and msg.filters.length ...
Nov. 18, 2014, 4:32 p.m. (2014-11-18 16:32:09 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/block.js File block.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/block.js#newcode83 block.js:83: alert(response.error); I don't think this message is helpful without ...
Nov. 18, 2014, 4:35 p.m. (2014-11-18 16:35:03 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/background.js File background.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/background.js#newcode529 background.js:529: On 2014/11/18 16:32:10, kzar wrote: > How come you ...
Nov. 18, 2014, 5:42 p.m. (2014-11-18 17:42:54 UTC) #4
Sebastian Noack
I've uploaded a new patchset, that does the CSS validation in the extension, instead the ...
Nov. 19, 2014, 12:31 p.m. (2014-11-19 12:31:38 UTC) #5
Wladimir Palant
Looks good, only one issue below. http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/options.js File options.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/options.js#newcode553 options.js:553: continue; You've removed ...
Nov. 19, 2014, 4:03 p.m. (2014-11-19 16:03:10 UTC) #6
Sebastian Noack
I also added unit tests for the filter validation. http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/options.js File options.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5629499534213120/options.js#newcode553 options.js:553: ...
Nov. 20, 2014, 12:51 p.m. (2014-11-20 12:51:19 UTC) #7
Wladimir Palant
Code is good, thank you. Unit test still needs some work however. http://codereview.adblockplus.org/5279235799252992/diff/5643440998055936/qunit/tests/filterValidation.js File qunit/tests/filterValidation.js ...
Nov. 20, 2014, 2:10 p.m. (2014-11-20 14:10:06 UTC) #8
Sebastian Noack
http://codereview.adblockplus.org/5279235799252992/diff/5643440998055936/qunit/tests/filterValidation.js File qunit/tests/filterValidation.js (right): http://codereview.adblockplus.org/5279235799252992/diff/5643440998055936/qunit/tests/filterValidation.js#newcode13 qunit/tests/filterValidation.js:13: this.CommentFilter = filterClasses.CommentFilter; On 2014/11/20 14:10:06, Wladimir Palant wrote: ...
Nov. 20, 2014, 3:36 p.m. (2014-11-20 15:36:29 UTC) #9
Wladimir Palant
Feel free to ignore the nit below, LGTM if you do. http://codereview.adblockplus.org/5279235799252992/diff/5643440998055936/qunit/tests/filterValidation.js File qunit/tests/filterValidation.js (right): ...
Nov. 20, 2014, 4:58 p.m. (2014-11-20 16:58:20 UTC) #10
Sebastian Noack
http://codereview.adblockplus.org/5279235799252992/diff/4889511028850688/qunit/tests/filterValidation.js File qunit/tests/filterValidation.js (right): http://codereview.adblockplus.org/5279235799252992/diff/4889511028850688/qunit/tests/filterValidation.js#newcode57 qunit/tests/filterValidation.js:57: equal(filters.length, 3, "there are 3 filters"); On 2014/11/20 16:58:20, ...
Nov. 21, 2014, 8:08 a.m. (2014-11-21 08:08:08 UTC) #11
Wladimir Palant
Nov. 21, 2014, 10:32 a.m. (2014-11-21 10:32:15 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld