From: Cheng Zhao Date: Sun, 18 May 2014 14:37:59 +0000 (+0800) Subject: Add spec for checking webgl support. X-Git-Tag: v0.12.5~2^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d5171ab941b6170b31dcd75f8402cc7ae46d152a;p=electron.git Add spec for checking webgl support. --- diff --git a/spec/chromium-spec.coffee b/spec/chromium-spec.coffee index 7a1b68ef..f7d56e71 100644 --- a/spec/chromium-spec.coffee +++ b/spec/chromium-spec.coffee @@ -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