2
<!-- Descrpt: Test nsIAccessible Interface attributes and methods
4
Author: dsirnapalli@netscape.com
5
Created: 05.28.02 - Created
8
- The contents of this file are subject to the Mozilla Public
9
- License Version 1.1 (the "License"); you may not use this file
10
- except in compliance with the License. You may obtain a copy of
11
- the License at http://www.mozilla.org/MPL/
13
- Software distributed under the License is distributed on an "AS
14
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
15
- implied. See the License for the specific language governing
16
- rights and limitations under the License.
18
- The Original Code is Mozilla Communicator Test Cases.
20
- The Initial Developer of the Original Code is Netscape Communications
21
- Corp. Portions created by Netscape Communications Corp. are
22
- Copyright (C) 1999 Netscape Communications Corp. All
28
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
32
xmlns:html="http://www.w3.org/1999/xhtml"
33
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
35
<html:script src="http://www.mozilla.org/quality/embed/jstests/accessibility/jslib/accesslib.js"> </html:script>
36
<html:script src="http://www.mozilla.org/quality/embed/jstests/accessibility/jslib/bridge.js"> </html:script>
41
function getDomNodeBox()
44
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
45
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
47
var node = document.getElementsByTagName("box").item(0);
51
alert("Exception: " + e);
55
function executeTestCase()
57
var domNode = getDomNodeBox();
58
accNode = getAccessibleNode(domNode);
59
if(accNode == "Exception")
61
temp = "<table border cols=2 width='70%'>";
63
temp += "<td> The Node you selected is not an Accessible Node </td>";
64
temp += "<td> PASS </td>";
76
<html:b> Testing XUL Box for Accessibility.. </html:b>
78
<box orient="horizontal" flex="1"/>
81
res = "<b><u> Results for XUL Box Node:</u></b><br><br>";
83
setTimeout("executeTestCase();", 2000);
b'\\ No newline at end of file'