b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug333983.html
blob947ac1c73d918db74a041e8c1a45d73d22b92da7
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=333983
5 -->
6 <head>
7 <title>Test for Bug 333983</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=333983">Mozilla Bug 333983</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 333983 **/
22 HTMLElement.prototype.foopy = function () { return "foopy"; }
24 var foopy = "";
25 try {
26 foopy = document.body.foopy()
27 } catch (ex) {
28 foopy = ex + "";
31 is(foopy, "foopy", "HTMLElement.prototype functions work");
32 </script>
33 </pre>
34 </body>
35 </html>