org.htmlparser.tests.tagTests
Class ScriptTagTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.htmlparser.tests.ParserTestCase
              extended byorg.htmlparser.tests.tagTests.ScriptTagTest
All Implemented Interfaces:
junit.framework.Test

public class ScriptTagTest
extends ParserTestCase


Field Summary
 
Fields inherited from class org.htmlparser.tests.ParserTestCase
mLexer, node, nodeCount, parser
 
Constructor Summary
ScriptTagTest(java.lang.String name)
           
 
Method Summary
 void testCreation()
           
 void testParamExtraction()
           
 void testSingleApostropheParsingBug()
           
 void testToHTML()
           
 void testToHTMLWG()
          Test raw string.
 void testVariableDeclarations()
           
 
Methods inherited from class org.htmlparser.tests.ParserTestCase
assertHiddenIDTagPresent, assertNodeCount, assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, failWithMessage, getParser, main, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

ScriptTagTest

public ScriptTagTest(java.lang.String name)
Method Detail

testCreation

public void testCreation()
                  throws ParserException
Throws:
ParserException

testToHTML

public void testToHTML()
                throws ParserException
Throws:
ParserException

testToHTMLWG

public void testToHTMLWG()
                  throws ParserException
Test raw string. Bug check by Wolfgang Germund 2002-06-02 Upon parsing : <script language="javascript"> if(navigator.appName.indexOf("Netscape") != -1) document.write ('xxx'); else document.write ('yyy'); </script> check toRawString().

Throws:
ParserException

testParamExtraction

public void testParamExtraction()
                         throws ParserException
Throws:
ParserException

testVariableDeclarations

public void testVariableDeclarations()
                              throws ParserException
Throws:
ParserException

testSingleApostropheParsingBug

public void testSingleApostropheParsingBug()
                                    throws ParserException
Throws:
ParserException