mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
85611a7b6d
--HG-- extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
23 lines
486 B
HTML
23 lines
486 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);
|
|
</script>
|
|
</body>
|
|
</html>
|