Skip to content

Comments

Feature/sdl 0238 keyboard enhancements revision#103

Open
dboltovskyi wants to merge 7 commits intofeature/sdl_0238_keyboard_enhancementsfrom
feature/sdl_0238_keyboard_enhancements_revision
Open

Feature/sdl 0238 keyboard enhancements revision#103
dboltovskyi wants to merge 7 commits intofeature/sdl_0238_keyboard_enhancementsfrom
feature/sdl_0238_keyboard_enhancements_revision

Conversation

@dboltovskyi
Copy link

Updates for https://github.com/smartdevicelink/sdl_evolution/pull/1117

This PR is [ready / not ready] for review.

Summary

Various updates for revision

ATF version

develop

Changelog

  • updates for revision

CLA

@dboltovskyi dboltovskyi force-pushed the feature/sdl_0238_keyboard_enhancements_revision branch from 8357975 to e2f6348 Compare February 5, 2021 18:31
./test_scripts/API/KeyboardEnhancements/Resumption/002_SDL_resumes_cached_KeyboardProperties.lua
./test_scripts/API/KeyboardEnhancements/Resumption/003_SDL_resumes_cached_KeyboardProperties_with_removed_autoCompleteList.lua
./test_scripts/API/KeyboardEnhancements/Resumption/004_SDL_resumes_cached_KeyboardProperties_single_parameter.lua
./test_scripts/API/KeyboardEnhancements/Resumption/005_SDL_resumes_KeyboardProperties_single_parameter.lua
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scripts needs to be renamed: customizeKeys => customKeys

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 5e81cd8

[05] = { supportedKeyboards = { { keyboardLayout = "QWERTY", numConfigurableKeys = nil }} },
[06] = { supportedKeyboards = { { keyboardLayout = nil, numConfigurableKeys = 0 }} },
[07] = { supportedKeyboards = common.getArrayValue({ { keyboardLayout = "QWERTY", numConfigurableKeys = 0 }}, 1001) },
[08] = { supportedKeyboards = { { keyboardLayout = "QWERTY", numConfigurableKeys = 11 }} }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add empty array case

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e89bca0

[01] = { customizeKeys = { } }, -- lower out of bound
[02] = { customizeKeys = common.getArrayValue(keys, 11) }, -- upper out of bound
[03] = { customizeKeys = 123 }, -- invalid type
[01] = { customKeys = { } }, -- lower out of bound
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use EMPTY_ARRAY const for this case

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e89bca0

m.getHMIConnection():ExpectNotification("BasicCommunication.OnAppRegistered")
:Do(function()
local dataToHMI = m.cloneTable(pResumptionParams)
m.getHMIConnection():ExpectRequest("UI.SetGlobalProperties", dataToHMI)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppose we need to remove dataToHMI here since we have specific ValidIf . Otherwise we'll have double validation.

keyboardProperties = {
language = "EN-US",
keyboardLayout = "AZERTY",
autoCompleteList = { "Daemon, Freedom" }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Propose to use values from sgpParams_1 in order to have more visibility that values are the same.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e89bca0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants