[KSS-checkins] r50405 - in kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo: . coresyntax coresyntax/selenium_tests parameterfunction parameterfunction/selenium_tests selenium_tests
reebalazs at codespeak.net
reebalazs at codespeak.net
Sun Jan 6 17:20:46 CET 2008
Author: reebalazs
Date: Sun Jan 6 17:20:45 2008
New Revision: 50405
Added:
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/__init__.pyc (contents, props changed)
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/config.py
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/demoview.pyc (contents, props changed)
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/README.txt
- copied unchanged from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/markup/selenium_tests/README.txt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_providers_multiprop.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param_multiprop.html
- copied, changed from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_url_param_multiprop.html
- copied, changed from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/urlparam.html
- copied unchanged from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/zopeconfig.py
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/config.py
- copied, changed from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.kss
- copied, changed from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.pt
- copied, changed from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.kss
- copied unchanged from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.pt
- copied unchanged from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/README.txt
- copied unchanged from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/markup/selenium_tests/README.txt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/kss_form_submit_multiprop.html
- copied, changed from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/pf_forms.html
- copied unchanged from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/zopeconfig.py
- copied, changed from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py
Removed:
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.kss
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html
Modified:
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/configure.zcml
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/more_selectors.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/configure.zcml
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py
Log:
Adding tests for coresyntax and providers
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py Sun Jan 6 17:20:45 2008
@@ -21,10 +21,7 @@
KSSDemo('', '', "preventdefault.html", "Preventdefault (a.k.a. Safari workarounds)"),
KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag content returns)"),
KSSDemo('', '', "client-server-protocol", "Client server protocol"),
- KSSDemo('', 'Value providers', 'pf_forms.html', 'Forms'),
KSSDemo('', 'Selectors', 'selectors.html', 'Parent node selector'),
- KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
- KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
KSSDemo('', 'Core events', "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"),
KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/__init__.pyc
==============================================================================
Binary file. No diff available.
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/config.py
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/config.py Sun Jan 6 17:20:45 2008
@@ -0,0 +1,21 @@
+
+from kss.base.plugin import Plugin
+from kss.demo.resource import (
+ KSSDemo,
+ KSSSeleniumTestDirectory,
+ )
+
+class CoreSyntaxDemos(Plugin):
+
+ zope_demos = (
+ KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
+ KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
+ KSSDemo('', 'Core syntax', "kss_selector_param_multiprop.html", "Kss selector parameters, with multiproperties"),
+ KSSDemo('', 'Core syntax', "kss_url_param_multiprop.html", "Kss url parameters, with multiproperties"),
+ KSSDemo('', 'Core syntax', "kss_providers_multiprop.html", "Kss providers, with multiproperties"),
+ )
+
+ # directories are relative from the location of this .py file
+ zope_selenium_testsuites = (
+ KSSSeleniumTestDirectory('selenium_tests'),
+ )
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/configure.zcml
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/configure.zcml (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/configure.zcml Sun Jan 6 17:20:45 2008
@@ -1,8 +1,19 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="kss"
>
+ <!-- Set up the demo utility -->
+ <configure zcml:condition="have kss_demo_version_1_2">
+ <utility
+ name="coresyntax"
+ factory=".zopeconfig.KSSCoreSyntaxDemos"
+ provides="kss.demo.interfaces.IKSSDemoResource"
+ permission="zope.Public"
+ />
+ </configure>
+
<!-- selector parameter -->
<browser:page
@@ -17,6 +28,21 @@
name="kss_selector_param.kss"
/>
+ <!-- selector parameter with multi property-->
+
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_selector_param_multiprop.pt"
+ name="kss_selector_param_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_selector_param_multiprop.kss"
+ name="kss_selector_param_multiprop.kss"
+ />
+
+
<!-- url parameter -->
<browser:page
@@ -55,5 +81,34 @@
name="kss_url_param.kss"
/>
+ <!-- url parameter with multi property -->
+
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_url_param_multiprop.pt"
+ name="kss_url_param_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_url_param_multiprop.kss"
+ name="kss_url_param_multiprop.kss"
+ />
+
+ <!-- providers with multi property -->
+
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_providers_multiprop.pt"
+ name="kss_providers_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_providers_multiprop.kss"
+ name="kss_providers_multiprop.kss"
+ />
+
+
</configure>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/demoview.pyc
==============================================================================
Binary file. No diff available.
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.kss
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.kss Sun Jan 6 17:20:45 2008
@@ -0,0 +1,49 @@
+
+/* log reset: we use kssSelector and not the straight way...
+ * since we test the multiprops now.. */
+/* XXX no idea how to wait for the log being cleared,
+ * so I rather just insert a text now */
+#log-reset a:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML;
+ replaceInnerHTML-kssSelector: htmlid(target);
+ replaceInnerHTML-html: 'Target';
+}
+ /*clearChildNodes-kssSelector: #logger;>*/
+
+
+
+#button1:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML htmlid(target);
+ replaceInnerHTML-html: nodeAttr(id) htmlid(source);
+}
+
+#button2:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML htmlid(target);
+ replaceInnerHTML-html: 'Error, OK';
+ action-client: insertHTMLAsLastChild htmlid(target);
+ insertHTMLAsLastChild-html: nodeAttr(id) htmlid(nonexistent);
+}
+
+#button3:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML htmlid(target);
+ replaceInnerHTML-html: 'Error, OK';
+ action-client: insertHTMLAsLastChild htmlid(target);
+ insertHTMLAsLastChild-html: nodeAttr(id) css(h3);
+}
+
+#button4:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML htmlid(target);
+ replaceInnerHTML-html: css("#source a") nodeAttr(href);
+}
+
+#button5:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML htmlid(target);
+ replaceInnerHTML-html: css("#source a") nodeContent();
+}
+
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.pt
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_providers_multiprop.pt Sun Jan 6 17:20:45 2008
@@ -0,0 +1,84 @@
+<html tal:define="viewname string:kss_providers_multiprop">
+
+ <head>
+
+ <metal:header use-macro="context/@@header_macros/header_resources" />
+
+ </head>
+
+ <body>
+
+ <p metal:use-macro="context/@@body_macros/header">header</p>
+
+ <h2>Value providers with multiproperty</h2>
+
+ <p>We test the parameter functions can stand with a selector at the same line.
+ (The order of the providers on the line is irrelevant.)</p>
+
+ <!--p metal:use-macro="context/@@body_macros/logger">logger</p-->
+ <h3>Log</h3>
+ <p id="log-reset"><a>Reset log</a></p>
+ <div id="target">Target</div>
+ <hr />
+
+ <!-- We will select this node -->
+ <div id="source">
+ <a href="http://foo.bar">Do not click this.</a>
+ </div>
+
+ <hr />
+
+ <h3>
+ <code>nodeAttr(id) htmlid(source);</code> results "source".
+ </h3>
+ <div class="help">
+ Click the button.
+ </div>
+ <a class="button click cursorPointer" id="button1">Click me !</a>
+
+ <hr />
+
+ <h3>
+ <code>nodeAttr(id) htmlid(nonexistent);</code> returns 0 node, causes error.
+ </h3>
+ <div class="help">
+ Click the button.
+ </div>
+ <a class="button click cursorPointer" id="button2">Click me !</a>
+
+ <hr />
+
+ <h3>
+ <code>nodeAttr(id) css(h3);</code> returns more nodes, causes error.
+ </h3>
+ <div class="help">
+ Click the button.
+ </div>
+ <a class="button click cursorPointer" id="button3">Click me !</a>
+
+ <hr />
+
+ <h3>
+ <code>css("#source a") nodeAttr(href);</code> results "http://foo.bar".
+ </h3>
+ <div class="help">
+ Click the button.
+ </div>
+ <a class="button click cursorPointer" id="button4">Click me !</a>
+
+ <hr>
+
+ <h3>
+ <code>css("#source a") nodeContent();</code> results "Do not click this.".
+ </h3>
+ <div class="help">
+ Click the button.
+ </div>
+ <a class="button click cursorPointer" id="button5">Click me !</a>
+
+
+
+ <hr />
+
+ </body>
+</html>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.kss
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.kss Sun Jan 6 17:20:45 2008
@@ -0,0 +1,43 @@
+
+
+.clickable:click {
+ evt-click-preventdefault: true;
+}
+
+
+#button_1:click {
+ action-client: setStyle htmlid(button_2);
+ setStyle-name: backgroundColor;
+ setStyle-value: #FFa0a0;
+ action-client: setAttribute htmlid(button_2);
+ setAttribute-name: value;
+ setAttribute-value: 'RESET ME';
+
+}
+
+#button_2:click {
+ action-client: setStyle;
+ setStyle-name: backgroundColor;
+ setStyle-value: white;
+ action-client: setAttribute;
+ setAttribute-name: value;
+ setAttribute-value: 'Watch me';
+}
+
+#button_3:click {
+ action-client: setStyle css("#button_4");
+ setStyle-name: backgroundColor;
+ setStyle-value: #FFa0a0;
+ action-client: setAttribute css('#button_4');
+ setAttribute-name: value;
+ setAttribute-value: 'RESET ME';
+}
+
+#button_4:click {
+ action-client: setStyle;
+ setStyle-name: backgroundColor;
+ setStyle-value: white;
+ action-client: setAttribute;
+ setAttribute-name: value;
+ setAttribute-value: 'Watch me';
+}
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.pt
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.pt Sun Jan 6 17:20:45 2008
@@ -0,0 +1,56 @@
+<html tal:define="viewname string:kss_selector_param_multiprop">
+
+ <head>
+
+ <metal:header use-macro="context/@@header_macros/header_resources" />
+
+ </head>
+
+ <body>
+
+ <p metal:use-macro="context/@@body_macros/header">header</p>
+
+ <h2>Kss selector parameter with multiple properties demo</h2>
+ <form name="edit">
+ <p>There are two buttons. If you click on the first button, it changes the style of the
+ second button. Look at the link on the kss file to understand.
+ </p>
+
+ <p>We use multiple properties, which means that instead the kssSelector line, the
+ selector is in the same line as the action-client. (See kss file.)
+ </p>
+
+ <h3>
+ <code>action-client: setAttribute htmlid(button_2);</code>
+ </h3>
+ <div class="help">
+ Click the button here.
+ </div>
+
+ <div>
+ <input type="submit" id="button_1" class="clickable"
+ value="Click me" />
+ <input type="submit" id="button_2" class="clickable"
+ value="Watch me" />
+ </div>
+
+
+ <h3>
+ <code>action-client: setAttribute css('#button_4');</code>
+ </h3>
+ <div class="help">
+ Click the button here.
+ </div>
+
+ <div>
+ <input type="submit" id="button_3" class="clickable"
+ value="Click me" />
+ <input type="submit" id="button_4" class="clickable"
+ value="Watch me" />
+ </div>
+
+
+ </form>
+
+ </body>
+</html>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss Sun Jan 6 17:20:45 2008
@@ -0,0 +1,23 @@
+
+
+.click:click {
+ evt-click-preventdefault: true;
+}
+
+
+#button_1:click {
+ action-server: urlMethod1;
+}
+
+#button_2:click {
+ action-server: urlMethodAlias url(urlMethod2);
+}
+
+#button_3:click {
+ action-server: urlMethodAnotherAlias url("@@urlMethod3/urlMethod3");
+}
+
+#button_4:click {
+ action-server: urlMethodAnotherAlias url(kssValue(attr, methodname));
+}
+
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt Sun Jan 6 17:20:45 2008
@@ -0,0 +1,68 @@
+<html tal:define="viewname string:kss_url_param_multiprop">
+
+ <head>
+
+ <metal:header use-macro="context/@@header_macros/header_resources" />
+
+ </head>
+
+ <body>
+
+ <p metal:use-macro="context/@@body_macros/header">header</p>
+
+
+ <h2>Kss url parameter</h2>
+ <form name="edit">
+ <p>Click on buttons will call server-side. Each button exercise a different syntax to express which URL to call. Server will update the <code>div</code> hereunder with corresponding text.</p>
+
+ <div id="target">Target</div>
+
+ <h3>Relative URL</h3>
+ <div class="help">
+ Click the button; it will call <code>urlMethod1</code> on the server.
+ <pre><code>#button_1:click
+ action-server: urlMethod1;
+}</code></pre></div>
+
+ <div class="container">
+ <a class="button click cursorPointer" id="button_1">Click me !</a>
+ </div>
+
+ <h3>Alias URL</h3>
+ <div class="help">
+ Click the button; it will call <code>urlMethod2</code> on the server.
+ <pre><code>#button_2:click {
+ action-server: urlMethodAlias url(urlMethod2);
+}</code></pre></div>
+
+ <div class="container">
+ <a class="button click cursorPointer" id="button_2">Click me !</a>
+ </div>
+
+ <h3>Alias URL with <code>@@</code></h3>
+ <div class="help">
+ Click the button; it will call <code>@@urlMethod3/urlMethod3</code> on the server.
+ <pre><code>#button_3:click {
+ action-server: urlMethodAnotherAlias url("@@urlMethod3/urlMethod3");
+}</code></pre></div>
+
+ <div class="container">
+ <a class="button click cursorPointer" id="button_3">Click me !</a>
+ </div>
+
+
+ <h3>Alias URL from provider</h3>
+ <div class="help" >
+ Click the button; it will call <code>@@urlMethod3/urlMethod3</code> on the server.
+ <pre><code>#button_4:click {
+ action-server: urlMethodAnotherAlias url(kssValue(attr, methodname));
+}</code></pre></div>
+
+ <div class="container kss-attr-methodname-urlMethod3">
+ <a class="button click cursorPointer" id="button_4">Click me !</a>
+ </div>
+
+ </form>
+
+ </body>
+</html>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_providers_multiprop.html
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_providers_multiprop.html Sun Jan 6 17:20:45 2008
@@ -0,0 +1,109 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>kss_providers_multiprop</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">kss_providers_multiprop</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/demo/kss_providers_multiprop.html</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>source</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Reset log</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Target</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Error, OK</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Reset log</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Target</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Error, OK</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Reset log</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Target</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button4</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>exact:http://foo.bar</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Reset log</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Target</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button5</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Do not click this.</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param.html
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param.html Sun Jan 6 17:20:45 2008
@@ -0,0 +1,109 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>kss_selector_param</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">kss_selector_param</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/demo/kss_selector_param.html</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_1</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_2</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_2</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_2</td>
+ <td>Watch me</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_2</td>
+ <td>Watch me</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_3</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_4</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_4</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_4</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_4</td>
+ <td>Watch me</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_4</td>
+ <td>Watch me</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_5</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_6</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_6</td>
+ <td>RESET ME</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>button_6</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForValue</td>
+ <td>button_6</td>
+ <td>Watch me</td>
+</tr>
+<tr>
+ <td>assertValue</td>
+ <td>button_6</td>
+ <td>Watch me</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param_multiprop.html (from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param_multiprop.html Sun Jan 6 17:20:45 2008
@@ -10,7 +10,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/demo/kss_selector_param.html</td>
+ <td>/demo/kss_selector_param_multiprop.html</td>
<td></td>
</tr>
<tr>
@@ -73,36 +73,6 @@
<td>button_4</td>
<td>Watch me</td>
</tr>
-<tr>
- <td>click</td>
- <td>button_5</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_6</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
</tbody></table>
</body>
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_url_param_multiprop.html (from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_url_param_multiprop.html Sun Jan 6 17:20:45 2008
@@ -10,7 +10,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/demo/kss_url_param.html</td>
+ <td>/demo/kss_url_param_multiprop.html</td>
<td></td>
</tr>
<tr>
@@ -63,6 +63,22 @@
<td>Method 3 called</td>
<td></td>
</tr>
+<tr>
+ <td>click</td>
+ <td>button_4</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Method 3 called</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>Method 3 called</td>
+ <td></td>
+</tr>
+
</tbody></table>
</body>
Added: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/zopeconfig.py
==============================================================================
--- (empty file)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/zopeconfig.py Sun Jan 6 17:20:45 2008
@@ -0,0 +1,31 @@
+
+from kss.demo.interfaces import (
+ IKSSDemoResource,
+ IKSSSeleniumTestResource,
+ )
+from kss.demo.resource import (
+ KSSDemo,
+ KSSSeleniumTestDirectory,
+ )
+from zope.interface import implements
+
+# Create a mesh of provided interfaces
+# This is needed, because an utility must have a single interface.
+class IResource(IKSSDemoResource, IKSSSeleniumTestResource):
+ pass
+
+class KSSCoreSyntaxDemos(object):
+ implements(IResource)
+
+ demos = (
+ KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
+ KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
+ KSSDemo('', 'Core syntax', "kss_selector_param_multiprop.html", "Kss selector parameters, with multiproperties"),
+ KSSDemo('', 'Core syntax', "kss_url_param_multiprop.html", "Kss url parameters, with multiproperties"),
+ KSSDemo('', 'Core syntax', "kss_providers_multiprop.html", "Kss providers, with multiproperties"),
+ )
+
+ # directories are relative from the location of this .py file
+ selenium_tests = (
+ KSSSeleniumTestDirectory('selenium_tests'),
+ )
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/more_selectors.pt
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/more_selectors.pt (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/more_selectors.pt Sun Jan 6 17:20:45 2008
@@ -40,7 +40,7 @@
<input type="button" id="button-one" value="Do it"/>
<input type="button" id="button-two" value="Do it again"/>
<h1>Log</h1>
- <p id="log-reset"><a>Reset log</a></p>
+ <p><a id="log-reset">Reset log</a></p>
<p class="log">You clicked :</p>
<div id="logger" class="log">
<p id='log-end'></p>
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/config.py (from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/config.py (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/config.py Sun Jan 6 17:20:45 2008
@@ -5,32 +5,11 @@
KSSSeleniumTestDirectory,
)
-class CoreDemos(Plugin):
+class ValueProviderDemos(Plugin):
zope_demos = (
- KSSDemo('', '', "basic_commands.html", "Change tag content"),
- KSSDemo('', '', "two_selects.html", "Two selects"),
- KSSDemo('', '', "autoupdate.html", "Auto update"),
- KSSDemo('', '', "inline_edit.html", "Inline edit"),
- KSSDemo('', '', "cancel_submit.html", "Cancel Submit Click"),
- KSSDemo('', '', "tree.html", "Tree"),
- KSSDemo('', '', "more_selectors.html", "More complex selectors"),
- KSSDemo('', '', "two_select_revisited.html", "Master-slave selects revisited"),
- KSSDemo('', '', "form_submit.html", "Form submit"),
- KSSDemo('', '', "error_handling.html", "Error handling"),
- KSSDemo('', '', "preventdefault.html", "Preventdefault (a.k.a. Safari workarounds)"),
- KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag content returns)"),
- KSSDemo('', '', "client-server-protocol", "Client server protocol"),
KSSDemo('', 'Value providers', 'pf_forms.html', 'Forms'),
- KSSDemo('', 'Selectors', 'selectors.html', 'Parent node selector'),
- KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
- KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
- KSSDemo('', 'Core events', "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"),
- KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
- KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
- KSSDemo('', 'Commands/Actions', "actions.html", "Toggle case action"),
- # XXX this should go to the other plugin wuth all its stuff
- KSSDemo('Effects', '', "effects.html", "Effects"),
+ KSSDemo('', 'Value providers', 'kss_form_submit_multiprop.html', 'Form submit, with multiproperties'),
)
# directories are relative from the location of this .py file
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/configure.zcml
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/configure.zcml (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/configure.zcml Sun Jan 6 17:20:45 2008
@@ -1,8 +1,20 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="kss"
>
+ <!-- Set up the demo utility -->
+ <configure zcml:condition="have kss_demo_version_1_2">
+ <utility
+ name="coreproviders"
+ factory=".zopeconfig.ValueProviderDemos"
+ provides="kss.demo.interfaces.IKSSDemoResource"
+ permission="zope.Public"
+ />
+ </configure>
+
+
<!-- forms -->
<browser:page
for="kss.demo.interfaces.ISimpleContent"
@@ -40,5 +52,19 @@
permission="zope.View"
/>
+
+ <!-- Form submit, with multiple properties -->
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_form_submit_multiprop.pt"
+ name="kss_form_submit_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_form_submit_multiprop.kss"
+ name="kss_form_submit_multiprop.kss"
+ />
+
</configure>
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt Sun Jan 6 17:20:45 2008
@@ -159,7 +159,7 @@
</div>
<a class="button click cursorPointer" id="fullform-named">Click me !</a>
<h3>
- <code>xxx-kssSubmitForm: 'field2'</code> with complex field names, named form, given as string
+ <code>xxx-kssSubmitForm: 'full2'</code> with complex field names, named form, given as string
</h3>
<div class="help">
Click the button.
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.kss (from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.kss)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.kss (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.kss Sun Jan 6 17:20:45 2008
@@ -1,81 +1,23 @@
-#text:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#text-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(text-by-name);
-}
-
-#text-by-kssname:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(kssAttr(key1, true));
-}
-#textarea:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#textarea-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar("textarea-by-name");
-}
-
-#radio1:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#radio2:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#radio-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(radio-by-name);
-}
-#fullform-current:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: currentForm();
+/* log reset: we use kssSelector and not the straight way...
+ * since we test the multiprops now.. */
+/* XXX no idea how to wait for the log being cleared,
+ * so I rather just insert a text now */
+#log-reset a:click {
+ evt-click-preventdefault: true;
+ action-client: replaceInnerHTML;
+ replaceInnerHTML-kssSelector: htmlid(target);
+ replaceInnerHTML-html: 'Target';
}
+ /*clearChildNodes-kssSelector: #logger;>*/
+
+
#fullform-named:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: form(full2);
+ action-server: submitFullFormIntoRequest form(full2);
}
-#fullform-namedbystring:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: 'full2';
+#fullform-current:click {
+ action-server: submitFullFormIntoRequest currentForm();
}
-#single-select:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(single-select);
-}
-
-#multiple-select:click {
- action-server: submitMultiSelect;
- submitMultiSelect-items: currentFormVar(multiple-select);
-}
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.pt (from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/forms.pt (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.pt Sun Jan 6 17:20:45 2008
@@ -1,4 +1,4 @@
-<html tal:define="viewname string:forms">
+<html tal:define="viewname string:kss_form_submit_multiprop">
<head>
@@ -13,161 +13,32 @@
<h2>Forms</h2>
<p>We test the parameter functions related to forms : those functions
extract values from fields to use them in the kinetic stylesheet.</p>
- <p>The inner HTML of the <code>div</code> below will be replaced with the
- value of the form element.</p>
- <div id="target">Target</div>
- <form name="main">
- <h3>
- <code>currentFormVar()</code> with text field.
- </h3>
- <div class="help">
- Click the text field.
- </div>
- <fieldset>
- <input class="click cursorPointer"
- id="text"
- type="text" name="text" value="text" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="text-by-name">Click me !</a>
- <input type="text" name="text-by-name" value="text-by-name" />
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar(kssAttr('name'))</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div class="kssattr-key1-text-by-kssname">
- <a class="button click cursorPointer " id="text-by-kssname">Click me !</a>
- <input type="text" name="text-by-kssname" value="text-by-kssname" />
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar()</code> with textarea field.
- </h3>
- <div class="help">
- Click the textarea field.
- </div>
- <fieldset>
- <textarea class="click cursorPointer"
- id="textarea"
- name="textarea">textarea</textarea>
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with textarea field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="textarea-by-name">Click me !</a>
- <textarea name="textarea-by-name">textarea-by-name</textarea>
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar()</code> with radio field.
- </h3>
- <div class="help">
- Click one of the radio buttons.
- </div>
- <fieldset>radio-1
- <input class="click cursorPointer"
- id="radio1"
- type="radio" name="radio" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- id="radio2"
- type="radio" name="radio" value="radio-2" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with radio field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="radio-by-name">Click me !</a>
- radio-1
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-2"
- checked="checked" />
- </fieldset>
+ <p>We use multiple properties, which means that instead the kssSubmitForm line, the
+ form data provider is in the same line as the action-server. (See kss file.)
+ </p>
- <h3>
- <code>currentFormVar(name)</code> with select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="single-select">Click me !</a>
- <select name="single-select">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
+ <p>The inner HTML of the <code>div</code> below will be replaced with the
+ value of the form element.</p>
- <h3>
- <code>currentFormVar(name)</code> with multiple select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="multiple-select">Click me !</a>
- <select name="multiple-select" multiple="multiple">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
+ <!--p metal:use-macro="context/@@body_macros/logger">logger</p-->
+ <h3>Log</h3>
+ <p id="log-reset"><a>Reset log</a></p>
+ <div id="target">Target</div>
+ <hr/>
- </form>
- <h3>
- <code>form(full1)</code> with simple field names, named form
- </h3>
- <div class="help">
- Removed after deprecation.
- </div>
- <h3>
- <code>currentForm()</code> with simple field names
- </h3>
- <div class="help">
- Removed after deprecation.
- </div>
<h3>
- <code>xxx-kssSubmitForm: form(full2)</code> with complex field names, named form
+ <code>action-server: submitFullFormIntoRequest form(full2);</code>
+ with complex field names, named form
</h3>
<div class="help">
Click the button.
</div>
<a class="button click cursorPointer" id="fullform-named">Click me !</a>
- <h3>
- <code>xxx-kssSubmitForm: 'field2'</code> with complex field names, named form, given as string
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-namedbystring">Click me !</a>
<form name="full2">
<h3>
- <code>xxx-kssSubmitForm: currentForm()</code> with complex field names
+ <code>action-server: submitFullFormIntoRequest currentForm();</code>
+ with complex field names
</h3>
<div class="help">
Click the button.
Deleted: /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.kss
==============================================================================
--- /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.kss Sun Jan 6 17:20:45 2008
+++ (empty file)
@@ -1,91 +0,0 @@
-#text:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#text-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(text-by-name);
-}
-
-#text-by-kssname:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(kssAttr(key1, true));
-}
-#textarea:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#textarea-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar("textarea-by-name");
-}
-
-#radio1:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#radio2:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar();
-}
-
-#radio-by-name:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(radio-by-name);
-}
-
-#fullform-simple:click {
- action-server: submitFullForm;
- submitFullForm-form: currentForm();
-}
-
-#fullform-simplenamed:click {
- action-server: submitFullForm;
- submitFullForm-form: form(full1);
-}
-
-#fullform-current:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: currentForm();
-}
-
-#fullform-named:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: form(full2);
-}
-
-#fullform-namedbystring:click {
- action-server: submitFullFormIntoRequest;
- submitFullFormIntoRequest-kssSubmitForm: 'full2';
-}
-
-#single-select:click {
- action-client: executeCommand;
- executeCommand-name: replaceInnerHTML;
- executeCommand-selector: "#target";
- executeCommand-html: currentFormVar(single-select);
-}
-
-#multiple-select:click {
- action-server: submitMultiSelect;
- submitMultiSelect-items: currentFormVar(multiple-select);
-}
Deleted: /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.pt
==============================================================================
--- /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid.pt Sun Jan 6 17:20:45 2008
+++ (empty file)
@@ -1,224 +0,0 @@
-<html>
- <head>
- <link rel="kinetic-stylesheet" type="text/css"
- tal:attributes="href
- string:${context/@@absolute_url}/++resource++forms.kss"/>
- <metal:header use-macro="context/@@header_macros/header_resources" />
- </head>
- <body>
- <div id="global-links">
- <ul>
- <li><a href=".">All demos</a></li>
- <li><a href="javascript:void(createLoggingPane(true))">Show logging
- pane</a></li>
- <li><a href="./++resource++forms.kss">View KSS resource</a></li>
- </ul>
- </div>
- <h2>Forms</h2>
- <p>We test the parameter functions related to forms : those functions
- extract values from fields to use them in the kinetic stylesheet.</p>
- <p>The inner HTML of the <code>div</code> below will be replaced with the
- value of the form element.</p>
- <div id="target">Target</div>
- <form name="main">
- <h3>
- <code>currentFormVar()</code> with text field.
- </h3>
- <div class="help">
- Click the text field.
- </div>
- <fieldset>
- <input class="click cursorPointer"
- id="text"
- type="text" name="text" value="text" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="text-by-name">Click me !</a>
- <input type="text" name="text-by-name" value="text-by-name" />
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar(kssAttr('name'))</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div class="kssattr-key1-text-by-kssname">
- <a class="button click cursorPointer " id="text-by-kssname">Click me !</a>
- <input type="text" name="text-by-kssname" value="text-by-kssname" />
- </div>
- </fieldset>
-
- <h3>
- <code>currentFormVar()</code> with textarea field.
- </h3>
- <div class="help">
- Click the textarea field.
- </div>
- <fieldset>
- <textarea class="click cursorPointer"
- id="textarea"
- name="textarea">textarea</textarea>
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with textarea field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="textarea-by-name">Click me !</a>
- <textarea name="textarea-by-name">textarea-by-name</textarea>
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar()</code> with radio field.
- </h3>
- <div class="help">
- Click one of the radio buttons.
- </div>
- <fieldset>radio-1
- <input class="click cursorPointer"
- id="radio1"
- type="radio" name="radio" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- id="radio2"
- type="radio" name="radio" value="radio-2" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with radio field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="radio-by-name">Click me !</a>
- radio-1
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-2"
- checked="checked" />
- </fieldset>
-
- <h3>
- <code>currentFormVar(name)</code> with select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="single-select">Click me !</a>
- <select name="single-select">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
-
- <h3>
- <code>currentFormVar(name)</code> with multiple select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="multiple-select">Click me !</a>
- <select name="multiple-select" multiple="multiple">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
-
- </form>
- <h3>
- <code>form(full1)</code> with simple field names, named form
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-simplenamed">Click me !</a>
- <form name="full1">
- <fieldset>
- <h3>
- <code>currentForm()</code> with simple field names
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-simple">Click me !</a>
- <input class="click cursorPointer"
- type="text" name="value1" value="first value" />
- <input class="click cursorPointer"
- type="text" name="value2" value="second value"/>
- </fieldset>
- </form>
- <h3>
- <code>xxx-kssSubmitForm: form(full2)</code> with complex field names, named form
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-named">Click me !</a>
- <h3>
- <code>xxx-kssSubmitForm: 'field2'</code> with complex field names, named form, given as string
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-namedbystring">Click me !</a>
- <form name="full2">
- <h3>
- <code>xxx-kssSubmitForm: currentForm()</code> with complex field names
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-current">Click me !</a>
- <fieldset>
- value1:
- <input class="click cursorPointer"
- type="text" name="value1" value="value1" />
- value2:
- <input class="click cursorPointer"
- type="text" name="value2" value="value2"/>
- <br>
- listval:
- <input class="click cursorPointer"
- type="text" name="listval:list" value="listval1"/>
- <input class="click cursorPointer"
- type="text" name="listval:list" value="listval2"/>
- <br>
- recordval:
- <input class="click cursorPointer"
- type="text" name="recordval.a:record" value="recordval_a"/>
- <input class="click cursorPointer"
- type="text" name="recordval.b:record" value="recordval_b"/>
- <br>
- recordsval:
- <input class="click cursorPointer"
- type="text" name="recordsval.a:records" value="recordval_a_1"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.b:records" value="recordval_b_1"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.a:records" value="recordval_a_2"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.b:records" value="recordval_b_2"/>
- </fieldset>
- </form>
-
-
- </body>
-</html>
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/kss_form_submit_multiprop.html (from r50326, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/kss_form_submit_multiprop.html Sun Jan 6 17:20:45 2008
@@ -1,130 +1,45 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>pf_forms</title>
+<title>kss_form_submit_multiprop</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">pf_forms</td></tr>
+<tr><td rowspan="1" colspan="3">kss_form_submit_multiprop</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/demo/pf_forms.html</td>
+ <td>/demo/kss_form_submit_multiprop.html</td>
<td></td>
</tr>
<tr>
- <td>assertElementPresent</td>
- <td>target</td>
- <td></td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>Target</td>
-</tr>
-<tr>
<td>click</td>
- <td>text</td>
+ <td>fullform-named</td>
<td></td>
</tr>
<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>click</td>
- <td>text-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea-by-name</td>
+ <td>waitForTextPresent</td>
+ <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value 1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'}, {'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a': 'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2', 'value2')]</td>
<td></td>
</tr>
<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
<td>click</td>
- <td>radio1</td>
+ <td>link=Reset log</td>
<td></td>
</tr>
<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>click</td>
- <td>radio-by-name</td>
+ <td>waitForTextPresent</td>
+ <td>Target</td>
<td></td>
</tr>
<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
<td>click</td>
<td>fullform-current</td>
<td></td>
</tr>
<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value 1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'}, {'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a': 'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2', 'value2')]</td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
+ <td>waitForTextPresent</td>
<td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value 1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'}, {'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a': 'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2', 'value2')]</td>
<td></td>
</tr>
Copied: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/zopeconfig.py (from r50327, kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py)
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/zopeconfig.py Sun Jan 6 17:20:45 2008
@@ -14,33 +14,12 @@
class IResource(IKSSDemoResource, IKSSSeleniumTestResource):
pass
-class KSSCoreDemos(object):
+class ValueProviderDemos(object):
implements(IResource)
demos = (
- KSSDemo('', '', "basic_commands.html", "Change tag content"),
- KSSDemo('', '', "two_selects.html", "Two selects"),
- KSSDemo('', '', "autoupdate.html", "Auto update"),
- KSSDemo('', '', "inline_edit.html", "Inline edit"),
- KSSDemo('', '', "cancel_submit.html", "Cancel Submit Click"),
- KSSDemo('', '', "tree.html", "Tree"),
- KSSDemo('', '', "more_selectors.html", "More complex selectors"),
- KSSDemo('', '', "two_select_revisited.html", "Master-slave selects revisited"),
- KSSDemo('', '', "form_submit.html", "Form submit"),
- KSSDemo('', '', "effects.html", "Effects"),
- KSSDemo('', '', "error_handling.html", "Error handling"),
- KSSDemo('', '', "preventdefault.html", "Preventdefault (a.k.a. Safari workarounds)"),
- KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag content returns)"),
- KSSDemo('', '', "client-server-protocol", "Client server protocol"),
-## KSSDemo('', '', "draganddrop.html", "Scriptaculous drag and drop"),
KSSDemo('', 'Value providers', 'pf_forms.html', 'Forms'),
- KSSDemo('', 'Selectors', 'selectors.html', 'Parent node selector'),
- KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
- KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
- KSSDemo('', 'Core events', "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"),
- KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
- KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
- KSSDemo('', 'Commands/Actions', "actions.html", "Toggle case action"),
+ KSSDemo('', 'Value providers', 'kss_form_submit_multiprop.html', 'Form submit, with multiproperties'),
)
# directories are relative from the location of this .py file
Deleted: /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
==============================================================================
--- /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html Sun Jan 6 17:20:45 2008
+++ (empty file)
@@ -1,109 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>kss_selector_param</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">kss_selector_param</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/kss_selector_param.html</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_2</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_2</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_2</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_2</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_2</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_3</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_4</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_4</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_4</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_4</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_4</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_5</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_6</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
==============================================================================
--- /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/pf_forms.html Sun Jan 6 17:20:45 2008
+++ (empty file)
@@ -1,134 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>pf_forms</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">pf_forms</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/pf_forms.html</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>target</td>
- <td></td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>Target</td>
-</tr>
-<tr>
- <td>click</td>
- <td>text</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>click</td>
- <td>text-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
- <td>click</td>
- <td>radio1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>click</td>
- <td>radio-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
- <td>click</td>
- <td>fullform-current</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value 1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'}, {'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a': 'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2', 'value2')]</td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value 1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'}, {'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a': 'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2', 'value2')]</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html
==============================================================================
--- /kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/selenium_tests/urlparam.html Sun Jan 6 17:20:45 2008
+++ (empty file)
@@ -1,69 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>urlparam</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">urlparam</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/kss_url_param.html</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>target</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 1 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 1 called</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_2</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 2 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 2 called</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_3</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 3 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 3 called</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Modified: kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py
==============================================================================
--- kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py (original)
+++ kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/zopeconfig.py Sun Jan 6 17:20:45 2008
@@ -33,10 +33,7 @@
KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag content returns)"),
KSSDemo('', '', "client-server-protocol", "Client server protocol"),
## KSSDemo('', '', "draganddrop.html", "Scriptaculous drag and drop"),
- KSSDemo('', 'Value providers', 'pf_forms.html', 'Forms'),
KSSDemo('', 'Selectors', 'selectors.html', 'Parent node selector'),
- KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"),
- KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"),
KSSDemo('', 'Core events', "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"),
KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
More information about the Kukit-checkins
mailing list