dom/plugins/test/reftest/shrink-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/test/reftest/shrink-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +  <script>
     1.8 +function doShrink()
     1.9 +{
    1.10 +  var plugin = document.getElementById("plugin");
    1.11 +  plugin.setSlowPaint(true);
    1.12 +  plugin.width = "50";
    1.13 +  plugin.height = "40";
    1.14 +
    1.15 +  document.documentElement.removeAttribute("class");
    1.16 +}
    1.17 +
    1.18 +document.addEventListener("MozReftestInvalidate", doShrink, false);
    1.19 +  </script>
    1.20 +</head>
    1.21 +<body>
    1.22 +  <embed id="plugin" type="application/x-test"
    1.23 +         width="300" height="500">
    1.24 +  </embed>
    1.25 +</body>
    1.26 +</html>

mercurial