File/extensions/webunit_reporter.php

Description

base include file for SimpleTest PUnit reporter

Classes
Class Description
 class WebUnitReporter Sample minimal test displayer. Generates only failure messages and a pass count.
Includes
 require_once (SIMPLE_TEST.'reporter.php') (line 16)
 require_once (SIMPLE_TEST.'runner.php') (line 15)
Constants
SIMPLETEST_WEBUNIT_CSS = '/* this space reseved for future use */' (line 70)

Not used yet.

May be needed for localized styles we need at runtime, not in the stylesheet.

SIMPLETEST_WEBUNIT_HEAD = <<<EOS
<html>
<head>
<title>%s</title>
<script type="text/javascript" src="%sx.js"></script>
<script type="text/javascript" src="%swebunit.js"></script>
<link rel="stylesheet" type="text/css" href="%swebunit.css" title="Default"></link>
<style type="text/css">
%s
</style>
</head>
<body>
<div id="wait">
<h1>&nbsp;Running %s&nbsp;</h1>
Please wait...<br />
<img src="%swait.gif" border="0"><br />&nbsp;
</div>
<script type="text/javascript">
wait_start();
</script>
<div id="webunit">
<div id="run"></div><br />
<div id="tabs">
<div id="visible_tab">visible tab content</div>
&nbsp;&nbsp;<span id="failtab" class="activetab">&nbsp;&nbsp;<a href="javascript:activate_tab('fail');">Fail</a>&nbsp;&nbsp;</span>
<span id="treetab" class="inactivetab">&nbsp;&nbsp;<a href="javascript:activate_tab('tree');">Tree</a>&nbsp;&nbsp;</span>
</div>
<div id="msg">Click on a failed test case method in the tree tab to view output here.</div>
</div>
<div id="fail"></div>
<div id="tree"></div>
<!-- open a new script to capture js vars as the tests run -->
<script type="text/javascript">
layout();

<html>
<head>
<title>%s</title>
<script type="text/javascript" src="%sx.js"></script>
<script type="text/javascript" src="%swebunit.js"></script>
<link rel="stylesheet" type="text/css" href="%swebunit.css" title="Default"></link>
<style type="text/css">
%s
</style>
</head>
<body>
<div id="wait">
<h1>&nbsp;Running %s&nbsp;</h1>
Please wait...<br />
<img src="%swait.gif" border="0"><br />&nbsp;
</div>
<script type="text/javascript">
wait_start();
</script>
<div id="webunit">
<div id="run"></div><br />
<div id="tabs">
<div id="visible_tab">visible tab content</div>
&nbsp;&nbsp;<span id="failtab" class="activetab">&nbsp;&nbsp;<a href="javascript:activate_tab('fail');">Fail</a>&nbsp;&nbsp;</span>
<span id="treetab" class="inactivetab">&nbsp;&nbsp;<a href="javascript:activate_tab('tree');">Tree</a>&nbsp;&nbsp;</span>
</div>
<div id="msg">Click on a failed test case method in the tree tab to view output here.</div>
</div>
<div id="fail"></div>
<div id="tree"></div>
<!-- open a new script to capture js vars as the tests run -->
<script type="text/javascript">
layout();

EOS (line 28)

Main sprintf template for the start of the page.

Sequence of parameters is:

  • title - string
  • script path - string
  • script path - string
  • css path - string
  • additional css - string
  • title - string
  • image path - string

Documentation generated on Sun, 31 Oct 2010 16:32:57 -0500 by phpDocumentor 1.4.3