1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/reftest/border-padding-3.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<body style="margin:0"> 1.7 +<object type="application/x-test" id="plugin" 1.8 + drawmode="solid" color="00000000" 1.9 + style="width:200px; height:200px; display:block; margin:90px 80px; 1.10 + outline:5px dashed blue; 1.11 + background:cyan; 1.12 + border:dotted black; border-width:4px 8px 4px 8px; 1.13 + padding:3px 1px;"> 1.14 +</object> 1.15 +<script> 1.16 +var prevPaintCount = 0; 1.17 +function doTestWait() { 1.18 + if (document.getElementById("plugin").getPaintCount() != prevPaintCount) { 1.19 + document.documentElement.removeAttribute('class'); 1.20 + } else { 1.21 + setTimeout(doTestWait, 0); 1.22 + } 1.23 +} 1.24 + 1.25 +function doTest() { 1.26 + prevPaintCount = document.getElementById("plugin").getPaintCount(); 1.27 + document.getElementById("plugin").setColor("FFFF80FF"); 1.28 + setTimeout(doTestWait, 0); 1.29 + 1.30 +} 1.31 +window.addEventListener("MozReftestInvalidate", doTest, false); 1.32 +</script> 1.33 +</body> 1.34 +</html>