Add was prefix to current launch settings

This commit is contained in:
Kevin Sawicki 2016-07-07 16:29:58 -07:00
parent c100300764
commit 2633c2f735
2 changed files with 8 additions and 8 deletions

View file

@ -91,8 +91,8 @@ struct Converter<Browser::LoginItemSettings> {
dict.Set("openAtLogin", val.open_at_login);
dict.Set("openAsHidden", val.open_as_hidden);
dict.Set("restoreState", val.restore_state);
dict.Set("openedAtLogin", val.opened_at_login);
dict.Set("openedAsHidden", val.opened_as_hidden);
dict.Set("wasOpenedAtLogin", val.opened_at_login);
dict.Set("wasOpenedAsHidden", val.opened_as_hidden);
return dict.GetHandle();
}
};

View file

@ -315,8 +315,8 @@ describe('app module', function () {
assert.deepEqual(app.getLoginItemSettings(), {
openAtLogin: true,
openAsHidden: false,
openedAtLogin: false,
openedAsHidden: false,
wasOpenedAtLogin: false,
wasOpenedAsHidden: false,
restoreState: false
})
@ -324,8 +324,8 @@ describe('app module', function () {
assert.deepEqual(app.getLoginItemSettings(), {
openAtLogin: true,
openAsHidden: true,
openedAtLogin: false,
openedAsHidden: false,
wasOpenedAtLogin: false,
wasOpenedAsHidden: false,
restoreState: false
})
@ -333,8 +333,8 @@ describe('app module', function () {
assert.deepEqual(app.getLoginItemSettings(), {
openAtLogin: false,
openAsHidden: false,
openedAtLogin: false,
openedAsHidden: false,
wasOpenedAtLogin: false,
wasOpenedAsHidden: false,
restoreState: false
})
})