Author: gotcha
Date: Mon Mar 12 14:33:00 2007
New Revision: 40339
Modified:
kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.kss
kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.pt
kukit/kss.demo/trunk/kss/demo/browser/demo.css
kukit/kss.demo/trunk/kss/demo/tests/selenium_tests/urlparam.html
Log:
fix and beautify kssUrl test
Modified: kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.kss
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.kss
(original)
+++ kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.kss Mon Mar
12 14:33:00 2007
@@ -1,6 +1,6 @@
-.clickable:click {
+.click:click {
evt-click-preventdefault: true;
}
Modified: kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.pt
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.pt
(original)
+++ kukit/kss.demo/trunk/kss/demo/browser/coresyntax/kss_url_param.pt Mon Mar
12 14:33:00 2007
@@ -15,60 +15,46 @@
</ul>
</div>
- <h2>Kss url parameter demo</h2>
+ <h2>Kss url parameter</h2>
<form name="edit">
- <p>All buttons should display a corresponding text.
- </p>
+ <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">
- </div>
+ <div id="target">Target</div>
- <h3>
- <pre><code>
-#button_1:click {
- action-server: urlMethod1;
-}</code></pre>
- </h3>
- <div class="help">
- Click the button here.
- </div>
-
- <div>
- <input type="submit" id="button_1" class="clickable"
- value="Click me" />
- </div>
-
- <h3>
- <pre><code>
-#button_2:click {
+ <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;
urlMethodAlias-kssUrl: "urlMethod2";
-}</code></pre>
- </h3>
- <div class="help">
- Click the button here.
- </div>
-
- <div>
- <input type="submit" id="button_2" class="clickable"
- value="Click me" />
- </div>
-
- <h3>
- <pre><code>
-#button_3:click {
+}</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;
urlMethodAnotherAlias-kssUrl: "@@urlMethod3/urlMethod3";
-}</code></pre>
- </h3>
- <div class="help">
- Click the button here.
- </div>
-
- <div>
- <input type="submit" id="button_3" class="clickable"
- value="Click me" />
- </div>
+}</code></pre></div>
+
+ <div class="container">
+ <a class="button click cursorPointer" id="button_3">Click me !</a>
+ </div>
</form>
Modified: kukit/kss.demo/trunk/kss/demo/browser/demo.css
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/browser/demo.css (original)
+++ kukit/kss.demo/trunk/kss/demo/browser/demo.css Mon Mar 12 14:33:00 2007
@@ -77,6 +77,14 @@
color: #AAAAAA;
}
+.help pre {
+ color: black;
+ border: 1px solid #CCCCCC;
+ background-color: #EEEEEE;
+ padding: 0.5em;
+ margin: 0.25em;
+}
+
.container {
padding : 1em;
}
Modified: kukit/kss.demo/trunk/kss/demo/tests/selenium_tests/urlparam.html
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/tests/selenium_tests/urlparam.html
(original)
+++ kukit/kss.demo/trunk/kss/demo/tests/selenium_tests/urlparam.html Mon Mar
12 14:33:00 2007
@@ -14,6 +14,11 @@
<td></td>
</tr>
<tr>
+ <td>assertElementPresent</td>
+ <td>target</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>button_1</td>
<td></td>
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins