Merge pull request #799 from mattermost/enable-gpu-by-default
Enable GPU hardware acceleration by default
This commit is contained in:
@@ -15,7 +15,7 @@ const defaultPreferences = {
|
|||||||
},
|
},
|
||||||
showUnreadBadge: true,
|
showUnreadBadge: true,
|
||||||
useSpellChecker: true,
|
useSpellChecker: true,
|
||||||
enableHardwareAcceleration: false,
|
enableHardwareAcceleration: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default defaultPreferences;
|
export default defaultPreferences;
|
||||||
|
@@ -289,19 +289,19 @@ describe('browser/settings.html', function desc() {
|
|||||||
loadSettingsPage().
|
loadSettingsPage().
|
||||||
waitForExist(ID_INPUT_ENABLE_HARDWARE_ACCELERATION, 5000);
|
waitForExist(ID_INPUT_ENABLE_HARDWARE_ACCELERATION, 5000);
|
||||||
const selected = await this.app.client.isSelected(ID_INPUT_ENABLE_HARDWARE_ACCELERATION);
|
const selected = await this.app.client.isSelected(ID_INPUT_ENABLE_HARDWARE_ACCELERATION);
|
||||||
selected.should.equal(false); // default is false
|
selected.should.equal(true); // default is true
|
||||||
|
|
||||||
await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION).
|
await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION).
|
||||||
waitForVisible('#appOptionsSaveIndicator', 5000).
|
waitForVisible('#appOptionsSaveIndicator', 5000).
|
||||||
waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear
|
waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear
|
||||||
const config0 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
|
const config0 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
|
||||||
config0.enableHardwareAcceleration.should.equal(true);
|
config0.enableHardwareAcceleration.should.equal(false);
|
||||||
|
|
||||||
await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION).
|
await this.app.client.click(ID_INPUT_ENABLE_HARDWARE_ACCELERATION).
|
||||||
waitForVisible('#appOptionsSaveIndicator', 5000).
|
waitForVisible('#appOptionsSaveIndicator', 5000).
|
||||||
waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear
|
waitForVisible('#appOptionsSaveIndicator', 5000, true); // at least 2500 ms to disappear
|
||||||
const config1 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
|
const config1 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
|
||||||
config1.enableHardwareAcceleration.should.equal(false);
|
config1.enableHardwareAcceleration.should.equal(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user