summaryrefslogtreecommitdiffstats
path: root/layout/reftests/canvas/empty-transaction-1.html
blob: 36d34ebe908a1e98515ceaff0334264f20776b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<canvas style="display:block" id="c" width="100" height="100"></canvas>
<script>
var ctx = document.getElementById("c").getContext("2d");
function doTest() {
  document.documentElement.removeAttribute("class");
  ctx.fillRect(0, 0, 100, 100);
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>