Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / testing / mochitest / tests / test_bug51034.html
blobdfd698fc2ffd8edb329266bdd0ce1ef0d736b41a
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=51034
5 -->
6 <head>
7 <title>Test for Bug 51034</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=51034">Mozilla Bug 51034</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <div id="divElement">
17 <span>Subelement1</span>
18 <span>Subelement2</span>
19 <span>Subelement3</span>
20 </div>
21 </div>
22 <pre id="test">
23 <script class="testbody" type="text/javascript">
25 /** Test for Bug 51034 **/
26 var x = document.getElementById('divElement');
28 isOK = false;
29 try {
30 x.getElementsByTagName('span');
31 isOK = true;
32 } catch (ex) {
33 isOK = false;
36 ok(isOK, "getElementsByTagName() doesn't cause exception");
39 </script>
40 </pre>
41 </body>
42 </html>