-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathJawsSettingsHandlerTests.js
More file actions
45 lines (38 loc) · 1.43 KB
/
JawsSettingsHandlerTests.js
File metadata and controls
45 lines (38 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"use strict";
var fluid = require("infusion"),
gpii = fluid.registerNamespace("gpii");
fluid.registerNamespace("gpii.tests");
fluid.require("%gpii-universal");
gpii.loadTestingSupport();
require("settingsHandlers");
fluid.logObjectRenderChars = 30000;
var test = {
payload: {
"com.freedomscientific.jaws": [{
options: {
"defaultSettingsFilePath": "C:\\Users\\vagrant\\AppData\\Roaming\\Freedom Scientific\\JAWS\\2020\\Settings\\enu\\DEFAULT.JCF",
"voiceProfilesDirPath": "C:\\Users\\vagrant\\AppData\\Roaming\\Freedom Scientific\\JAWS\\2020\\Settings\\VoiceProfiles"
},
settings: {
"ENU-Global.Pitch": 90
}
}]
},
expectedResult: {
"com.freedomscientific.jaws": [{
options: {
"defaultSettingsFilePath": "C:\\Users\\vagrant\\AppData\\Roaming\\Freedom Scientific\\JAWS\\2020\\Settings\\enu\\DEFAULT.JCF",
"voiceProfilesDirPath": "C:\\Users\\vagrant\\AppData\\Roaming\\Freedom Scientific\\JAWS\\2020\\Settings\\VoiceProfiles"
},
settings: {
"ENU-Global.Pitch": {
newValue: 90,
oldValue: 65
}
}
}]
}
};
var output = gpii.settingsHandlers.JAWSSettingsHandler.get(test.payload);
output = gpii.settingsHandlers.JAWSSettingsHandler.set(test.payload);
fluid.log(output);