Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions gpii/node_modules/lifecycleManager/src/LifecycleManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,11 @@ var fluid = fluid || require("infusion"),
options: handlerSpec.options
}];

// Optionally include supportedSettings if there are any
if (handlerSpec.supportedSettings !== undefined) {
returnObj[solutionId][0].supportedSettings = handlerSpec.supportedSettings;
}

return returnObj;
};

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions gpii/node_modules/matchMakerFramework/test/data/os_win.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ gpii.settingsHandlers.invokeSettingsHandler = function (handler, payload) {
var response = gpii.settingsHandlers.transformPayload(payload, function (element, path) {
var solutionId = path[0]; // first entry of path will always be solution ID
// Note shallow copy performed within filterKeys
var directLoad = fluid.filterKeys(element, ["settings", "options"]);
var others = fluid.censorKeys(element, ["settings", "options"]);
var directLoad = fluid.filterKeys(element, ["settings", "options", "supportedSettings"]);
var others = fluid.censorKeys(element, ["settings", "options", "supportedSettings"]);
worklist.push({
path: path,
result: handler(directLoad, solutionId),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 10 additions & 51 deletions gpii/node_modules/transformer/test/TransformerTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ var testSolutionsEntry = {
"description": "Swap mouse left/right buttons",
"type": "boolean",
"default": false
},
"path": {
"get": "pvParam",
"set": "uiParam"
}
}
},
Expand All @@ -278,12 +282,6 @@ var testSolutionsEntry = {
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.SwapMouseButtons",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand Down Expand Up @@ -322,6 +320,10 @@ var testSolutionsEntry = {
"enumLabels": ["full-page"]
}
]
},
"path": {
"get": "pvParam",
"set": "uiParam"
}
}
},
Expand All @@ -331,12 +333,6 @@ var testSolutionsEntry = {
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.ScrollLines",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand Down Expand Up @@ -390,7 +386,8 @@ var testSolutionsEntry = {
"description": "Whether to enable/disable High Contrast",
"type": "boolean",
"default": false
}
},
"path": "pvParam.dwFlags.HCF_HIGHCONTRASTON"
}
},
"capabilities": [
Expand Down Expand Up @@ -423,12 +420,6 @@ var testSolutionsEntry = {
}
},
"outputPath": "value"
},
"path": {
"transform": {
"type": "fluid.transforms.literalValue",
"input": "pvParam.dwFlags.HCF_HIGHCONTRASTON"
}
}
}
},
Expand Down Expand Up @@ -1125,7 +1116,6 @@ gpii.tests.transformer.configurationToSettingsTestSpecs = [
"http://registry.gpii.net/common/highContrast/enabled": true,
"http://registry.gpii.net/applications/com.microsoft.windows.highContrast": {
"HighContrastOn": {
"path": "pvParam.dwFlags.HCF_HIGHCONTRASTON",
"value": true
}
}
Expand Down Expand Up @@ -1175,7 +1165,6 @@ gpii.tests.transformer.configurationToSettingsTestSpecs = [
},
"settings": {
"HighContrastOn": {
"path": "pvParam.dwFlags.HCF_HIGHCONTRASTON",
"value": true
}
},
Expand Down Expand Up @@ -1420,12 +1409,6 @@ gpii.tests.transformer.hasSupportedSettingsTests = [
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.SwapMouseButtons",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand All @@ -1444,12 +1427,6 @@ gpii.tests.transformer.hasSupportedSettingsTests = [
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.SwapMouseButtons",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand All @@ -1472,12 +1449,6 @@ gpii.tests.transformer.hasSupportedSettingsTests = [
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.SwapMouseButtons",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand All @@ -1496,12 +1467,6 @@ gpii.tests.transformer.hasSupportedSettingsTests = [
"true": "",
"false": "",
"outputPath": "value"
},
"path": {
"transform": {
"type": "fluid.transforms.literalValue",
"input": "pvParam"
}
}
}
},
Expand All @@ -1519,12 +1484,6 @@ gpii.tests.transformer.hasSupportedSettingsTests = [
"type": "fluid.transforms.value",
"inputPath": "http://registry\\.gpii\\.net/applications/com\\.microsoft\\.windows\\.mouseSettings.SwapMouseButtons",
"outputPath": "value"
},
"path": {
"literalValue": {
"get": "pvParam",
"set": "uiParam"
}
}
}
},
Expand Down
Loading