Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / file_bug706301.html
blob805449b4aa37c30460c3182716fc7086590ac9a8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="application/javascript">
5 window.addEventListener('message', doContentTest);
7 function doContentTest() {
9 // This has always worked.
10 var nodelist1 = document.getElementsByTagName('details');
11 Object.getOwnPropertyDescriptor(nodelist1, 'length');
12 ok(nodelist1['length'] == 0, "Content should be able to get the length of " +
13 "its own nodelist after calling getOwnPropertyDescriptor.");
15 // This is bug 706301.
16 var nodelist2 = document.getElementsByTagName('section');
17 ok(getLengthInChrome(nodelist2), "Chrome should be able to get the length of " +
18 "content nodelist after calling getOwnPropertyDescriptor.");
20 // All done.
21 finishTestInChrome();
23 </script>
24 </head>
25 <body>
26 </body>
27 </html>