mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
23 lines
493 B
HTML
23 lines
493 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<body>
|
|
<canvas width="100" height="100" id="c"></canvas>
|
|
<script>
|
|
var c = document.getElementById("c");
|
|
var ctx = c.getContext("2d");
|
|
ctx.fillStyle = "red";
|
|
ctx.fillRect(0,0,100,100);
|
|
|
|
function finishTest() {
|
|
c.width = 200;
|
|
c.height = 200;
|
|
ctx.fillStyle = "lime";
|
|
ctx.fillRect(0,0,200,200);
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
window.addEventListener("MozReftestInvalidate", finishTest, false);
|
|
</script>
|
|
</body>
|
|
</html>
|