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

Issue 28045: Tests for Cajita taming functions (Closed)

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

Description

Adds tests and reworks the Rhino test runner to make it a bit easier to write the tests. * Changed RhinoTestBed.runJsUnittestFromHtml to take an HTML tree, and to properly find script elements in that HTML using the HTML parser, and to cajole script elements that have "use strict,cajita";. * Added an HTML test TamingTest.java/taming_test.html. This test currently breaks if the IGNORE_KNOWN_FAILURES flag is set to false. Submitted @3348

Patch Set 1 #

Total comments: 17

Patch Set 2 : Tests for Cajita taming functions #

Total comments: 10

Patch Set 3 : Tests for Cajita taming functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -90 lines) Patch
M src/com/google/caja/cajita.js View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M src/com/google/caja/lexer/CharProducer.java View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M src/com/google/caja/lexer/CssLexer.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/lexer/HtmlLexer.java View 1 2 3 chunks +5 lines, -7 lines 0 comments Download
M src/com/google/caja/lexer/InputElementSplitter.java View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M src/com/google/caja/parser/html/DomTree.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/AllTests.java View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M tests/com/google/caja/demos/calendar/EventStoreTest.java View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M tests/com/google/caja/demos/calendar/HcalTest.java View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M tests/com/google/caja/demos/calendar/LayoutTest.java View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M tests/com/google/caja/demos/calendar/RRuleTest.java View 1 2 1 chunk +13 lines, -9 lines 0 comments Download
M tests/com/google/caja/opensocial/applet/TestBedTest.java View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A tests/com/google/caja/parser/quasiliteral/TamingTest.java View 1 chunk +25 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/quasiliteral/taming_test.html View 1 2 1 chunk +275 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/JsHtmlSanitizerTest.java View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M tests/com/google/caja/util/RhinoTestBed.java View 1 2 4 chunks +167 lines, -42 lines 0 comments Download

Messages

Total messages: 9
MikeSamuel
17 years ago (2009-03-15 00:53:30 UTC) #1
MarkM
Some initial reactions. Review not done yet. http://codereview.appspot.com/28045/diff/1/7 File tests/com/google/caja/parser/quasiliteral/taming_test.html (right): http://codereview.appspot.com/28045/diff/1/7#newcode35 Line 35: // ...
17 years ago (2009-03-15 04:15:06 UTC) #2
MikeSamuel
http://codereview.appspot.com/28045/diff/1/7 File tests/com/google/caja/parser/quasiliteral/taming_test.html (right): http://codereview.appspot.com/28045/diff/1/7#newcode36 Line 36: var MyRootNamespace = function () {}; On 2009/03/15 ...
17 years ago (2009-03-15 23:40:07 UTC) #3
MarkM
http://codereview.appspot.com/28045/diff/1/7 File tests/com/google/caja/parser/quasiliteral/taming_test.html (right): http://codereview.appspot.com/28045/diff/1/7#newcode36 Line 36: var MyRootNamespace = function () {}; On 2009/03/15 ...
17 years ago (2009-03-16 19:45:43 UTC) #4
MikeSamuel
Snapshotted and added tests for JSON. All tests run green now even without IGNORE_KNOWN_FAILURES. http://codereview.appspot.com/28045/diff/1/7 ...
17 years ago (2009-03-17 03:47:30 UTC) #5
MikeSamuel
http://codereview.appspot.com/28045/diff/1021/1037 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/28045/diff/1021/1037#newcode1642 Line 1642: // an enumerable but unreadable property? Ignore this. ...
17 years ago (2009-03-17 03:52:25 UTC) #6
MarkM
Modulo one bug and one run-on sentence, LGTM. http://codereview.appspot.com/28045/diff/1021/1037 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/28045/diff/1021/1037#newcode1043 Line 1043: ...
17 years ago (2009-03-17 22:49:38 UTC) #7
MikeSamuel
http://codereview.appspot.com/28045/diff/1021/1027 File tests/com/google/caja/parser/quasiliteral/taming_test.html (right): http://codereview.appspot.com/28045/diff/1021/1027#newcode52 Line 52: // We test that the function is not ...
17 years ago (2009-03-19 05:43:45 UTC) #8
MarkM
17 years ago (2009-03-19 07:48:53 UTC) #9
LGTM
Sign in to reply to this message.

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