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-expected.txt

Issue 2128973002: Remove prefixed imageSmoothingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase master Created 4 years, 3 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 CONSOLE WARNING: line 1: 'CanvasRenderingContext2D.webkitImageSmoothingEnabled' is deprecated and will be removed in M55, around November 2016. Please use 'Canv asRenderingContext2D.imageSmoothingEnabled' instead. See https://www.chromestatu s.com/features/5639849247768576 for more details.
2 Tests for the imageSmoothingEnabled attribute. 1 Tests for the imageSmoothingEnabled attribute.
3 2
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 4
6 5
7 Test that the default value is true. 6 Test that the default value is true.
8 PASS ctx.imageSmoothingEnabled is true 7 PASS ctx.imageSmoothingEnabled is true
9 PASS ctx.webkitImageSmoothingEnabled is true
10 Test that false is returned after a the attribute is set to false. 8 Test that false is returned after a the attribute is set to false.
11 PASS ctx.imageSmoothingEnabled is false 9 PASS ctx.imageSmoothingEnabled is false
12 PASS ctx.webkitImageSmoothingEnabled is false
13 Test that restore works. We save a false state; create, then save a true state; and then finally restore. 10 Test that restore works. We save a false state; create, then save a true state; and then finally restore.
14 PASS ctx.imageSmoothingEnabled is false 11 PASS ctx.imageSmoothingEnabled is false
15 New canvas element created. 12 New canvas element created.
16 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. 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.
17 PASS left_of_center_pixel.data[0] !== 0 is true 14 PASS left_of_center_pixel.data[0] !== 0 is true
18 PASS left_of_center_pixel.data[1] !== 0 is true 15 PASS left_of_center_pixel.data[1] !== 0 is true
19 PASS left_of_center_pixel.data[2] !== 0 is true 16 PASS left_of_center_pixel.data[2] !== 0 is true
20 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. 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.
21 PASS left_of_center_pixel.data[0] is 0 18 PASS left_of_center_pixel.data[0] is 0
22 PASS left_of_center_pixel.data[1] is 0 19 PASS left_of_center_pixel.data[1] is 0
23 PASS left_of_center_pixel.data[2] is 0 20 PASS left_of_center_pixel.data[2] is 0
24 Test that the image is smoothed when imageSmoothingEnabled is set to true. 21 Test that the image is smoothed when imageSmoothingEnabled is set to true.
25 PASS left_of_center_pixel.data[0] !== 0 is true 22 PASS left_of_center_pixel.data[0] !== 0 is true
26 PASS left_of_center_pixel.data[1] !== 0 is true 23 PASS left_of_center_pixel.data[1] !== 0 is true
27 PASS left_of_center_pixel.data[2] !== 0 is true 24 PASS left_of_center_pixel.data[2] !== 0 is true
28 Test that restoring actually changes smoothing and not just the attribute value. We are restoring to a point where imageSmoothingEnabled is set to false. 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.
29 PASS left_of_center_pixel.data[0] is 0 26 PASS left_of_center_pixel.data[0] is 0
30 PASS left_of_center_pixel.data[1] is 0 27 PASS left_of_center_pixel.data[1] is 0
31 PASS left_of_center_pixel.data[2] is 0 28 PASS left_of_center_pixel.data[2] is 0
32 PASS successfullyParsed is true 29 PASS successfullyParsed is true
33 30
34 TEST COMPLETE 31 TEST COMPLETE
35 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698