mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Adding test
This commit is contained in:
parent
398d049cfc
commit
ccb4281dfb
65
layout/reftests/bugs/449362-1-ref.html
Normal file
65
layout/reftests/bugs/449362-1-ref.html
Normal file
@ -0,0 +1,65 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>FF3 Test</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style>
|
||||
td {
|
||||
border: 1px solid;
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
/**
|
||||
* Display the element 'idShow' and hide the element 'idHide'.
|
||||
*
|
||||
* @param idShow the id of the element to show.
|
||||
* @param idHide the id of the element to hide.
|
||||
*/
|
||||
toggleElements = function(idShow, idHide)
|
||||
{
|
||||
var elementHide = document.getElementById(idHide);
|
||||
var elementShow = document.getElementById(idShow);
|
||||
if (elementHide && elementShow)
|
||||
{
|
||||
elementHide.style.display = 'none';
|
||||
elementShow.style.display = '';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table id="pp_owned" align="center" cellpadding="0" cellspacing="0">
|
||||
|
||||
|
||||
<tbody>
|
||||
<tr >
|
||||
<td >Column 1</td>
|
||||
<td >Column 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td >
|
||||
hello
|
||||
</td>
|
||||
<td >
|
||||
<span id="A" style="" onclick="toggleElements('B', 'A')">
|
||||
Click me!
|
||||
</span>
|
||||
<span id="B" style="display: none;" onclick="toggleElements('A', 'B')">
|
||||
Now I am<br />
|
||||
higher.<br />
|
||||
|
||||
Click me<br />
|
||||
Again!
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
78
layout/reftests/bugs/449362-1.html
Normal file
78
layout/reftests/bugs/449362-1.html
Normal file
@ -0,0 +1,78 @@
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<title>FF3 Test</title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style>
|
||||
td {
|
||||
border: 1px solid;
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
/**
|
||||
* Display the element 'idShow' and hide the element 'idHide'.
|
||||
*
|
||||
* @param idShow the id of the element to show.
|
||||
* @param idHide the id of the element to hide.
|
||||
*/
|
||||
toggleElements = function(idShow, idHide)
|
||||
{
|
||||
|
||||
var elementHide = document.getElementById(idHide);
|
||||
var elementShow = document.getElementById(idShow);
|
||||
if (elementHide && elementShow)
|
||||
{
|
||||
elementHide.style.display = 'none';
|
||||
elementShow.style.display = '';
|
||||
}
|
||||
|
||||
}
|
||||
function doTest()
|
||||
{
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function toggleElements2()
|
||||
{
|
||||
toggleElements('B', 'A');
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(toggleElements2, 200);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table id="pp_owned" align="center" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tbody>
|
||||
<tr >
|
||||
<td >Column 1</td>
|
||||
<td >Column 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td >
|
||||
hello
|
||||
</td>
|
||||
<td >
|
||||
<span id="A" style="" onclick="toggleElements('B', 'A')">
|
||||
Click me!
|
||||
</span>
|
||||
<span id="B" style="display: none;" onclick="toggleElements('A', 'B')">
|
||||
Now I am<br />
|
||||
higher.<br />
|
||||
|
||||
Click me<br />
|
||||
Again!
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -1081,6 +1081,7 @@ random == 445004-1.html 445004-1-ref.html # bug 472268
|
||||
!= 449149-1b.html about:blank
|
||||
== 449149-2.html 449149-2-ref.html
|
||||
== 449171-1.html 449171-ref.html
|
||||
== 449362-1.html 449362-1-ref.html
|
||||
== 449519-1.html 449519-1-ref.html
|
||||
# == 449653-1.html 449653-1-ref.html # Disabled for now - it needs privileges
|
||||
== 450670-1.html 450670-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user