dom/base/test/test_Image_constructor.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/test/test_Image_constructor.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=862702
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <!-- Make sure our script runs before anything else -->
    1.12 +  <script>
    1.13 +   var img = new Image;
    1.14 +  </script>
    1.15 +  <title>Test for Bug 862702</title>
    1.16 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.17 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.18 +  <script type="application/javascript">
    1.19 +
    1.20 +  /** Test for Bug 862702 **/
    1.21 +  is(Object.getPrototypeOf(img), HTMLImageElement.prototype,
    1.22 +     "Wrong prototype object");
    1.23 +
    1.24 +  </script>
    1.25 +</head>
    1.26 +<body>
    1.27 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=862702">Mozilla Bug 862702</a>
    1.28 +<p id="display"></p>
    1.29 +<div id="content" style="display: none">
    1.30 +
    1.31 +</div>
    1.32 +<pre id="test">
    1.33 +</pre>
    1.34 +</body>
    1.35 +</html>

mercurial