WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75376
Remove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
https://bugs.webkit.org/show_bug.cgi?id=75376
Summary
Remove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
Raymond
Reported
2011-12-29 21:57:03 PST
Remove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
Attachments
Patch
(4.74 KB, patch)
2011-12-29 22:07 PST
,
Raymond
no flags
Details
Formatted Diff
Diff
Patch
(8.26 KB, patch)
2012-01-03 22:29 PST
,
Raymond
no flags
Details
Formatted Diff
Diff
Patch
(7.09 KB, patch)
2012-01-03 22:57 PST
,
Raymond
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Raymond
Comment 1
2011-12-29 22:07:35 PST
Created
attachment 120779
[details]
Patch
Adam Barth
Comment 2
2011-12-29 23:12:17 PST
Yay
WebKit Review Bot
Comment 3
2011-12-30 12:40:23 PST
Comment on
attachment 120779
[details]
Patch Clearing flags on attachment: 120779 Committed
r103849
: <
http://trac.webkit.org/changeset/103849
>
WebKit Review Bot
Comment 4
2011-12-30 12:40:32 PST
All reviewed patches have been landed. Closing bug.
Andreas Kling
Comment 5
2011-12-30 18:44:09 PST
The following tests are failing on the Mac bot after this change: canvas/philip/tests/2d.missingargs.html canvas/philip/tests/2d.pattern.image.string.html canvas/philip/tests/2d.pattern.image.undefined.html
Adam Barth
Comment 6
2011-12-30 18:54:38 PST
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r103854%20(35962)/canvas/philip/tests/2d.missingargs-pretty-diff.html
looks pretty clearly like a progression since it's reporting fewer failures.
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r103854%20(35962)/canvas/philip/tests/2d.pattern.image.string-pretty-diff.html
and
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r103854%20(35962)/canvas/philip/tests/2d.pattern.image.undefined-pretty-diff.html
look fine. It's just a change in what kind of exception we're throwing from TYPE_MISMATCH_ERR to Type Error. I would recommend rebaselining these results. They're more consistent with the kinds of exceptions we throw throughout WebKit (which isn't surprising since we're deleting custom code).
Csaba Osztrogonác
Comment 7
2012-01-01 09:54:30 PST
Reopen not to forget fix layout test fixes.
Csaba Osztrogonác
Comment 8
2012-01-01 09:55:29 PST
(In reply to
comment #7
)
> Reopen not to forget fix layout test fixes.
typo fix: s/fix\ //g
Csaba Osztrogonác
Comment 9
2012-01-02 01:54:49 PST
I skipped them on Qt to paint the bot green:
http://trac.webkit.org/changeset/103895
Please unskip them with the proper fix. Thanks.
Philippe Normand
Comment 10
2012-01-02 02:01:17 PST
Also skipped in GTK.
Raymond
Comment 11
2012-01-03 22:29:27 PST
Created
attachment 121068
[details]
Patch
Adam Barth
Comment 12
2012-01-03 22:31:22 PST
Comment on
attachment 121068
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=121068&action=review
> LayoutTests/canvas/philip/tests/2d.pattern.image.string.html:15 > -try { var _thrown = false; ctx.createPattern('../images/red.png', 'repeat');} catch (e) { if (e.code != DOMException.TYPE_MISMATCH_ERR) _fail("Failed assertion: expected exception of type TYPE_MISMATCH_ERR, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TYPE_MISMATCH_ERR: ctx.createPattern('../images/red.png', 'repeat')"); } > +try { var _thrown = false; ctx.createPattern('../images/red.png', 'repeat');} catch (e) { if (!(e instanceof TypeError)) _fail("Failed assertion: expected exception of type TypeError, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TypeError: ctx.createPattern('../images/red.png', 'repeat')"); }
I don't think we're supposed to change these tests. They're a test suite written by philip. We should just update the expected results.
> LayoutTests/canvas/philip/tests/2d.pattern.image.undefined.html:17 > -} catch (e) { if (e.code != DOMException.TYPE_MISMATCH_ERR) _fail("Failed assertion: expected exception of type TYPE_MISMATCH_ERR, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TYPE_MISMATCH_ERR: ctx.createPattern(undefined, 'repeat')"); } > +} catch (e) { if (!(e instanceof TypeError)) _fail("Failed assertion: expected exception of type TypeError, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TypeError: ctx.createPattern(undefined, 'repeat')"); }
Ditto.
Raymond
Comment 13
2012-01-03 22:39:45 PST
(In reply to
comment #12
)
> I don't think we're supposed to change these tests. They're a test suite written by philip. We should just update the expected results. >
Ok, I see. I will update the patch. Thx. Is there any more background doc about why these test case it self should not be modified? At the same time, I am also puzzled that why I also need to remove entries in LayoutTests/platform/chromium/test-expectations.txt to have the run_layout_test script not complaining "an unexpected pass". I check the log of the LayoutTests/platform/chromium/test-expectations.txt , seems these entries are not added after 2011-12-29, so why they are there at all, am I missing anything here?
Adam Barth
Comment 14
2012-01-03 22:51:54 PST
> Is there any more background doc about why these test case it self should not be modified?
Unfortunately not. There's been some talk about creating a folder for imported test suites. For now, you just need to know the test suites.
> At the same time, I am also puzzled that why I also need to remove entries in LayoutTests/platform/chromium/test-expectations.txt to have the run_layout_test script not complaining "an unexpected pass". I check the log of the LayoutTests/platform/chromium/test-expectations.txt , seems these entries are not added after 2011-12-29, so why they are there at all, am I missing anything here?
I'm not sure I understand. It looks like these tests are marked as expected to fail. Once you fix them, they'll pass, which means we shouldn't expect them to fail anymore (i.e., we should remove them from the file). Your patch looks like its doing the right thing.
Raymond
Comment 15
2012-01-03 22:57:53 PST
Created
attachment 121074
[details]
Patch
Adam Barth
Comment 16
2012-01-03 22:59:12 PST
Comment on
attachment 121074
[details]
Patch Great. Thanks.
Raymond
Comment 17
2012-01-03 23:05:24 PST
(In reply to
comment #14
)
> > At the same time, I am also puzzled that why I also need to remove entries in LayoutTests/platform/chromium/test-expectations.txt to have the run_layout_test script not complaining "an unexpected pass". I check the log of the LayoutTests/platform/chromium/test-expectations.txt , seems these entries are not added after 2011-12-29, so why they are there at all, am I missing anything here? > > I'm not sure I understand. It looks like these tests are marked as expected to fail. Once you fix them, they'll pass, which means we shouldn't expect them to fail anymore (i.e., we should remove them from the file). Your patch looks like its doing the right thing.
I mean It seems to me they are marked as expected to fail before the first patch been merged, But at that time, they should expected to success instead of fail. Then why they are marked? So I am a little worry about that is there anything that I miss.
Adam Barth
Comment 18
2012-01-03 23:16:59 PST
Maybe they were failing for a different reason?
Raymond
Comment 19
2012-01-03 23:24:52 PST
(In reply to
comment #18
)
> Maybe they were failing for a different reason?
This is what puzzled me, for I did run LayoutTest on chromium port, And now it actually don't fail.... Anyway, let buildbot check it again.
WebKit Review Bot
Comment 20
2012-01-04 00:48:58 PST
Comment on
attachment 121074
[details]
Patch Clearing flags on attachment: 121074 Committed
r104019
: <
http://trac.webkit.org/changeset/104019
>
WebKit Review Bot
Comment 21
2012-01-04 00:49:04 PST
All reviewed patches have been landed. Closing bug.
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