[KSS-checkins] r53822 - in kukit/kss.core/branch/1.4/kss/core/plugins/core/demo: commandaction selenium_tests
gotcha at codespeak.net
gotcha at codespeak.net
Wed Apr 16 20:58:06 CEST 2008
Author: gotcha
Date: Wed Apr 16 20:58:06 2008
New Revision: 53822
Modified:
kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.kss
kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.pt
kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/ca_cancel.html
Log:
add test for action-cancel with alias
Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.kss
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.kss (original)
+++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.kss Wed Apr 16 20:58:06 2008
@@ -1,11 +1,20 @@
-#test li:click {
+#standard li:click {
action-server: cancel;
}
-#without:click {
+#standard #without:click {
action-cancel: cancel;
}
+#alias li:click {
+ action-client: insertHTMLAsLastChild css(#logger) alias(test);
+ test-html: action;
+}
+
+#alias #without:click {
+ action-cancel: test;
+}
+
/* Log control
*/
Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.pt
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.pt (original)
+++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/commandaction/cancel.pt Wed Apr 16 20:58:06 2008
@@ -11,11 +11,22 @@
<p metal:use-macro="context/@@body_macros/header">header</p>
<h2>action-cancel</h2>
-
- <ul id="test">
- <li id="with">with</li>
- <li id="without">without</li>
- </ul>
+
+ <div id="standard">
+ <h3>Standard case</h3>
+ <ul>
+ <li id="with">with</li>
+ <li id="without">without</li>
+ </ul>
+ </div>
+
+ <div id="alias">
+ <h3>Alias case</h3>
+ <ul>
+ <li id="with">with</li>
+ <li id="without">without</li>
+ </ul>
+ </div>
<p metal:use-macro="context/@@body_macros/logger">logger</p>
</body>
Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/ca_cancel.html
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/ca_cancel.html (original)
+++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/ca_cancel.html Wed Apr 16 20:58:06 2008
@@ -20,7 +20,7 @@
</tr>
<tr>
<td>click</td>
- <td>with</td>
+ <td>css=#standard #with</td>
<td></td>
</tr>
<tr>
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>click</td>
- <td>without</td>
+ <td>css=#standard #without</td>
<td></td>
</tr>
<tr>
@@ -50,7 +50,57 @@
</tr>
<tr>
<td>click</td>
- <td>with</td>
+ <td>css=#standard #with</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>logger</td>
+ <td>actionaction</td>
+</tr>
+<tr>
+ <td>assertText</td>
+ <td>logger</td>
+ <td>actionaction</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>log-reset</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>css=#alias #with</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>logger</td>
+ <td>action</td>
+</tr>
+<tr>
+ <td>assertText</td>
+ <td>logger</td>
+ <td>action</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>css=#alias #without</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>logger</td>
+ <td>action</td>
+</tr>
+<tr>
+ <td>assertText</td>
+ <td>logger</td>
+ <td>action</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>css=#alias #with</td>
<td></td>
</tr>
<tr>
More information about the Kukit-checkins
mailing list