CVS: Products/Zelenium/www - resultsView.zpt:1.2

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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>

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.