testappproj/templates/run.html
author amit@thunder
Mon, 12 Jul 2010 15:16:52 +0530
changeset 6 d0f107095b1a
parent 0 0b061d58aea3
permissions -rw-r--r--
changes to image comparison methods

{%extends "base.html"%}
{%block body%}
  {{ results }}
  
{%endblock%}

{% block scripts %}
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.1");
google.setOnLoadCallback(function() {
  $('table.run_result tbody tr td:last-child').each( function(){
      if  ($(this).text() == 'fail'){
          $(this).parent().addClass('failure')
      }
      else if  ($(this).text() == 'pass'){
          $(this).parent().addClass('success')
      }
  });
});
</script>
{% endblock %}