dom/plugins/test/reftest/plugin-asyncbitmap-update.html
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 08:48:56 +0200
changeset 101418 2ef51674316aadfe26a46877b16794f758bf4b6d
parent 88080 b2de8767a482c241ef63e5988061ba11912999b1
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

<!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="bitmap"></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>