1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/reftest/plugin-asyncdxgi-update.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!doctype html> 1.5 +<html class="reftest-wait"><head> 1.6 +<title>Plugin boxes</title> 1.7 +</head> 1.8 +<body> 1.9 +<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FFFF0000" id="plugin" asyncmodel="dxgi"></embed> <!-- red --> 1.10 +<script> 1.11 + var prevPaintCount = 0; 1.12 + function doTestWait() { 1.13 + if (window.mozPaintCount != prevPaintCount) { 1.14 + document.documentElement.removeAttribute('class'); 1.15 + } else { 1.16 + setTimeout(doTestWait, 0); 1.17 + } 1.18 + } 1.19 + 1.20 + function doTest() { 1.21 + prevPaintCount = window.mozPaintCount; 1.22 + document.getElementById("plugin").setColor("FF00FF00"); 1.23 + setTimeout(doTestWait, 0); 1.24 + } 1.25 + window.addEventListener("MozReftestInvalidate", doTest, false); 1.26 +</script> 1.27 +</body></html>