[2dcontext-tests] Add tests that check addHitRegion throws NotSupportedError (#851)

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).

View on GitHub: https://github.com/w3c/web-platform-tests/pull/851

Received on Saturday, 12 April 2014 02:28:33 UTC