4 <title>Test to verify that canvas contents are blurred by default with hidpi
</title>
9 if (!window
.testRunner
) {
10 var msg
= document
.getElementById("message");
11 msg
.innerHTML
= "ERROR: This test requires the testRunner object.";
15 testRunner
.dumpAsTextWithPixelResults();
17 testRunner
.waitUntilDone();
18 testRunner
.setBackingScaleFactor(2, function () {
19 var ctx1
= document
.getElementById("c1").getContext("2d");
20 ctx1
.fillRect(1, 1, 8, 8);
21 testRunner
.notifyDone();
25 window
.onload
= runTest
;
27 <!-- There should a black square with blurry edges.-->
28 <canvas id=
"c1" width=
"10" height=
"10"></canvas>