mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
25 lines
714 B
HTML
25 lines
714 B
HTML
<!doctype html>
|
|
<html class="reftest-wait"><head>
|
|
<title>Plugin boxes</title>
|
|
</head>
|
|
<body>
|
|
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FFFF0000" id="plugin" asyncmodel="dxgi"></embed> <!-- red -->
|
|
<script>
|
|
var prevPaintCount = 0;
|
|
function doTestWait() {
|
|
if (window.mozPaintCount != prevPaintCount) {
|
|
document.documentElement.removeAttribute('class');
|
|
} else {
|
|
setTimeout(doTestWait, 0);
|
|
}
|
|
}
|
|
|
|
function doTest() {
|
|
prevPaintCount = window.mozPaintCount;
|
|
document.getElementById("plugin").setColor("FF00FF00");
|
|
setTimeout(doTestWait, 0);
|
|
}
|
|
window.addEventListener("MozReftestInvalidate", doTest, false);
|
|
</script>
|
|
</body></html>
|