]> khamidou — GitHub mirrors - electron.git/commitdiff
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 7a1b68efd4cf849b1f77fd7d3281c43f57924085..f7d56e71089aff523eca545003c2104e9f3311b7 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