Author: jmorliaguet
Date: Fri Jan  6 14:22:41 2006
New Revision: 2155

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

- updated tests for the '../123' type of perspective navigation



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    Fri Jan  6 14:22:41 2006
@@ -278,12 +278,22 @@
       CPSSkins.switchPerspective("./4/5");
       assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/5");
 
+      // Moving up then down
+      CPSSkins.switchPerspective("../6");
+      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/6");
+
+      CPSSkins.switchPerspective("../7/8");
+      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/7/8");
+
+      CPSSkins.switchPerspective("../../9");
+      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/7/9");
+
       // Going back the previous perspective in history
       CPSSkins.switchPerspective("-");
-      assertEqual(CPSSkins.CurrentPerspective, "2/1/3");
+      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/7/8");
 
       CPSSkins.switchPerspective("-");
-      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/5");
+      assertEqual(CPSSkins.CurrentPerspective, "2/1/3/4/7/9");
 
     }}
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to