mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
add some comments to reftest and change it so that it's less likely to give false results
This commit is contained in:
parent
97457c10b6
commit
1fc1017af6
@ -13,10 +13,14 @@
|
||||
|
||||
<script type="application/javascript">
|
||||
|
||||
// The green rect is initially covered by the red div. After 100 ms (to give
|
||||
// the div a chance to render), the foreignObject (and thus div) is moved out
|
||||
// of the viewport which should then be filled by the green rect as a result.
|
||||
|
||||
function move_foreignObject()
|
||||
{
|
||||
document.getElementById('fo').setAttribute('y', '100%');
|
||||
setTimeout(finish_test, 100); // give some time to repaint before the test
|
||||
setTimeout(finish_test, 100); // give the user agent some time to repaint
|
||||
}
|
||||
|
||||
function finish_test()
|
||||
@ -25,8 +29,17 @@ function finish_test()
|
||||
}
|
||||
|
||||
</script>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
||||
<rect width="100%" height="100%" fill="red"/>
|
||||
|
||||
<!-- Create the "pass" rect using a foreignObject so the testcase doesn't
|
||||
seem to pass if foreignObject is not supported -->
|
||||
<foreignObject width="100%" height="100%">
|
||||
<html:div style="display:block;width:100%;height:100%;background:lime;"/>
|
||||
</foreignObject>
|
||||
|
||||
<foreignObject id="fo" width="100%" height="100%">
|
||||
<html:div style="display:block;width:100%;height:100%;background:red;"/>
|
||||
</foreignObject>
|
||||
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 953 B After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user