Reviewers: MarkM,

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.

Please review this at http://codereview.appspot.com/28045

Affected files:
  M     src/com/google/caja/cajita.js
  M     src/com/google/caja/lexer/CharProducer.java
  M     src/com/google/caja/lexer/CssLexer.java
  M     src/com/google/caja/lexer/HtmlLexer.java
  M     src/com/google/caja/lexer/InputElementSplitter.java
  M     src/com/google/caja/parser/html/DomTree.java
  M     tests/com/google/caja/AllTests.java
  M     tests/com/google/caja/demos/calendar/EventStoreTest.java
  M     tests/com/google/caja/demos/calendar/HcalTest.java
  M     tests/com/google/caja/demos/calendar/LayoutTest.java
  M     tests/com/google/caja/demos/calendar/RRuleTest.java
  M     tests/com/google/caja/opensocial/applet/TestBedTest.java
  A     tests/com/google/caja/parser/quasiliteral/TamingTest.java
  A     tests/com/google/caja/parser/quasiliteral/taming_test.html
  M     tests/com/google/caja/plugin/JsHtmlSanitizerTest.java
  M     tests/com/google/caja/util/RhinoTestBed.java


Reply via email to