Skip to content

Add tests that check addHitRegion throws NotSupportedError#851

Merged
sideshowbarker merged 2 commits intoweb-platform-tests:masterfrom
takenspc:sbumission/takenspc-hitregions
May 2, 2014
Merged

Add tests that check addHitRegion throws NotSupportedError#851
sideshowbarker merged 2 commits intoweb-platform-tests:masterfrom
takenspc:sbumission/takenspc-hitregions

Conversation

@takenspc
Copy link
Contributor

addHitRegion throws NotSupportedError when the path has no pixels.
And there are few methods on Canvas2D Context which render shapes and not affect the current path.

These tests check combination of addHitRegion and such methods.

I tested these with Mozilla Firefox nightly 31.0a1 (2014-04-08).

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/1239

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@sideshowbarker
Copy link
Member

w3c-test:mirror

@sideshowbarker
Copy link
Member

@cabanier can you please review this if/when you have time? https://critic.hoppipolla.co.uk/r/1239

sideshowbarker added a commit that referenced this pull request May 2, 2014
Add tests that check addHitRegion throws NotSupportedError
@sideshowbarker sideshowbarker merged commit 0f0ed91 into web-platform-tests:master May 2, 2014
@sideshowbarker
Copy link
Member

@takenspc I went ahead and merged this but ideally the test should go in 2dcontext/tools/tests2d.yaml and the actual HTML test file should be generated from that. Do you have time to take a shot at moving this to 2dcontext/tools/tests2d.yaml? If not, let me know and I'll do it.

@sideshowbarker
Copy link
Member

@takenspc Actually, after looking at this again, I can see it was premature of me to merge it. Will add some more comments over on https://critic.hoppipolla.co.uk/r/1239. After that, if you want to make the changes, please either open a new PR for this, or let me know and I'll open one myself.

@takenspc takenspc deleted the sbumission/takenspc-hitregions branch January 12, 2016 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants