com.google.caja.parser.html
Class NodesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.caja.util.CajaTestCase
              extended by com.google.caja.parser.html.NodesTest
All Implemented Interfaces:
junit.framework.Test

public class NodesTest
extends CajaTestCase


Field Summary
 
Fields inherited from class com.google.caja.util.CajaTestCase
is, mc, mq, SEED
 
Constructor Summary
NodesTest()
           
 
Method Summary
private  int benchmark(int nRuns, org.w3c.dom.Element el)
           
 void testBadProcessingInstructions()
           
 void testDecode()
           
 void testHtmlNamesNormalized()
           
 void testNoSneakyNamespaceDecls1()
           
 void testNoSneakyNamespaceDecls2()
           
 void testNoSneakyNamespaceDecls3()
           
 void testProcessingInstructionInHtml()
           
 void testProcessingInstructions()
           
 void testRenderModes()
           
 void testRenderOfEmbeddedXml()
           
 void testRenderSpeed()
           
 void testRenderWithBrokenNekoDom()
           
 void testRenderWithMaskedInputNamespace1()
           
 void testRenderWithMaskedInputNamespace2()
           
 void testRenderWithMaskedOutputNamespace1()
           
 void testRenderWithNonstandardNamespaces()
           
 void testRenderWithUnknownNamespace()
           
 
Methods inherited from class com.google.caja.util.CajaTestCase
assertArrayEquals, assertCloneable, assertDeepEquals, assertMessage, assertMessage, assertMessagesLessSevereThan, assertNoErrors, assertNoMessage, assertNoWarnings, checkHeadless, css, css, cssDecls, cssDecls, dataFromResource, formatShort, fromResource, fromResource, fromString, fromString, fromString, html, htmlFragment, js, js, js, jsExpr, jsExpr, markup, markupFragment, minify, plain, quasi, render, render, renderProgram, runTest, setUp, tearDown, xml, xmlFragment
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodesTest

public NodesTest()
Method Detail

testDecode

public final void testDecode()

testRenderOfEmbeddedXml

public final void testRenderOfEmbeddedXml()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testRenderWithNonstandardNamespaces

public final void testRenderWithNonstandardNamespaces()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testRenderWithUnknownNamespace

public final void testRenderWithUnknownNamespace()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testRenderWithMaskedInputNamespace1

public final void testRenderWithMaskedInputNamespace1()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testRenderWithMaskedInputNamespace2

public final void testRenderWithMaskedInputNamespace2()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testRenderWithMaskedOutputNamespace1

public final void testRenderWithMaskedOutputNamespace1()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlNamesNormalized

public final void testHtmlNamesNormalized()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testNoSneakyNamespaceDecls1

public final void testNoSneakyNamespaceDecls1()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testNoSneakyNamespaceDecls2

public final void testNoSneakyNamespaceDecls2()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testNoSneakyNamespaceDecls3

public final void testNoSneakyNamespaceDecls3()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testProcessingInstructions

public final void testProcessingInstructions()

testBadProcessingInstructions

public final void testBadProcessingInstructions()

testProcessingInstructionInHtml

public final void testProcessingInstructionInHtml()

testRenderWithBrokenNekoDom

public final void testRenderWithBrokenNekoDom()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRenderModes

public final void testRenderModes()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testRenderSpeed

public final void testRenderSpeed()
                           throws java.lang.Exception
Throws:
java.lang.Exception

benchmark

private int benchmark(int nRuns,
                      org.w3c.dom.Element el)


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0