~ubuntu-branches/ubuntu/precise/xulrunner-1.9/precise

« back to all changes in this revision

Viewing changes to mozilla/accessible/tests/mochitest/test_nsIAccessNode_utils.html

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-12-16 18:40:18 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20081216184018-j646ukfhzxnjynix
Tags: 1.9.0.5+nobinonly-0ubuntu1
* new security/stability upstream release v1.9.0.5 (FIREFOX_3_0_5_RELEASE)
  - see USN-690-1
* submit patches upstreamed:
  - bzXXX_plugin_for_mimetype_pref.patch => bz449188_att350098_plugin_for_mimetype_pref.patch
  - update debian/patches/series
* adjust XULFastLoad cache in response to interleaving landing of bmo
  #453545 and #462806
  - update debian/patches/bz368428_attachment_308130.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
 
 
3
<head>
 
4
  <title>nsIAccessNode util methods testing</title>
 
5
 
 
6
  <link rel="stylesheet" type="text/css"
 
7
        href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 
8
 
 
9
  <script type="application/javascript"
 
10
          src="chrome://mochikit/content/MochiKit/packed.js"></script>
 
11
  <script type="application/javascript"
 
12
          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
 
13
  <script type="application/javascript"
 
14
          src="chrome://mochikit/content/a11y/accessible/common.js"></script>
 
15
 
 
16
  <script type="application/javascript">
 
17
    function doTest()
 
18
    {
 
19
      var acc = getAccessible("span", [nsIAccessNode]);
 
20
 
 
21
      // html:span element
 
22
      is(acc.getComputedStyleValue("", "color"), "rgb(255, 0, 0)",
 
23
         "Wrong color for element with ID 'span'");
 
24
 
 
25
      // text child of html:span element
 
26
      acc = getAccessible(acc.firstChild, [nsIAccessNode]);
 
27
      is(acc.getComputedStyleValue("", "color"), "rgb(255, 0, 0)",
 
28
         "Wrong color for text child of element with ID 'span'");
 
29
 
 
30
      SimpleTest.finish();
 
31
    }
 
32
 
 
33
    SimpleTest.waitForExplicitFinish();
 
34
    addLoadEvent(doTest);
 
35
  </script>
 
36
</head>
 
37
 
 
38
<body>
 
39
 
 
40
  <a target="_blank"
 
41
     href="https://bugzilla.mozilla.org/show_bug.cgi?id=454211"
 
42
     title="nsIAccessNode util methods testing">
 
43
    Mozilla Bug 454211
 
44
  </a>
 
45
  <p id="display"></p>
 
46
  <div id="content" style="display: none"></div>
 
47
  <pre id="test">
 
48
  </pre>
 
49
 
 
50
  <span role="description" style="color: red" id="span">text</span>
 
51
 
 
52
</body>
 
53
</html>