WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
43086
fast/canvas/canvas-ImageData-behaviour.html fails on chromium after
r64156
https://bugs.webkit.org/show_bug.cgi?id=43086
Summary
fast/canvas/canvas-ImageData-behaviour.html fails on chromium after r64156
Victor Wang
Reported
2010-07-27 15:08:05 PDT
fast/canvas/canvas-ImageData-behaviour.html fails on chromium after
r64156
. Looks like data type and rounding issue. Here are the example of actual output on chromium win: PASS imageData.width is 2 ... FAIL imageData.data[0] = -1, imageData.data[0] should be 255. Was 0. PASS imageData.data[0] = "0", imageData.data[0] is 0 ... FAIL imageData.data[0] = Infinity, imageData.data[0] should be 0. Was 255. PASS imageData.data[0] = -Infinity, imageData.data[0] is 0 FAIL imageData.data[0] = -5, imageData.data[0] should be 251. Was 0. PASS imageData.data[0] = -0.5, imageData.data[0] is 0 PASS imageData.data[0] = 0, imageData.data[0] is 0 FAIL imageData.data[0] = 0.5, imageData.data[0] should be 0. Was 1. PASS imageData.data[0] = 5, imageData.data[0] is 5 PASS imageData.data[0] = 2147483647, imageData.data[0] is 255 FAIL imageData.data[0] = 2147483648, imageData.data[0] should be 0. Was 255. FAIL imageData.data[0] = 2147483649, imageData.data[0] should be 1. Was 255. FAIL imageData.data[0] = -1099511627773.5, imageData.data[0] should be 3. Was 0. FAIL imageData.data[0] = 9007199254740990, imageData.data[0] should be 254. Was 255. PASS imageData.data[0] = 5.4, imageData.data[0] is 5 PASS imageData.data[0] = 255, imageData.data[0] is 255 FAIL imageData.data[0] = 256, imageData.data[0] should be 0. Was 255. PASS imageData.data[0] = null, imageData.data[0] is 0 ...
Attachments
Add attachment
proposed patch, testcase, etc.
Victor Wang
Comment 1
2010-07-27 15:18:19 PDT
This is because the patch
http://trac.webkit.org/changeset/64156/trunk
trunks and wraps the value between 0-255 in JavaScriptCore.
Victor Wang
Comment 2
2010-07-27 15:27:47 PDT
(In reply to
comment #1
)
> This is because the patch
http://trac.webkit.org/changeset/64156/trunk
trunks and wraps the value between 0-255 in JavaScriptCore.
Should we do the same thing (truncate and wrap value to 0-255) like this? cced more people...
Stephen Chenney
Comment 3
2013-04-09 16:09:54 PDT
LayoutTest failures for Chromium are being marked WontFix. The Bug is still accessible and referenced from TestExpectations.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug