Author: jmorliaguet
Date: Sat Jan 28 12:47:14 2006
New Revision: 2228

Added:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_storage_adapters.html
   (contents, props changed)
Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
Log:

- added initial test for storage adapters



Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_storage_adapters.html
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_storage_adapters.html
     Sat Jan 28 12:47:14 2006
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xml:lang="en" lang="en"
+      xmlns="http://www.w3.org/1999/xhtml";>
+<head>
+  <title>CPSSkins Unit test file</title>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+  <script src="../../prototype.js" type="text/javascript"></script>
+  <script src="../../json.js" type="text/javascript"></script>
+  <script src="../../cpsskins.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="../../cpsskins.css" type="text/css" />
+
+  <style type="text/css">
+    pre {
+      padding: 0.5em;
+    }
+    a {
+      border: 1px solid #999;
+      background-color: #efc;
+      padding: 0.5em;
+      text-decoration: none;
+    }
+    #area1 {
+      padding: 1em;
+    }
+  </style>
+
+</head>
+<body>
+
+  <h1>CPSSkins: storage adapters</h1>
+
+  <p>The model definition can specify a storage adapter to get and set the
+     data.
+  </p>
+
+
+  <div id="area1">
+
+    <ins class="model">
+    {"data": {
+      "hint":"Click here to close the document."
+      },
+      "storage": {
+        "type": "canvas"
+       }
+      }
+    }
+    </ins>
+
+    <a href="#">Open</a>
+
+    <ins class="view">
+    {"widget": {
+      "type": "tooltip"
+      }
+    }
+    </ins>
+
+  </div>
+
+  <div id="message"></div>
+
+</body>
+</html>

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   
    Sat Jan 28 12:47:14 2006
@@ -239,20 +239,6 @@
                   $H({"new2":true}).inspect());
     }},
 
-    testUpdateNodeData: function() { with(this) {
-      Canvas.updateNodeData(e1, {"new3":false});
-      assertEqual($H(Canvas.getNodeData(e1)).inspect(),
-                  $H({"new1":true,"new3":false}).inspect());
-
-      Canvas.updateNodeData(e2, {"new2":false});
-      assertEqual($H(Canvas.getNodeData(e2)).inspect(),
-                  $H({"new2":false}).inspect());
-
-      Canvas.updateNodeData(e5, {"new5":false});
-      assertEqual($H(Canvas.getNodeData(e5)).inspect(),
-                  $H({"new5":false}).inspect());
-    }},
-
     testSwitchPerspectives: function() { with(this) {
       var p1 = $("p1").parentNode;
       var p1_2 = $("p1_2").parentNode;
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to