Author: jmorliaguet
Date: Sat Feb 11 21:49:17 2006
New Revision: 2362

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

- found another edge case



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 21:49:17 2006
@@ -284,8 +284,14 @@
 
 <!-- edge cases -->
 
+<!-- item/id should never be accessed -->
 <div id="e32"><p ctal:repeat="item javascript:[]"><span
-                 tal:content="item/id">...</span></div>
+                 ctal:content="item/id">...</span></div>
+
+<!-- the repeat loop 'a' variable should not override the global variable
+     'a' in the data structure -->
+<div id="e33"><p ctal:repeat="a javascript:[1, 2]"><span
+                 ctal:content="a">...</span></div>
 
 <!-- Tests follow -->
 <script type="text/javascript">
@@ -492,6 +498,7 @@
 
     testEdgeCases: function() { with(this) {
       assertEqual('', htmlOf("e32"));
+      assertEqual('<p><span>1</span></p><p><span>2</span></p>', htmlOf("e33"));
     }}
 
   });
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to