diff --git a/test/core/Graphics.js b/test/core/Graphics.js index 10e7d7b..971389c 100644 --- a/test/core/Graphics.js +++ b/test/core/Graphics.js @@ -1,11 +1,7 @@ 'use strict'; const MockPointer = require('../interaction/MockPointer'); - -function isWebGLSupported(fn) -{ - return PIXI.utils.isWebGLSupported() ? fn : undefined; -} +const isWebGLSupported = require('../isWebGLSupported'); describe('PIXI.Graphics', function () { diff --git a/test/core/Graphics.js b/test/core/Graphics.js index 10e7d7b..971389c 100644 --- a/test/core/Graphics.js +++ b/test/core/Graphics.js @@ -1,11 +1,7 @@ 'use strict'; const MockPointer = require('../interaction/MockPointer'); - -function isWebGLSupported(fn) -{ - return PIXI.utils.isWebGLSupported() ? fn : undefined; -} +const isWebGLSupported = require('../isWebGLSupported'); describe('PIXI.Graphics', function () { diff --git a/test/core/WebGLRenderer.js b/test/core/WebGLRenderer.js index c38abfd..4a3726d 100644 --- a/test/core/WebGLRenderer.js +++ b/test/core/WebGLRenderer.js @@ -1,9 +1,6 @@ 'use strict'; -function isWebGLSupported(fn) -{ - return PIXI.utils.isWebGLSupported() ? fn : undefined; -} +const isWebGLSupported = require('../isWebGLSupported'); describe('PIXI.WebGLRenderer', function () { diff --git a/test/core/Graphics.js b/test/core/Graphics.js index 10e7d7b..971389c 100644 --- a/test/core/Graphics.js +++ b/test/core/Graphics.js @@ -1,11 +1,7 @@ 'use strict'; const MockPointer = require('../interaction/MockPointer'); - -function isWebGLSupported(fn) -{ - return PIXI.utils.isWebGLSupported() ? fn : undefined; -} +const isWebGLSupported = require('../isWebGLSupported'); describe('PIXI.Graphics', function () { diff --git a/test/core/WebGLRenderer.js b/test/core/WebGLRenderer.js index c38abfd..4a3726d 100644 --- a/test/core/WebGLRenderer.js +++ b/test/core/WebGLRenderer.js @@ -1,9 +1,6 @@ 'use strict'; -function isWebGLSupported(fn) -{ - return PIXI.utils.isWebGLSupported() ? fn : undefined; -} +const isWebGLSupported = require('../isWebGLSupported'); describe('PIXI.WebGLRenderer', function () { diff --git a/test/isWebGLSupported.js b/test/isWebGLSupported.js new file mode 100644 index 0000000..3dabae2 --- /dev/null +++ b/test/isWebGLSupported.js @@ -0,0 +1,8 @@ +'use strict'; + +function isWebGLSupported(fn) +{ + return PIXI.utils.isWebGLSupported() ? fn : undefined; +} + +module.exports = isWebGLSupported;