| Index: third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp b/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp
|
| index cb5dea221c5c17592e5e3fb7aa0f16aeda2147f3..85a2341336f5644cfc8e5999c6244106d20a5cf7 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp
|
| @@ -56,8 +56,11 @@ namespace blink {
|
|
|
| KeyboardEvent* createKeyboardEventWithLocation(
|
| KeyboardEvent::KeyLocationCode location) {
|
| - return KeyboardEvent::create("keydown", true, true, 0, "", "", location,
|
| - PlatformEvent::NoModifiers, 0);
|
| + KeyboardEventInit keyEventInit;
|
| + keyEventInit.setBubbles(true);
|
| + keyEventInit.setCancelable(true);
|
| + keyEventInit.setLocation(location);
|
| + return new KeyboardEvent("keydown", keyEventInit);
|
| }
|
|
|
| int getModifiersForKeyLocationCode(KeyboardEvent::KeyLocationCode location) {
|
|
|