Add spec for checking webgl support.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 18 May 2014 14:37:59 +0000 (22:37 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 18 May 2014 14:37:59 +0000 (22:37 +0800)
spec/chromium-spec.coffee

index 7a1b68e..f7d56e7 100644 (file)
@@ -65,3 +65,8 @@ describe 'chromium feature', ->
     it 'does not crash', ->
       RUint8Array = require('remote').getGlobal 'Uint8Array'
       new RUint8Array
+
+  describe 'webgl', ->
+    it 'can be get as context in canvas', ->
+      webgl = document.createElement('canvas').getContext 'webgl'
+      assert.notEqual webgl, null