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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/imagedata-contains-uint8clampedarray.html

Issue 2703803002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 9 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 <!DOCTYPE html> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script> 3 <script>
8 description("Tests that ImageData contains a Uint8ClampedArray."); 4 test(function(){
9 5
10 var canvas = document.createElement("canvas"); 6 var canvas = document.createElement("canvas");
11 canvas.width = 10; 7 canvas.width = 10;
12 canvas.height = 10; 8 canvas.height = 10;
13 var context = canvas.getContext("2d"); 9 var context = canvas.getContext("2d");
14 10
15 var imageData = context.getImageData(0, 0, 1, 1); 11 var imageData = context.getImageData(0, 0, 1, 1);
16 shouldBe('imageData.data.constructor', 'Uint8ClampedArray'); 12 assert_equals(imageData.data.constructor, Uint8ClampedArray);
13
14 }, "Tests that ImageData contains a Uint8ClampedArray.");
17 </script> 15 </script>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698