Author: jmorliaguet
Date: Sat Feb 11 15:47:55 2006
New Revision: 2353

Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_ctal_test.html
Log:

- added javascript:... tests



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_ctal_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_ctal_test.html
  (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_ctal_test.html
  Sat Feb 11 15:47:55 2006
@@ -274,6 +274,15 @@
 <div id="e30g"><span
      ctal:attributes="color string: red; class string: large; 
">...</span></div>
 
+<!-- javascript: -->
+<div id="e31"><span ctal:content="javascript:1">...</span></div>
+
+<div id="e31b"><span ctal:content="javascript:1+1">...</span></div>
+
+<div id="e31c"><span
+                ctal:content="javascript:data['k']['l']['m']">...</span></div>
+
+<!-- ctal:attributes -->
 
 <!-- Tests follow -->
 <script type="text/javascript">
@@ -465,6 +474,12 @@
                   $("e30f").innerHTML);
       assertEqual('<span class="large" color=" red">...</span>',
                   $("e30g").innerHTML);
+    }},
+
+    testJavascript: function() { with(this) {
+      assertEqual('<span>1</span>', $("e31").innerHTML);
+      assertEqual('<span>2</span>', $("e31b").innerHTML);
+      assertEqual('<span>10</span>', $("e31c").innerHTML);
     }}
 
   });
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to