layout/reftests/bugs/449362-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial