summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/mochitest/file_bug706301.html
blob: 805449b4aa37c30460c3182716fc7086590ac9a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
  <head>
    <script type="application/javascript">
      window.addEventListener('message', doContentTest);

      function doContentTest() {

        // This has always worked.
        var nodelist1 = document.getElementsByTagName('details');
        Object.getOwnPropertyDescriptor(nodelist1, 'length');
        ok(nodelist1['length'] == 0, "Content should be able to get the length of " +
                                     "its own nodelist after calling getOwnPropertyDescriptor.");

        // This is bug 706301.
        var nodelist2 = document.getElementsByTagName('section');
        ok(getLengthInChrome(nodelist2), "Chrome should be able to get the length of " +
                                         "content nodelist after calling getOwnPropertyDescriptor.");

        // All done.
        finishTestInChrome();
      }
    </script>
  </head>
  <body>
  </body>
</html>