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

Issue 10450043: Use minified frame JS in tests. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by kpreid2
Modified:
12 years, 8 months ago
Reviewers:
ihab.awad
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Previously, all test drivers always configured caja.js with 'debug: true', which disables using minified source files. Therefore, the minified files are never exercised. While our minifier for those does not do identifier renaming like Closure does to caja.js and is therefore not as hazardous, we should still be testing what we expect to be deployed. * In test drivers, set caja config option 'debug' (which currently controls only minification) to the negation of the 'minified' URL parameter. * For test drivers which do nothing special in this area, browser-test-case.js now provieds 'basicCajaConfig' which gives cajaServer, debug, and forceES5Mode appropriate values. * Fix a pattern match in es53-test-scan-guest to be compatible with minified code. See <https://code.google.com/p/google-caja/issues/detail?id=1774>. @r5458

Patch Set 1 #

Total comments: 9

Patch Set 2 : Use minified frame JS in tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -139 lines) Patch
M tests/com/google/caja/plugin/browser-test-case.js View 1 3 chunks +27 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/cajajs-bare-test.html View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/default-test-driver.js View 2 chunks +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-apitaming.js View 2 chunks +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-automode1.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-automode2.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-automode3.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-automode4.js View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-invocation.js View 1 3 chunks +6 lines, -18 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-minor-version-skew-cajoled-module.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-version-skew-cajoled-module.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-client-uri-rewriting.js View 2 chunks +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-container-overflow.js View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-custom-cajoling-service-client.js View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-defensible-objects.js View 1 chunk +1 line, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-events.js View 1 chunk +1 line, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-foreign.js View 1 chunk +1 line, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-global.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-special.js View 1 chunk +1 line, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-mitigating-url-rewriter.js View 2 chunks +3 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-proxies.js View 2 chunks +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-relative-urls.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-scan-guest.js View 1 chunk +2 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-advice.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-errors.js View 2 chunks +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-inout.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-primitives.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-tamed.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-untamed.js View 1 chunk +2 lines, -6 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-unicode.js View 1 chunk +1 line, -5 lines 0 comments Download
M tests/com/google/caja/plugin/qunit-test-driver.js View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 5
kpreid2
12 years, 8 months ago (2013-06-20 19:22:01 UTC) #1
ihab.awad
lgtm++ -- comments and questions should not block checkin. https://codereview.appspot.com/10450043/diff/1/tests/com/google/caja/plugin/browser-test-case.js File tests/com/google/caja/plugin/browser-test-case.js (right): https://codereview.appspot.com/10450043/diff/1/tests/com/google/caja/plugin/browser-test-case.js#newcode119 tests/com/google/caja/plugin/browser-test-case.js:119: ...
12 years, 8 months ago (2013-06-21 18:22:24 UTC) #2
kpreid2
Previously, all test drivers always configured caja.js with 'debug: true', which disables using minified source ...
12 years, 8 months ago (2013-06-21 21:25:29 UTC) #3
kpreid2
https://codereview.appspot.com/10450043/diff/1/tests/com/google/caja/plugin/browser-test-case.js File tests/com/google/caja/plugin/browser-test-case.js (right): https://codereview.appspot.com/10450043/diff/1/tests/com/google/caja/plugin/browser-test-case.js#newcode119 tests/com/google/caja/plugin/browser-test-case.js:119: * setUp, tearDown, On 2013/06/21 18:22:24, ihab.awad wrote: > ...
12 years, 8 months ago (2013-06-21 21:26:28 UTC) #4
ihab.awad
12 years, 8 months ago (2013-06-21 21:50:17 UTC) #5
lgtm as-is, no need to add more :)
Sign in to reply to this message.

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