From d5171ab941b6170b31dcd75f8402cc7ae46d152a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 18 May 2014 22:37:59 +0800 Subject: [PATCH] Add spec for checking webgl support. --- spec/chromium-spec.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/chromium-spec.coffee b/spec/chromium-spec.coffee index 7a1b68efd4cf..f7d56e71089a 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