Author: jmorliaguet
Date: Mon Dec 26 17:07:11 2005
New Revision: 2082

Added:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
   (contents, props changed)
   cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/tooltip.css 
  (contents, props changed)
Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/contextualmenus.css
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
Log:

- new functional test for tooltips 

- renamed cpsskins:contextualmenu as cpsskins:contextmenu



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/contextualmenus.css
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/contextualmenus.css
        (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/contextualmenus.css
        Mon Dec 26 17:07:11 2005
@@ -1,8 +1,9 @@
 
 .pad {
   margin: 1em;
-  padding: 1em;
+  padding: 0.8em;
   border: 1px solid #999;
+  cursor: default;
 }
 
 #testArea1 {
@@ -87,11 +88,6 @@
 }
 
 
-.contextMenu .separator {
-  border-top: 1px solid #ccc;
-  margin: 0.3em 0.8em 0.3em 0.8em;
-}
-
 .large {
   font: 11px Verdana, Arial, Helvetica, sans-serif;
   border-width: 1px 2px 2px 1px;

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
  (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_contextualmenu_test.html
  Mon Dec 26 17:07:11 2005
@@ -1,6 +1,9 @@
+<?xml version="1.0" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
-<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<html xml:lang="en" lang="en"
+      xmlns="http://www.w3.org/1999/xhtml";
+      xmlns:cpsskins=http://namespaces.zope.org/cpsskins";>
 <head>
   <title>CPSSkins Unit test file</title>
   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
@@ -27,7 +30,7 @@
 
 </head>
 
-<body onload="init()">
+<body>
 
   <h1>CPSSkins Contextual menus</h1>
 
@@ -54,7 +57,7 @@
     </div>
   </div>
 
-  <cpsskins:contextualmenu controller="actions" area="testArea1" class="large">
+  <cpsskins:contextmenu controller="actions" area="testArea1" class="large">
     <item action="edit" visible="editable">Edit</item>
     <item action="copy">Copy</item>
     <item action="paste" visible="editable">Paste</item>
@@ -63,7 +66,7 @@
           confirm="Deleting, are you sure?">Delete</item>
   </cpsskins:contextmenu>
 
-  <cpsskins:contextualmenu controller="actions" area="testArea2" class="small">
+  <cpsskins:contextmenu controller="actions" area="testArea2" class="small">
     <item action="edit" visible="editable">Edit</item>
     <item action="copy">Copy</item>
     <item action="paste" visible="editable">Paste</item>

Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/cpsskins_tooltip.html
      Mon Dec 26 17:07:11 2005
@@ -0,0 +1,40 @@
+<?xml version="1.0" ?>
+<!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";
+      xmlns:cpsskins=http://namespaces.zope.org/cpsskins";>
+<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="../../cpsskins.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="../test.css" type="text/css" />
+  <link rel="stylesheet" href="tooltip.css" type="text/css" />
+</head>
+
+<body>
+
+  <h1>CPSSkins Loading</h1>
+
+  <div id="area1">
+    <a href="#" hint="Click here to open.">Open</a>
+    <a href="#" hint="Click here to save.">Save</a>
+    <a href="#" hint="Click here to close.">Close</a>
+  </div>
+
+  <div id="area2">
+    <a href="#" hint="Click here to open.">Open</a>
+    <a href="#" hint="Click here to save.">Save</a>
+    <a href="#" hint="Click here to close.">Close</a>
+  </div>
+
+  <cpsskins:tooltip area="area1" delay="1000" class="tooltip1" label="hint">
+  </cpsskins:tooltip>
+
+  <cpsskins:tooltip area="area2" delay="1000" class="tooltip2" label="hint">
+  </cpsskins:tooltip>
+
+</body>
+
+</html>

Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/tooltip.css
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/functional/tooltip.css    
    Mon Dec 26 17:07:11 2005
@@ -0,0 +1,43 @@
+
+.tooltip1 {
+  padding: 0.5em;
+  background-color: #ffc;
+  border: 1px solid gray;
+  -moz-border-radius: 4px;
+  font: 13px verdana, arial, sans-serif;
+}
+
+.tooltip2 {
+  padding: 0.8em;
+  background-color: #ddf;
+  border: 1px dotted #000;
+  font: italic 13px arial, sans-serif;
+}
+
+#area1 {
+  margin: 1em;
+  float: left;
+}
+
+#area1 a {
+  border: 1px solid #ccc;
+  text-decoration: none;
+  padding: 0.1em 0.9em;
+  margin: 0 0.2em;
+  color: #000;
+  background-color: #efc;
+}
+
+#area2 {
+  margin: 1em;
+  float: left;
+}
+
+#area2 a {
+  border: 1px solid #ccc;
+  text-decoration: none;
+  padding: 0.1em 0.9em;
+  margin: 0 0.2em;
+  color: #000;
+  background-color: #fec;
+}
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to