Author: jmorliaguet
Date: Thu Mar  2 15:31:03 2006
New Revision: 2508

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

- test fixes



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   
    Thu Mar  2 15:31:03 2006
@@ -45,7 +45,7 @@
     <div>
 
       <ins class="model">
-      {"id": "m1",
+      {"id": "m_1",
        "data":  {
          "a":"1","b":"2","c":true
       }}
@@ -56,7 +56,7 @@
       <div id="e4">
 
         <ins class="model">
-        {"id": "m2",
+        {"id": "m_2",
          "data": {
            "a":"1"
         }}
@@ -69,7 +69,7 @@
     <div></div>
 
     <ins class="model">
-    {"id": "m3",
+    {"id": "m_3",
      "data": {
       "a":["1","2","3"],
       "b":{"c":1,"d":2},
@@ -242,10 +242,17 @@
 
     /* CPSSkins */
     testGetModelById: function() { with(this) {
-      assertEqual("m1", CPSSkins.getModelById("m1").def.id);
-      assertEqual("m2", CPSSkins.getModelById("m2").def.id);
-      assertEqual("m3", CPSSkins.getModelById("m3").def.id);
-      assertEqual(null, CPSSkins.getModelById("m4"), null);
+      assertEqual("m_1", CPSSkins.getModelById("m_1").def.id);
+      assertEqual("m_2", CPSSkins.getModelById("m_2").def.id);
+      assertEqual("m_3", CPSSkins.getModelById("m_3").def.id);
+      assertEqual(null, CPSSkins.getModelById("m4"));
+    }},
+
+    testGetViewById: function() { with(this) {
+      assertEqual("v1", CPSSkins.getViewById("v1").def.id);
+      assertEqual("v2", CPSSkins.getViewById("v2").def.id);
+      assertEqual("v3", CPSSkins.getViewById("v3").def.id);
+      assertEqual(null, CPSSkins.getViewById("v10"));
     }},
 
     testGetControllerById: function() { with(this) {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to