commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgi...@apache.org
Subject svn commit: r331087 - in /jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing: TestSwingTags.java swingTags.jelly
Date Sun, 06 Nov 2005 06:23:45 GMT
Author: hgilde
Date: Sat Nov  5 22:23:42 2005
New Revision: 331087

URL: http://svn.apache.org/viewcvs?rev=331087&view=rev
Log:
Add a test for a Swing action being executed immediately.

Modified:
    jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestSwingTags.java
    jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/swingTags.jelly

Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestSwingTags.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestSwingTags.java?rev=331087&r1=331086&r2=331087&view=diff
==============================================================================
--- jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestSwingTags.java
(original)
+++ jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestSwingTags.java
Sat Nov  5 22:23:42 2005
@@ -154,6 +154,11 @@
         }
         fail("Should have thrown an exception due to an invalid bean property.");
     }
+    
+    public void testActionTagIsNotExecutedImmediately() throws Exception {
+        if (!isAWTAvailable()) return;
+        runSwingScript("test.actionTagImmediateExecution");
+    }
 
     protected void runSwingScript(String testName) throws Exception {
         setUpScript("swingTags.jelly");

Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/swingTags.jelly
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/swingTags.jelly?rev=331087&r1=331086&r2=331087&view=diff
==============================================================================
--- jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/swingTags.jelly
(original)
+++ jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/swingTags.jelly
Sat Nov  5 22:23:42 2005
@@ -1,7 +1,8 @@
 <?xml version="1.0"?>
 <j:jelly 
     xmlns:j="jelly:core" 
-    xmlns="jelly:swing">
+    xmlns="jelly:swing"
+    xmlns:test="jelly:junit">
 	
     <!--for the basic component assembly-->
     <j:if test="${test.simple}">
@@ -72,6 +73,19 @@
     <j:if test="${test.invalidProperty}">
         <frame name="frame" var="frame" size="100,100" location="200,200" foo="bar">
             <panel name="panel">
+            </panel>
+        </frame>
+    </j:if>
+    
+    <!--Ensures that an action tag's contents aren't executed immediately-->
+    <j:if test="${test.actionTagImmediateExecution}">
+        <frame name="frame" var="frame">
+            <panel name="panel">
+                <button>
+                    <action name="Test">
+                        <test:fail>Action tag was executed immediately.</test:fail>
+                    </action>
+                </button>
             </panel>
         </frame>
     </j:if>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message