4 https://bugzilla.mozilla.org/show_bug.cgi?id=1287912
8 <title>Test for Bug
1287912</title>
9 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1287912">Mozilla Bug
1287912</a>
15 <div id=
"content" style=
"display: none">
16 <iframe id=
"t" src=
"http://example.org/tests/dom/bindings/test/"></iframe>
19 <script type=
"application/javascript">
21 var win = document.getElementById(
"t").contentWindow;
22 is(Object.getPrototypeOf(win.Image), win.Function.prototype,
"The __proto__ of a named constructor is Function.prototype");
23 is(win.Image.prototype, win.HTMLImageElement.prototype,
"The prototype property of a named constructor is the interface prototype object");
24 is(win.HTMLImageElement.foo, undefined,
"Should not have a property named foo on the HTMLImageElement interface object");
25 is(win.Image.foo, undefined,
"Should not have a property named foo on the Image named constructor");
30 SimpleTest.waitForExplicitFinish();