~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/embedding/qa/jstests/accessibility/xul/xulbox.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- Descrpt: Test nsIAccessible Interface attributes and methods
 
3
     for XUL BOX Node
 
4
     Author: dsirnapalli@netscape.com
 
5
     Created: 05.28.02 - Created
 
6
     Last Updated:06.12.02.
 
7
 
 
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/
 
12
   -
 
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.
 
17
   -
 
18
   - The Original Code is Mozilla Communicator Test Cases.
 
19
   -
 
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
 
23
   - Rights Reserved.
 
24
   -
 
25
   - Contributor(s):
 
26
  -->
 
27
 
 
28
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
29
<window
 
30
  id="box-window"
 
31
  title="XUL Box"
 
32
  xmlns:html="http://www.w3.org/1999/xhtml"
 
33
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
34
 
 
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>
 
37
 
 
38
  <html:script>
 
39
  <![CDATA[
 
40
 
 
41
  function getDomNodeBox()
 
42
  {
 
43
    try{
 
44
      netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
 
45
      netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
46
  
 
47
      var node = document.getElementsByTagName("box").item(0);
 
48
      return node;
 
49
    }
 
50
    catch(e){
 
51
      alert("Exception: " + e);
 
52
    }
 
53
  }  
 
54
 
 
55
  function executeTestCase()
 
56
  {
 
57
    var domNode = getDomNodeBox();
 
58
    accNode = getAccessibleNode(domNode);
 
59
    if(accNode == "Exception")
 
60
    {            
 
61
      temp = "<table border cols=2 width='70%'>";
 
62
      temp += "<tr>";
 
63
      temp += "<td> The Node you selected is not an Accessible Node </td>";
 
64
      temp += "<td> PASS </td>";
 
65
      temp += "</tr>";
 
66
      temp += "</table>";
 
67
      res = res + temp;
 
68
    }    
 
69
    WriteResults(res);    
 
70
  }
 
71
  
 
72
  ]]>
 
73
  </html:script>
 
74
    
 
75
  <description>
 
76
    <html:b> Testing XUL Box for Accessibility.. </html:b>
 
77
  </description>
 
78
  <box orient="horizontal" flex="1"/>
 
79
  <html:script>
 
80
  <![CDATA[
 
81
    res = "<b><u> Results for XUL Box Node:</u></b><br><br>";
 
82
 
 
83
    setTimeout("executeTestCase();", 2000);
 
84
  ]]>
 
85
  </html:script> 
 
86
</window>    
 
 
b'\\ No newline at end of file'