layout/style/test/test_bug379741.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=379741
     5 -->
     6 <head>
     7   <title>Test for Bug 379741</title>
     8   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>        
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=379741">Mozilla Bug 379741</a>
    13 <div id="content" style="display: none">
    14 <div id="noframe"></div>
    15 </div>
    16 <pre id="test">
    17 <script class="testbody" type="text/javascript">
    19 /** Test for Bug 379741 **/
    21 var cs = getComputedStyle(document.getElementById("noframe"), "");
    22 ok(cs.marginTop == "0" || cs.marginTop == "0px",
    23    "computed margin-top is not none");
    24 ok(cs.marginRight == "0" || cs.marginRight == "0px",
    25    "computed margin-right is not none");
    26 ok(cs.marginBottom == "0" || cs.marginBottom == "0px",
    27    "computed margin-bottom is not none");
    28 ok(cs.marginLeft == "0" || cs.marginLeft == "0px",
    29    "computed margin-left is not none");
    30 ok(cs.paddingTop == "0" || cs.paddingTop == "0px",
    31    "computed padding-top is not none");
    32 ok(cs.paddingRight == "0" || cs.paddingRight == "0px",
    33    "computed padding-right is not none");
    34 ok(cs.paddingBottom == "0" || cs.paddingBottom == "0px",
    35    "computed padding-bottom is not none");
    36 ok(cs.paddingLeft == "0" || cs.paddingLeft == "0px",
    37    "computed padding-left is not none");
    38 ok(cs.markerOffset == "auto",
    39    "computed marker-offset is not none");
    41 </script>
    42 </pre>
    43 </body>
    44 </html>

mercurial