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 () {}; +}