mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
30 lines
985 B
HTML
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>
|