1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/printing/745025-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait reftest-print"> 1.6 +<body> 1.7 +<canvas id="canvas" width="10" height="10"></canvas> 1.8 +<script> 1.9 +var canvas = document.getElementById('canvas'); 1.10 +canvas.mozPrintCallback = function(obj) { 1.11 + setTimeout(function() { 1.12 + var ctx = obj.context; 1.13 + ctx.fillStyle = 'rgb(255, 0, 0)'; 1.14 + ctx.fillRect(0, 0, 10, 10); 1.15 + obj.done(); 1.16 + document.documentElement.classList.toggle("reftest-wait"); 1.17 + }, 0); 1.18 +}; 1.19 +</script> 1.20 +</body> 1.21 +</html>