gecko/browser/fuel/test/test_Application.html
2007-04-23 13:27:46 -07:00

30 lines
985 B
HTML

<html>
<head>
<title>Testing Application.js</title>
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"></link>
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">
test_Application();
function test_Application() {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
ok(Application, "Check global access to Application");
// I'd test these against a specific value, but that is bound to flucuate
ok(Application.id, "Check to see if an ID exists for the Application");
ok(Application.name, "Check to see if a name exists for the Application");
ok(Application.version, "Check to see if a version exists for the Application");
}
</script>
</pre>
</body>
</html>