Add test to ensure that doing texImage2D from a WebGL canvas works.

This test catches http://code.google.com/p/chromium/issues/detail?id=168737