Author: jmorliaguet
Date: Mon Feb 13 17:28:16 2006
New Revision: 2378

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_navpanel_test.html
Log:

- updated tests

- the show() method must trigger a view update before displaying the widget.



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Mon Feb 13 
17:28:16 2006
@@ -1112,6 +1112,9 @@
       }
     }
 
+    // get new data
+    this.update();
+
     if (this.effect) {
       this.effect.stop();
     }

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_navpanel_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_navpanel_test.html
        (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_navpanel_test.html
        Mon Feb 13 17:28:16 2006
@@ -43,11 +43,51 @@
   PANEL 1</a>
   </div>
 
+  <ins class="model">
+  {"id": "panel1",
+   "data": {
+     "url": "panel1.html"
+    },
+    "storage": {
+      "type": "ram"
+  }}
+  </ins>
+
+  <ins class="model">
+  {"id": "panel2",
+   "data": {
+     "url": "panel2.html"
+    },
+    "storage": {
+      "type": "ram"
+  }}
+  </ins>
+
+  <ins class="model">
+  {"id": "panel3",
+   "data": {
+     "url": "panel3.html"
+    },
+    "storage": {
+      "type": "ram"
+  }}
+  </ins>
+
+  <ins class="model">
+  {"id": "panel4",
+   "data": {
+     "url": "panel4.html"
+    },
+    "storage": {
+      "type": "ram"
+  }}
+  </ins>
+
   <ins class="view">
   {"widget": {
-     "type": "panel",
-     "url": "panel1.html"
+     "type": "panel"
    },
+   "model": "panel1",
    "perspectives": ["panels/panel1"]
   }
   </ins>
@@ -60,9 +100,9 @@
 
   <ins class="view">
   {"widget": {
-     "type": "panel",
-     "url": "panel2.html"
+     "type": "panel"
    },
+   "model": "panel2",
    "perspectives": ["panels/panel2"]
   }
   </ins>
@@ -75,9 +115,9 @@
 
   <ins class="view">
   {"widget": {
-     "type": "panel",
-     "url": "panel3.html"
+     "type": "panel"
    },
+   "model": "panel3",
    "perspectives": ["panels/panel3"]
   }
   </ins>
@@ -90,9 +130,9 @@
 
   <ins class="view">
   {"widget": {
-     "type": "panel",
-     "url": "panel4.html"
+     "type": "panel"
    },
+   "model": "panel4",
    "perspectives": ["panels/panel4"]
   }
   </ins>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to