From bbbb38dc80695b1fcb7cd89add465cf0aacde3f0 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Fri, 22 Jul 2016 11:54:58 +0800 Subject: [PATCH] try to fix unit test --- test/qunit/lib/polyfill-for-phantom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/qunit/lib/polyfill-for-phantom.js b/test/qunit/lib/polyfill-for-phantom.js index b6ef60c60b..2321a0e717 100644 --- a/test/qunit/lib/polyfill-for-phantom.js +++ b/test/qunit/lib/polyfill-for-phantom.js @@ -115,3 +115,7 @@ if (isPhantomJS) { }); })(); } + +if (typeof WebGLRenderingContext === 'undefined') { + window.WebGLRenderingContext = function () {}; +}