Author: jmorliaguet
Date: Sat Feb 11 15:38:38 2006
New Revision: 2352

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

- new 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:38:38 2006
@@ -252,6 +252,28 @@
      ctal:repeat="item f"
      ctal:content="item">...</div></div>
 
+<!-- ctal:attributes -->
+<div id="e30"><span
+     ctal:attributes="color string:red">...</span></div>
+
+<div id="e30b"><span
+     ctal:attributes="color string:red;">...</span></div>
+
+<div id="e30c"><span
+     ctal:attributes="color string:red ;">...</span></div>
+
+<div id="e30d"><span
+     ctal:attributes="color string:red; class string: large">...</span></div>
+
+<div id="e30e"><span
+     ctal:attributes="color string:red; class string: large;">...</span></div>
+
+<div id="e30f"><span
+     ctal:attributes=" color string:red; class string: large; 
">...</span></div>
+
+<div id="e30g"><span
+     ctal:attributes="color string: red; class string: large; 
">...</span></div>
+
 
 <!-- Tests follow -->
 <script type="text/javascript">
@@ -304,6 +326,8 @@
                   $A(ctal.get_nameexpr(' style   string:1  ')).inspect());
       assertEqual($A(['style', 'a/b/c']).inspect(),
                   $A(ctal.get_nameexpr(' style a/b/c')).inspect());
+      assertEqual($A(['style', 'a/b/c; color a/b']).inspect(),
+                  $A(ctal.get_nameexpr('style a/b/c; color a/b')).inspect());
     }},
 
     testTALContent: function() { with(this) {
@@ -427,6 +451,20 @@
       assertEqual('<div>4</div><div>5</div><div>6</div>', $("e28").innerHTML);
 
       assertEqual('', $("e29").innerHTML);
+    }},
+
+    testTALAttributes: function() { with(this) {
+      assertEqual('<span color="red">...</span>', $("e30").innerHTML);
+      assertEqual('<span color="red">...</span>', $("e30b").innerHTML);
+      assertEqual('<span color="red">...</span>', $("e30c").innerHTML);
+      assertEqual('<span class="large" color="red">...</span>',
+                  $("e30d").innerHTML);
+      assertEqual('<span class="large" color="red">...</span>',
+                  $("e30e").innerHTML);
+      assertEqual('<span class="large" color="red">...</span>',
+                  $("e30f").innerHTML);
+      assertEqual('<span class="large" color=" red">...</span>',
+                  $("e30g").innerHTML);
     }}
 
   });
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to