[Zope-CVS] CVS: Products/Zelenium/www - resultsView.zpt:1.2

Tres Seaver tseaver at palladion.com
Fri May 6 16:00:39 EDT 2005


Update of /cvs-repository/Products/Zelenium/www
In directory cvs.zope.org:/tmp/cvs-serv1080/www

Modified Files:
	resultsView.zpt 
Log Message:


   - Make passing / failing test cases in results view more obvious in
     printed representation by adding icons.  N.B.: at the moment, we do
     this by sniffing the HTML of the test case for the "pink" backgrounds.


=== Products/Zelenium/www/resultsView.zpt 1.1 => 1.2 ===
--- Products/Zelenium/www/resultsView.zpt:1.1	Wed May  4 12:03:26 2005
+++ Products/Zelenium/www/resultsView.zpt	Fri May  6 16:00:38 2005
@@ -74,9 +74,17 @@
  <div style="padding-top: 10px;"
       tal:repeat="test_case test_cases">
 
-  <p><a href="#"
+  <p>
+     <img src="check.gif" height="32" width="32"
+          tal:condition="test_case/passed"
+          tal:attributes="src string:${context/absolute_url}/check.gif;"/>
+     <img src="error.gif" height="32" width="32"
+          tal:condition="not: test_case/passed"
+          tal:attributes="src string:${context/absolute_url}/error.gif;"/>
+     <a href="#"
         tal:attributes="href test_case/absolute_url"
-        tal:content="test_case/getId">TEST_CASE</a></p>
+        tal:content="test_case/getId">TEST_CASE</a>
+  </p>
 
   <div tal:replace="structure python: test_case" />
  </div>



More information about the Zope-CVS mailing list