From 4a5831a73381955b02cb1996791c0382fcad6b1c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 30 May 2017 13:00:00 -0700 Subject: [PATCH] Add initial getGPUFeatureStatus spec --- spec/api-app-spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index fdf8510f90ef..bbba81955f93 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -558,4 +558,14 @@ describe('app module', function () { assert.ok(types.includes('Tab')) }) }) + + describe('getGPUFeatureStatus() API', function () { + if (process.platform !== 'darwin') return + + it('returns the graphic features statuses', function () { + const features = app.getGPUFeatureStatus() + assert.equal(typeof features.webgl, 'string') + assert.equal(typeof features.gpu_compositing, 'string') + }) + }) })