From 458670423848a7ea458bf589a6ef4cfd71c33a9a Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 3 Apr 2018 21:53:37 +0900 Subject: [PATCH] Fix test for gpu option --- test/specs/browser/settings_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/specs/browser/settings_test.js b/test/specs/browser/settings_test.js index df018d1a..f1eb209d 100644 --- a/test/specs/browser/settings_test.js +++ b/test/specs/browser/settings_test.js @@ -289,19 +289,19 @@ describe('browser/settings.html', function desc() { loadSettingsPage(). waitForExist(ID_INPUT_ENABLE_HARDWARE_ACCELERATION, 5000); const selected = await this.app.client.isSelected(ID_INPUT_ENABLE_HARDWARE_ACCELERATION); - selected.should.equal(true); + selected.should.equal(false); // default is false await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION). waitForVisible('#appOptionsSaveIndicator', 5000). waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear const config0 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8')); - config0.enableHardwareAcceleration.should.equal(false); + config0.enableHardwareAcceleration.should.equal(true); await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION). waitForVisible('#appOptionsSaveIndicator', 5000). waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear const config1 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8')); - config1.enableHardwareAcceleration.should.equal(true); + config1.enableHardwareAcceleration.should.equal(false); }); }); });