~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to lib/jsunit-2.2/tests/jsUnitSetUpTearDownTests.html

  • Committer: V. Keith Hughitt
  • Date: 2009-04-01 21:08:05 UTC
  • Revision ID: hughitt1@kore-20090401210805-372f7dgih07vxk42
nightly build 04-01-2009

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
 
 
3
<html>
 
4
<head>
 
5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
6
    <title>JsUnit Framework tests</title>
 
7
    <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
 
8
    <script language="JavaScript" type="text/javascript" src="../app/jsUnitCore.js"></script>
 
9
    <script language="JavaScript" type="text/javascript">
 
10
 
 
11
        var atLeastOneTestHasRun = false;
 
12
        var aVariable = null;
 
13
 
 
14
        function setUp() {
 
15
            aVariable = "foo";
 
16
        }
 
17
 
 
18
        function tearDown() {
 
19
            atLeastOneTestHasRun = true;
 
20
            aVariable = null;
 
21
        }
 
22
 
 
23
        function testEmpty1() {
 
24
        }
 
25
 
 
26
        function testSetUp() {
 
27
            assertEquals("foo", aVariable);
 
28
        }
 
29
 
 
30
        function testEmpty2() {
 
31
        }
 
32
 
 
33
        function testTearDown() {
 
34
            assertTrue(atLeastOneTestHasRun);
 
35
        }
 
36
 
 
37
        function testEmpty3() {
 
38
        }
 
39
 
 
40
    </script>
 
41
</head>
 
42
 
 
43
<body>
 
44
<h1>JsUnit Framework tests</h1>
 
45
 
 
46
<p>This page contains tests for the JsUnit setUp and tearDown framework. To see them, take a look at the source.</p>
 
47
</body>
 
48
</html>