|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseComponentTestCase
org.apache.tapestry.util.ScriptUtilsTest
public class ScriptUtilsTest
Tests functionality of ScriptUtils
.
Field Summary | |
---|---|
static String |
BEGIN_COMMENT
|
static String |
END_COMMENT
|
protected static String |
JAVASCRIPT_NOCOMMENT
|
protected static String |
MULTI_JAVASCRIPT_NOCOMMENT
|
protected static String |
TEST_INPUT_INCLUDE
|
protected static String |
TEST_INPUT1
|
protected static String |
TEST_INPUT2
|
protected static String |
TEST_INPUT3
|
protected static String |
TEST_INPUT4
|
Constructor Summary | |
---|---|
ScriptUtilsTest()
|
Method Summary | |
---|---|
void |
test_Complete_Return()
Tests that the complete string is returned, with any js in it "fixed". |
void |
test_Ensure_Valid_Script_Tags_With_Html_Comments()
|
void |
test_Ensure_Valid_Script_Tags()
Calls ScriptUtils.ensureValidScriptTags(String) with
JAVASCRIPT_NOCOMMENT and tests that it returns a validly
marked up content block capable of being embedded in an xml document. |
void |
test_Find_Multiple_Scripts()
Tests finding JAVASCRIPT_NOCOMMENT with
regular expressions. |
void |
test_Find_Script()
Tests finding JAVASCRIPT_NOCOMMENT with
regular expressions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String JAVASCRIPT_NOCOMMENT
protected static final String MULTI_JAVASCRIPT_NOCOMMENT
protected static final String TEST_INPUT1
protected static final String TEST_INPUT2
protected static final String TEST_INPUT3
protected static final String TEST_INPUT4
protected static final String TEST_INPUT_INCLUDE
public static final String BEGIN_COMMENT
public static final String END_COMMENT
Constructor Detail |
---|
public ScriptUtilsTest()
Method Detail |
---|
public void test_Find_Script()
JAVASCRIPT_NOCOMMENT
with
regular expressions.
public void test_Find_Multiple_Scripts()
JAVASCRIPT_NOCOMMENT
with
regular expressions.
public void test_Ensure_Valid_Script_Tags()
ScriptUtils.ensureValidScriptTags(String)
with
JAVASCRIPT_NOCOMMENT
and tests that it returns a validly
marked up content block capable of being embedded in an xml document.
public void test_Ensure_Valid_Script_Tags_With_Html_Comments()
public void test_Complete_Return()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |