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

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

Issue 871563003: Fix ImageData constructor infelicity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-ImageData-workers-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Test ImageData constructor 1 Test ImageData constructor
2 2
3 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 ".
4 4
5 5
6 PASS ImageData is defined. 6 PASS ImageData is defined.
7 PASS ImageData.length is 2 7 PASS ImageData.length is 2
8 PASS imageData is non-null. 8 PASS imageData is non-null.
9 PASS imageData.data is non-null. 9 PASS imageData.data is non-null.
10 PASS imageData.width is 100 10 PASS imageData.width is 100
11 PASS imageData.height is 50 11 PASS imageData.height is 50
12 PASS getRGBA(imageData.data, 4) is [0, 0, 0, 0] 12 PASS getRGBA(imageData.data, 4) is [0, 0, 0, 0]
13 PASS getRGBA(imageData.data, 4) is testColor 13 PASS getRGBA(imageData.data, 4) is testColor
14 PASS new ImageData(10) threw exception TypeError: Failed to construct 'ImageData ': 2 arguments required, but only 1 present.. 14 PASS new ImageData(10) threw exception TypeError: Failed to construct 'ImageData ': 2 arguments required, but only 1 present..
15 PASS new ImageData(0, 10) threw exception IndexSizeError: Failed to construct 'I mageData': The source width is zero or not a number.. 15 PASS new ImageData(0, 10) threw exception IndexSizeError: Failed to construct 'I mageData': The source width is zero or not a number..
16 PASS new ImageData(10, 0) threw exception IndexSizeError: Failed to construct 'I mageData': The source height is zero or not a number.. 16 PASS new ImageData(10, 0) threw exception IndexSizeError: Failed to construct 'I mageData': The source height is zero or not a number..
17 PASS new ImageData('width', 'height') threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or not a number.. 17 PASS new ImageData('width', 'height') threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or not a number..
18 PASS new ImageData(1 << 31, 1 << 31) threw exception IndexSizeError: Failed to c onstruct 'ImageData': The requested image size exceeds the supported range.. 18 PASS new ImageData(1 << 31, 1 << 31) threw exception IndexSizeError: Failed to c onstruct 'ImageData': The requested image size exceeds the supported range..
19 PASS new ImageData(new Uint8ClampedArray(0)) threw exception TypeError: Failed t o construct 'ImageData': 2 arguments required, but only 1 present.. 19 PASS new ImageData(new Uint8ClampedArray(0)) threw exception TypeError: Failed t o construct 'ImageData': 2 arguments required, but only 1 present..
20 PASS new ImageData(new Uint8Array(100), 25) threw exception IndexSizeError: Fail ed to construct 'ImageData': The source width is zero or not a number.. 20 PASS new ImageData(new Uint8Array(100), 25) threw exception IndexSizeError: Fail ed to construct 'ImageData': The source width is zero or not a number..
21 PASS new ImageData(new Uint8ClampedArray(27), 2) threw exception IndexSizeError: Failed to construct 'ImageData': The input data byte length is not a multiple o f 4.. 21 PASS new ImageData(new Uint8ClampedArray(27), 2) threw exception IndexSizeError: Failed to construct 'ImageData': The input data byte length is not a multiple o f 4..
22 PASS new ImageData(new Uint8ClampedArray(28), 7, 0) threw exception IndexSizeErr or: Failed to construct 'ImageData': The input data byte length is not equal to (4 * width * height)..
22 PASS new ImageData(new Uint8ClampedArray(104), 14) threw exception IndexSizeErro r: Failed to construct 'ImageData': The input data byte length is not a multiple of (4 * width).. 23 PASS new ImageData(new Uint8ClampedArray(104), 14) threw exception IndexSizeErro r: Failed to construct 'ImageData': The input data byte length is not a multiple of (4 * width)..
24 PASS new ImageData(self, 4, 4) threw exception TypeError: Failed to construct 'I mageData': parameter 1 is not of type 'Uint8ClampedArray'..
25 PASS new ImageData(null, 4, 4) threw exception TypeError: Failed to construct 'I mageData': parameter 1 is not of type 'Uint8ClampedArray'..
23 PASS new ImageData(imageData.data, 0) threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or not a number.. 26 PASS new ImageData(imageData.data, 0) threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or not a number..
24 PASS new ImageData(imageData.data, 13) threw exception IndexSizeError: Failed to construct 'ImageData': The input data byte length is not a multiple of (4 * wid th).. 27 PASS new ImageData(imageData.data, 13) threw exception IndexSizeError: Failed to construct 'ImageData': The input data byte length is not a multiple of (4 * wid th)..
25 PASS new ImageData(imageData.data, 1 << 31) threw exception IndexSizeError: Fail ed to construct 'ImageData': The input data byte length is not a multiple of (4 * width).. 28 PASS new ImageData(imageData.data, 1 << 31) threw exception IndexSizeError: Fail ed to construct 'ImageData': The input data byte length is not a multiple of (4 * width)..
26 PASS new ImageData(imageData.data, 'biggish') threw exception IndexSizeError: Fa iled to construct 'ImageData': The source width is zero or not a number.. 29 PASS new ImageData(imageData.data, 'biggish') threw exception IndexSizeError: Fa iled to construct 'ImageData': The source width is zero or not a number..
27 PASS new ImageData(imageData.data, 1 << 24, 1 << 31) threw exception IndexSizeEr ror: Failed to construct 'ImageData': The input data byte length is not a multip le of (4 * width).. 30 PASS new ImageData(imageData.data, 1 << 24, 1 << 31) threw exception IndexSizeEr ror: Failed to construct 'ImageData': The input data byte length is not a multip le of (4 * width)..
31 PASS (new ImageData(new Uint8ClampedArray(28), 7)).height is 1
28 PASS imageDataFromData.width is 100 32 PASS imageDataFromData.width is 100
29 PASS imageDataFromData.height is 50 33 PASS imageDataFromData.height is 50
30 PASS imageDataFromData.data is imageData.data 34 PASS imageDataFromData.data is imageData.data
31 PASS getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) 35 PASS getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10)
32 PASS getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) 36 PASS getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10)
33 PASS imageDataFromData.width is 20 37 PASS imageDataFromData.width is 20
34 PASS imageDataFromData.height is 5 38 PASS imageDataFromData.height is 5
35 PASS imageDataFromData.data is data 39 PASS imageDataFromData.data is data
36 PASS getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) 40 PASS getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2)
37 PASS getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) 41 PASS getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2)
38 PASS successfullyParsed is true 42 PASS successfullyParsed is true
39 43
40 TEST COMPLETE 44 TEST COMPLETE
41 45
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-ImageData-workers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698