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

Side by Side Diff: LayoutTests/fast/canvas/canvas-webkitImageSmoothingEnabled-expected.txt

Issue 238263005: Unprefix webkitImageSmoothingEnabled -> imageSmoothingEnabled. As webkitImageSmoothingEnabled is re… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing some errors Created 6 years, 8 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
(Empty)
1 Tests for the imageSmoothingEnabled attribute.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test that the default value is true.
7 PASS ctx.webkitImageSmoothingEnabled is true
8 Test that false is returned after a the attribute is set to false.
9 PASS ctx.webkitImageSmoothingEnabled is false
10 Test that restore works. We save a false state; create, then save a true state; and then finally restore.
11 PASS ctx.webkitImageSmoothingEnabled is false
12 New canvas element created.
13 Test that the image is smoothed by default. We check by making sure the pixel ju st to the left of the middle line is not completely black.
14 PASS left_of_center_pixel.data[0] !== 0 is true
15 PASS left_of_center_pixel.data[1] !== 0 is true
16 PASS left_of_center_pixel.data[2] !== 0 is true
17 Test that nearest neighbour is used when imageSmoothingEnabled is set to false. We check this by making sure the pixel just to the left of the middle line is co mpletely black.
18 PASS left_of_center_pixel.data[0] is 0
19 PASS left_of_center_pixel.data[1] is 0
20 PASS left_of_center_pixel.data[2] is 0
21 Test that the image is smoothed when imageSmoothingEnabled is set to true.
22 PASS left_of_center_pixel.data[0] !== 0 is true
23 PASS left_of_center_pixel.data[1] !== 0 is true
24 PASS left_of_center_pixel.data[2] !== 0 is true
25 Test that restoring actually changes smoothing and not just the attribute value. We are restoring to a point where imageSmoothingEnabled is set to false.
26 PASS left_of_center_pixel.data[0] is 0
27 PASS left_of_center_pixel.data[1] is 0
28 PASS left_of_center_pixel.data[2] is 0
29 PASS successfullyParsed is true
30
31 TEST COMPLETE
32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698