| Index: webkit/tools/test_shell/layout_test_controller.cc
|
| diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
|
| index ef206e3279c363e57ea2fa8410721aa691a8e578..d1d13bcf814f96103ae899ffde90ef22d39cd29e 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();
|
| }
|
|
|