Index: LayoutTests/fast/canvas/canvas-hidpi-blurry.html |
diff --git a/LayoutTests/fast/canvas/canvas-hidpi-blurry.html b/LayoutTests/fast/canvas/canvas-hidpi-blurry.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f508a7da7c951fba3bae5cbee24e1ea86806e87 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-hidpi-blurry.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>Test to verify that canvas contents are blurred by default with hidpi</title> |
+</head> |
+<body> |
+<script> |
+ function runTest() { |
+ if (!window.testRunner) { |
+ var msg = document.getElementById("message"); |
+ msg.innerHTML = "ERROR: This test requires the testRunner object."; |
+ return; |
+ } |
+ |
+ testRunner.dumpAsTextWithPixelResults(); |
+ |
+ testRunner.waitUntilDone(); |
+ testRunner.setBackingScaleFactor(2, function () { |
+ var ctx1 = document.getElementById("c1").getContext("2d"); |
+ ctx1.fillRect(1, 1, 8, 8); |
+ testRunner.notifyDone(); |
+ }); |
+ } |
+ |
+ window.onload = runTest; |
+</script> |
+<!-- There should a black square with blurry edges.--> |
+<canvas id="c1" width="10" height="10"></canvas> |
+</body> |
+</html> |