summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-imageSmoothingEnabled-zero-size.html
blob: af70950adfaa1ae30e2fc4e71f9e1b7902c42602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

<!doctype html>
<html>
  <body>
    This test passes by not crashing !
    <script>
    if (window.testRunner) {
        testRunner.dumpAsText();
    }
    window.onload = function () {
    	var canvas = document.createElement('canvas');
		canvas.width = 0;
		canvas.height = 0;
		var context = canvas.getContext('2d');
		if(context.imageSmoothingEnabled) {context.imageSmoothingEnabled = false;}
    };
    </script>
  </body>
</html>