Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(185)

Issue 5784076: Move CSS Stylesheet Rewriter tests into a JavaScript file (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by MikeSamuel
Modified:
14 years, 3 months ago
Reviewers:
Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This reworks CssRewriterTest so that we can use tests specified in JavaScript both in the Java version and to test the JavaScript version. A later CL will wire the tests into sanitize-css-test.html. This change also factors out sanitizeCss from html-emitter, moving it to sanitize-css.js. Submitted @4807

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move CSS Stylesheet Rewriter tests into a JavaScript file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+835 lines, -508 lines) Patch
M src/com/google/caja/plugin/html-emitter.js View 2 chunks +3 lines, -157 lines 0 comments Download
M src/com/google/caja/plugin/sanitizecss.js View 1 2 chunks +163 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/CssRewriterTest.java View 1 6 chunks +157 lines, -343 lines 0 comments Download
A tests/com/google/caja/plugin/css-stylesheet-tests.js View 1 chunk +491 lines, -0 lines 0 comments Download
M tests/com/google/caja/util/CajaTestCase.java View 2 chunks +21 lines, -8 lines 0 comments Download

Messages

Total messages: 5
MikeSamuel
14 years, 3 months ago (2012-03-14 18:27:54 UTC) #1
Jasvir
http://codereview.appspot.com/5784076/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): http://codereview.appspot.com/5784076/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode401 src/com/google/caja/plugin/sanitizecss.js:401: if ('undefined' !== typeof console) { Can you add ...
14 years, 3 months ago (2012-03-15 02:44:03 UTC) #2
MikeSamuel
http://codereview.appspot.com/5784076/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): http://codereview.appspot.com/5784076/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode401 src/com/google/caja/plugin/sanitizecss.js:401: if ('undefined' !== typeof console) { On 2012/03/15 02:44:03, ...
14 years, 3 months ago (2012-03-15 04:19:25 UTC) #3
Jasvir
LGTM A headsup - when debugging a similar change I was making, I found that ...
14 years, 3 months ago (2012-03-15 05:37:26 UTC) #4
MikeSamuel
14 years, 3 months ago (2012-03-15 18:33:08 UTC) #5
2012/3/15  <jasvir@gmail.com>:
> LGTM
>
> A headsup - when debugging a similar change I was making, I found that
> the startBlock and endBlock rules never fire in the snippet that you
> moved from html-emitter to sanitizecss (and as a result css blocks are
> missing the surrounding braces) but I did not manage to get to the
> bottom of it.  I suspect that as a result the tests that this change
> adds will fail when you do wire up the tests which would be a good time
> to fix that problem.
>
> http://codereview.appspot.com/5784076/

Will do.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b