layout/reftests/bugs/449362-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3 <title>FF3 Test</title>
michael@0 4
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
michael@0 6
michael@0 7 <style>
michael@0 8 td {
michael@0 9 border: 1px solid;
michael@0 10 vertical-align: top;
michael@0 11 }
michael@0 12 </style>
michael@0 13 <script type="text/javascript" language="JavaScript">
michael@0 14 /**
michael@0 15 * Display the element 'idShow' and hide the element 'idHide'.
michael@0 16 *
michael@0 17 * @param idShow the id of the element to show.
michael@0 18 * @param idHide the id of the element to hide.
michael@0 19 */
michael@0 20 toggleElements = function(idShow, idHide)
michael@0 21 {
michael@0 22
michael@0 23 var elementHide = document.getElementById(idHide);
michael@0 24 var elementShow = document.getElementById(idShow);
michael@0 25 if (elementHide && elementShow)
michael@0 26 {
michael@0 27 elementHide.style.display = 'none';
michael@0 28 elementShow.style.display = '';
michael@0 29 }
michael@0 30
michael@0 31 }
michael@0 32 function doTest()
michael@0 33 {
michael@0 34 toggleElements('B', 'A');
michael@0 35 document.documentElement.removeAttribute("class");
michael@0 36 }
michael@0 37 window.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 38 </script>
michael@0 39
michael@0 40 </head>
michael@0 41
michael@0 42 <body>
michael@0 43
michael@0 44 <table id="pp_owned" align="center" cellpadding="0" cellspacing="0">
michael@0 45
michael@0 46 <tbody>
michael@0 47 <tr >
michael@0 48 <td >Column 1</td>
michael@0 49 <td >Column 2</td>
michael@0 50 </tr>
michael@0 51 <tr>
michael@0 52
michael@0 53 <td >
michael@0 54 hello
michael@0 55 </td>
michael@0 56 <td >
michael@0 57 <span id="A">
michael@0 58 Click me!
michael@0 59 </span>
michael@0 60 <span id="B" style="display: none;" >
michael@0 61 Now I am<br />
michael@0 62 higher.<br />
michael@0 63
michael@0 64 Click me<br />
michael@0 65 Again!
michael@0 66 </span>
michael@0 67 </td>
michael@0 68 </tr>
michael@0 69 </tbody>
michael@0 70 </table>
michael@0 71 </body>
michael@0 72 </html>
michael@0 73
michael@0 74

mercurial