content/base/test/test_bug238409.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=238409
     5 -->
     6 <head>
     7   <title>Test for Bug 238409</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=238409">Mozilla Bug 238409</a>
    13 <p id="display"></p>
    14 <div id="content" style="display: none">
    15   <table id="table_spacing0" cellspacing="0">
    16     <tr><td>cellspacing="0"</td></tr>
    17   </table>
    19   <table id="table_spacing2" cellspacing="2">
    20     <tr><td>cellspacing="2"</td></tr>
    21   </table>
    23   <table id="table_spacingNone">
    24     <tr><td>no cellspacing</td></tr>
    25   </table>
    27   <table id="table_spacingMalformed" cellspacing>
    28     <tr><td>malformed cellspacing</td></tr>
    29   </table>
    30 </div>
    31 <pre id="test">
    32 <script class="testbody" type="text/javascript">
    34 /** Test for Bug 238409 **/
    36 ok(document.getElementById("table_spacing0").cellSpacing == "0", "parsing table with cellspacing='0'");
    37 ok(document.getElementById("table_spacing2").cellSpacing == "2", "parsing table with cellspacing='2'");
    38 ok(document.getElementById("table_spacingNone").cellSpacing == "", "parsing table without cellspacing");
    39 ok(document.getElementById("table_spacingMalformed").cellSpacing == "", "parsing table with malformed cellspacing");
    41 </script>
    42 </pre>
    43 </body>
    44 </html>

mercurial