diff options
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index ef206e3..d1d13bc 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -1128,9 +1128,10 @@ void LayoutTestController::setAllowFileAccessFromFileURLs( void LayoutTestController::setMockSpeechInputResult(const CppArgumentList& args, CppVariant* result) { - if (args.size() > 0 && args[0].isString()) { + if (args.size() > 0 && args[0].isString() && args[1].isString()) { shell_->speech_input_controller_mock()->setMockRecognitionResult( - WebString::fromUTF8(args[0].ToString())); + WebString::fromUTF8(args[0].ToString()), + WebString::fromUTF8(args[1].ToString())); } result->SetNull(); } |