Plan cursor visibility in app core
This commit is contained in:
@@ -45,6 +45,20 @@ void virtual_keyboard_plans_hide_action(pp::tests::Harness& harness)
|
||||
pp::app::plan_virtual_keyboard(false) == pp::app::VirtualKeyboardAction::hide_keyboard);
|
||||
}
|
||||
|
||||
void cursor_visibility_plans_show_action(pp::tests::Harness& harness)
|
||||
{
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
pp::app::plan_cursor_visibility(true) == pp::app::CursorVisibilityAction::show_cursor);
|
||||
}
|
||||
|
||||
void cursor_visibility_plans_hide_action(pp::tests::Harness& harness)
|
||||
{
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
pp::app::plan_cursor_visibility(false) == pp::app::CursorVisibilityAction::hide_cursor);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main()
|
||||
@@ -56,5 +70,7 @@ int main()
|
||||
harness.run("display file opens nonempty path", display_file_opens_nonempty_path);
|
||||
harness.run("virtual keyboard plans show action", virtual_keyboard_plans_show_action);
|
||||
harness.run("virtual keyboard plans hide action", virtual_keyboard_plans_hide_action);
|
||||
harness.run("cursor visibility plans show action", cursor_visibility_plans_show_action);
|
||||
harness.run("cursor visibility plans hide action", cursor_visibility_plans_hide_action);
|
||||
return harness.finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user