dom/plugins/test/reftest/border-padding-3.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial