Plan keyboard visibility in app core
This commit is contained in:
@@ -31,6 +31,20 @@ void display_file_opens_nonempty_path(pp::tests::Harness& harness)
|
||||
pp::app::plan_display_file("D:/Paint/export.png") == pp::app::DisplayFileAction::open_external_file);
|
||||
}
|
||||
|
||||
void virtual_keyboard_plans_show_action(pp::tests::Harness& harness)
|
||||
{
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
pp::app::plan_virtual_keyboard(true) == pp::app::VirtualKeyboardAction::show_keyboard);
|
||||
}
|
||||
|
||||
void virtual_keyboard_plans_hide_action(pp::tests::Harness& harness)
|
||||
{
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
pp::app::plan_virtual_keyboard(false) == pp::app::VirtualKeyboardAction::hide_keyboard);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main()
|
||||
@@ -40,5 +54,7 @@ int main()
|
||||
harness.run("picked path invokes callback for nonempty path", picked_path_invokes_callback_for_nonempty_path);
|
||||
harness.run("display file ignores empty path", display_file_ignores_empty_path);
|
||||
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);
|
||||
return harness.finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user