Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / bindings / test / test_domProxyArrayLengthGetter.html
blobe2ce1fb870b90b41e67dbcd2cd327edd1fe78cb0
1 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1221421
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1221421</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="text/javascript">
13 var x = document.documentElement.style;
14 x.__proto__ = [1, 2, 3];
16 var res = 0;
17 for (var h = 0; h < 5000; ++h) {
18 res += x.length;
20 is(res, 15000, "length getter should return array length");
22 </script>
23 </head>
25 <body>
26 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1221421">Mozilla Bug 1221421</a>
27 </body>
28 </html>