diff options
| author | crogers | 2010-05-07 18:23:43 +0000 |
|---|---|---|
| committer | crogers | 2010-05-07 18:23:43 +0000 |
| commit | 598da983ba6149e5d65a06052d61457989bb0803 (patch) | |
| tree | 9d9d5a9429c946d2db6f2daecc5e4f90ecc3d515 | |
| parent | a90231fec5c05170024ca1a367cbd37c4e866c67 (diff) | |
| download | webtools.jsf-598da983ba6149e5d65a06052d61457989bb0803.tar.gz webtools.jsf-598da983ba6149e5d65a06052d61457989bb0803.tar.xz webtools.jsf-598da983ba6149e5d65a06052d61457989bb0803.zip | |
[Bug 252861] - adding new test data files to be used for JUnit testing.
2 files changed, 99 insertions, 0 deletions
diff --git a/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/checkModeOp.tld.data b/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/checkModeOp.tld.data new file mode 100644 index 000000000..178883ef4 --- /dev/null +++ b/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/checkModeOp.tld.data @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> + +<!DOCTYPE taglib + PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" + "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> + + +<taglib> + + + <!-- ========== Tag Library Description Elements ========================= --> + + + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>testCheckModeOperation</short-name> + <uri>org.eclipse.jst.pagedesigner.tests.testCheckModeOperation</uri> + <description> + A test tld used for verifying the CheckModeOperation. + </description> + + <!-- ========== Tag Descriptions ========================================= --> + + + <tag> + <name>testTagOne</name> + <tag-class>com.foo.SomeClassOne</tag-class> + <body-content>JSP</body-content> + <description> + A simple test tag. This test includes design time metadata mapped to + this tag to exercise the CheckModeOperation. + </description> + + <attribute> + <name>notRequiredAttr1</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + This attribute is optional. + </description> + </attribute> + </tag> + + <tag> + <name>testTagTwo</name> + <tag-class>com.foo.SomeClassTwo</tag-class> + <body-content>JSP</body-content> + <description> + A simple test tag. This test includes design time metadata mapped to + this tag to exercise the CheckModeOperation. + </description> + + <attribute> + <name>requiredAttr1</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + This attribute is required. + </description> + </attribute> + + <attribute> + <name>requiredAttr2</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + This attribute is required. + </description> + </attribute> + </tag> + +</taglib> diff --git a/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/testCheckModeOperation.jsp.data b/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/testCheckModeOperation.jsp.data new file mode 100644 index 000000000..81b4da175 --- /dev/null +++ b/jsf/tests/org.eclipse.jst.pagedesigner.tests/testdata/checkmodeop/testCheckModeOperation.jsp.data @@ -0,0 +1,27 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> +<%@taglib uri="org.eclipse.jst.pagedesigner.tests.testCheckModeOperation" prefix="cmo"%> + +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> + <title>Test CheckModeOperation</title> +</head> +<body> + <div id="t1Div"> + <cmo:testTagOne> + <span id="t1ChildSpan"> + some text + </span> + </cmo:testTagOne> + </div> + + <div id="t2Div"> + <cmo:testTagTwo requiredAttr1="designId" + requiredAttr2="previewId"> + <span id="t2ChildSpan"> + some text + </span> + </cmo:testTagTwo> + </div> +</body> +</html> |
