|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <body style="margin:0"> |
|
4 <object type="application/x-test" id="plugin" |
|
5 drawmode="solid" color="00000000" |
|
6 style="width:200px; height:200px; display:block; margin:90px 80px; |
|
7 outline:5px dashed blue; |
|
8 background:cyan; |
|
9 border:dotted black; border-width:4px 8px 4px 8px; |
|
10 padding:3px 1px;"> |
|
11 </object> |
|
12 <script> |
|
13 var prevPaintCount = 0; |
|
14 function doTestWait() { |
|
15 if (document.getElementById("plugin").getPaintCount() != prevPaintCount) { |
|
16 document.documentElement.removeAttribute('class'); |
|
17 } else { |
|
18 setTimeout(doTestWait, 0); |
|
19 } |
|
20 } |
|
21 |
|
22 function doTest() { |
|
23 prevPaintCount = document.getElementById("plugin").getPaintCount(); |
|
24 document.getElementById("plugin").setColor("FFFF80FF"); |
|
25 setTimeout(doTestWait, 0); |
|
26 |
|
27 } |
|
28 window.addEventListener("MozReftestInvalidate", doTest, false); |
|
29 </script> |
|
30 </body> |
|
31 </html> |