summaryrefslogtreecommitdiffstats
path: root/ppapi/tests
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 19:33:55 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 19:33:55 +0000
commitaa0c865d8f2824f60013ace1c60b3e5fa4c2210a (patch)
treed8124920b63ea2466fb9642a19471bf0c14fe06c /ppapi/tests
parentafa3c18d08b411bda2975a5ae6f33a4ed939875f (diff)
downloadchromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.zip
chromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.tar.gz
chromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.tar.bz2
Allow creation of input events. Revert changes to testing interface for
creating keyboard events. TEST=manual Review URL: http://codereview.chromium.org/7443005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests')
-rw-r--r--ppapi/tests/test_scrollbar.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/ppapi/tests/test_scrollbar.cc b/ppapi/tests/test_scrollbar.cc
index 967d8d2..2aa658a 100644
--- a/ppapi/tests/test_scrollbar.cc
+++ b/ppapi/tests/test_scrollbar.cc
@@ -39,14 +39,13 @@ std::string TestScrollbar::TestHandleEvent() {
scrollbar_.SetDocumentSize(10000);
pp::Core* core = pp::Module::Get()->core();
- PP_Resource input_event = testing_interface_->CreateKeyboardInputEvent(
- instance_->pp_instance(), PP_INPUTEVENT_TYPE_KEYDOWN,
+ pp::KeyboardInputEvent input_event(
+ instance_, PP_INPUTEVENT_TYPE_KEYDOWN,
core->GetTimeTicks(),
0, // Modifier.
0x28, // Key code = VKEY_DOWN.
- PP_MakeUndefined());
- scrollbar_.HandleEvent(pp::InputEvent(input_event));
- core->ReleaseResource(input_event);
+ pp::Var());
+ scrollbar_.HandleEvent(input_event);
return scrollbar_value_changed_ ?
"" : "Didn't get callback for scrollbar value change";