2
<!-- Descrpt: Test nsIAccessible Interface attributes and methods
4
Author: dsirnapalli@netscape.com
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"?>
33
xmlns:html="http://www.w3.org/1999/xhtml"
34
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
36
<html:script src="http://www.mozilla.org/quality/embed/jstests/accessibility/jslib/accesslib.js"> </html:script>
37
<html:script src="http://www.mozilla.org/quality/embed/jstests/accessibility/jslib/bridge.js"> </html:script>
42
function getDomNodeImage()
45
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
46
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
48
var node = document.getElementsByTagName("image").item(0);
52
alert("Exception: " + e);
56
function executeTestCase()
58
var domNode = getDomNodeImage();
59
accNode = getAccessibleNode(domNode);
60
if(accNode == "Exception")
62
temp = "<table border cols=2 width='70%'>";
64
temp += "<td> The Node you selected is not an Accessible Node </td>";
65
temp += "<td> PASS </td>";
76
<box orient="vertical" flex="1">
78
<html:b> Testing XUL Image for Accessibility.. </html:b>
80
<box oreint="horizontal">
81
<!-- image element is used to display images within a window -->
82
<image src="mozilla-banner.gif"/>
89
res = "<b><u> Results for XUL Image Node:</u></b><br><br>";
91
setTimeout("executeTestCase();", 2000);
b'\\ No newline at end of file'