~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to lib/jsunit-2.2/tests/jsUnitOnLoadTests.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
 
 
5
<head>
 
6
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
7
    <title>JsUnit OnLoad Tests</title>
 
8
    <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
 
9
    <script language="JavaScript" type="text/javascript" src="../app/jsUnitCore.js"></script>
 
10
    <script language="JavaScript" type="text/javascript">
 
11
 
 
12
        var aVar = null;
 
13
 
 
14
        function testOnLoadFired() {
 
15
            assertEquals("foo", aVar);
 
16
        }
 
17
        function myOnLoadEvent() {
 
18
            aVar = "foo";
 
19
        }
 
20
    </script>
 
21
</head>
 
22
 
 
23
<body onload="myOnLoadEvent()">
 
24
<h1>JsUnit OnLoad Tests</h1>
 
25
 
 
26
<p>This page contains tests for the JsUnit Framework. To see them, take a look at the source.</p>
 
27
</body>
 
28
</html>