Author: reebalazs
Date: Sun Dec 30 13:46:55 2007
New Revision: 50195
Added:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/selenium_tests/binderids.html
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/binderids_temporary.html
Modified:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.kss
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.pt
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/suite.html
Log:
Add logging and selenium test to binder ids demo
Modified:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.kss
==============================================================================
---
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.kss
(original)
+++
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.kss
Sun Dec 30 13:46:55 2007
@@ -4,17 +4,20 @@
*/
.buttons:click(manual) {
- action-client: alert;
- alert-message: "manual";
+ action-client: insertHTMLAsLastChild;
+ insertHTMLAsLastChild-kssSelector: #logger;
+ insertHTMLAsLastChild-html: "manual";
}
#button1:click(manual2) {
- action-client: alert;
- alert-message: "manual2";
+ action-client: insertHTMLAsLastChild;
+ insertHTMLAsLastChild-kssSelector: #logger;
+ insertHTMLAsLastChild-html: "manual2";
}
.buttons.bindable_by_parm:click(kssAttr(binderid)) {
- action-client: alert;
- alert-message: kssAttr(binderid);
+ action-client: insertHTMLAsLastChild;
+ insertHTMLAsLastChild-kssSelector: #logger;
+ insertHTMLAsLastChild-html: kssAttr(binderid);
}
Modified:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.pt
==============================================================================
---
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.pt
(original)
+++
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/binderids.pt
Sun Dec 30 13:46:55 2007
@@ -12,8 +12,8 @@
Events bound to different binders will not merge.
(Note that this is not the typical usage
if event ids, only a simple check that it really works.
- )If you click the buttons, you need to
- receive alerts per each event bound.
+ )If you click the buttons, you must
+ receive logs per each event bound.
</p>
<hr/>
@@ -28,6 +28,10 @@
value="button3">
<hr/>
+
+ <br />
+
+ <p metal:use-macro="context/@@body_macros/logger">logger</p>
<p>First we bind an event with id "manual" to each button.
We also bind event with id "manual2" to the first button. Then
Added:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/selenium_tests/binderids.html
==============================================================================
--- (empty file)
+++
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/binderids/selenium_tests/binderids.html
Sun Dec 30 13:46:55 2007
@@ -0,0 +1,49 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>binderids</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">binderids</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/demo/binderids.html</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2manualparm1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2manualparm1manualparm2</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Added:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/binderids_temporary.html
==============================================================================
--- (empty file)
+++
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/binderids_temporary.html
Sun Dec 30 13:46:55 2007
@@ -0,0 +1,49 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>binderids</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">binderids</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/demo/binderids.html</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2manualparm1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manualmanual2manualparm1manualparm2</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Modified:
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/suite.html
==============================================================================
---
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/suite.html
(original)
+++
kukit/kss.core/branch/finish-closures/kss/core/plugins/core/demo/selenium_tests/suite.html
Sun Dec 30 13:46:55 2007
@@ -70,6 +70,9 @@
<tr>
<td><a
href="++resource++coreselenium/binderclasses_temporary.html">Binder classes
handling</a></td>
</tr>
+ <tr>
+ <td><a
href="++resource++coreselenium/binderids_temporary.html">Binder ids</a></td>
+ </tr>
<!--> </-->
<tr>
<td>
@@ -134,6 +137,9 @@
<tr>
<td><a
href="++resource++coreselenium/binderclasses_temporary.html">Binder classes
handling</a></td>
</tr>
+ <tr>
+ <td><a
href="++resource++coreselenium/binderids_temporary.html">Binder ids</a></td>
+ </tr>
</tbody>
</table>
</body>
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins