Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-imageSmoothingEnabled-zero-size.html

Issue 2679083003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Adding virtual/gpu/fast/canvas/canvas-imageSmoothingQuality.html to TestExpectations Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
1 3
2 <!doctype html> 4 <script>
3 <html> 5 test(function(t) {
4 <body> 6 var canvas = document.createElement('canvas');
5 This test passes by not crashing ! 7 canvas.width = 0;
6 <script> 8 canvas.height = 0;
7 if (window.testRunner) { 9 var context = canvas.getContext('2d');
8 testRunner.dumpAsText(); 10 if (context.imageSmoothingEnabled)
9 } 11 context.imageSmoothingEnabled = false;
10 window.onload = function () {
11 » var canvas = document.createElement('canvas');
12 » » canvas.width = 0;
13 » » canvas.height = 0;
14 » » var context = canvas.getContext('2d');
15 » » if(context.imageSmoothingEnabled) {context.imageSmoothingEnabled = false;}
16 };
17 </script>
18 </body>
19 </html>
20 12
13 }, 'Test that canvas.imageSmoothingEnabled does not crash when the size of the c anvas is (0,0).');
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698