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

Issue 5989801094283264: Issue 1587 - Escape curly brackets for elemhide filters (Closed)

Created:
Nov. 20, 2014, 1:52 p.m. by Sebastian Noack
Modified:
Nov. 21, 2014, 10:34 a.m.
Reviewers:
kzar, Wladimir Palant
Visibility:
Public.

Description

Issue 1587 - Escape curly brackets for elemhide filters

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Call require() in IFEE instead in the setup hook #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -98 lines) Patch
M include.postload.js View 2 chunks +6 lines, -2 lines 0 comments Download
M qunit/tests/cssEscaping.js View 1 1 chunk +112 lines, -96 lines 0 comments Download

Messages

Total messages: 4
Sebastian Noack
Nov. 20, 2014, 1:52 p.m. (2014-11-20 13:52:51 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/qunit/tests/cssEscaping.js File qunit/tests/cssEscaping.js (right): http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/qunit/tests/cssEscaping.js#newcode22 qunit/tests/cssEscaping.js:22: this.filterClasses = require("filterClasses"); As with the other review, no ...
Nov. 20, 2014, 2:33 p.m. (2014-11-20 14:33:05 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/qunit/tests/cssEscaping.js File qunit/tests/cssEscaping.js (right): http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/qunit/tests/cssEscaping.js#newcode22 qunit/tests/cssEscaping.js:22: this.filterClasses = require("filterClasses"); On 2014/11/20 14:33:05, Wladimir Palant wrote: ...
Nov. 20, 2014, 3:47 p.m. (2014-11-20 15:47:27 UTC) #3
Wladimir Palant
Nov. 20, 2014, 5:01 p.m. (2014-11-20 17:01:20 UTC) #4
LGTM

http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/quni...
File qunit/tests/cssEscaping.js (right):

http://codereview.adblockplus.org/5989801094283264/diff/5649050225344512/quni...
qunit/tests/cssEscaping.js:71: ok(false, opts.selector + " (not allowed in
elemhide filters)");
On 2014/11/20 15:47:27, Sebastian Noack wrote:
> So far testSelector() only generates one assert per call. And since it is
called
> 1540 times I prefer to keep it that way.

Not sure I agree but not really that important...

Powered by Google App Engine
This is Rietveld