| Index: content/browser/renderer_host/input/web_input_event_unittest.cc
|
| diff --git a/content/browser/renderer_host/input/web_input_event_unittest.cc b/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| index 57d03a1387aef347a3f5278dcafafd0782117968..f1cbb0e98301adbff5d7a5cfc76a544644b6e0dd 100644
|
| --- a/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| +++ b/content/browser/renderer_host/input/web_input_event_unittest.cc
|
| @@ -33,9 +33,9 @@ TEST(WebInputEventBuilderTest, TestMouseEventScale) {
|
| command_line->AppendSwitchASCII(switches::kForceDeviceScaleFactor, "2");
|
|
|
| // Synthesize a mouse move with x = 300 and y = 200.
|
| - WebMouseEvent mouse_move =
|
| - WebMouseEventBuilder::Build(::GetDesktopWindow(), WM_MOUSEMOVE, 0,
|
| - MAKELPARAM(300, 200), 100);
|
| + WebMouseEvent mouse_move = WebMouseEventBuilder::Build(
|
| + ::GetDesktopWindow(), WM_MOUSEMOVE, 0, MAKELPARAM(300, 200), 100,
|
| + blink::WebPointerProperties::PointerType::Mouse);
|
|
|
| // The WebMouseEvent.x, WebMouseEvent.y, WebMouseEvent.windowX and
|
| // WebMouseEvent.windowY fields should be in pixels on return and hence
|
| @@ -51,6 +51,9 @@ TEST(WebInputEventBuilderTest, TestMouseEventScale) {
|
| EXPECT_EQ(150, mouse_move.globalX);
|
| EXPECT_EQ(100, mouse_move.globalY);
|
|
|
| + EXPECT_EQ(blink::WebPointerProperties::PointerType::Mouse,
|
| + mouse_move.pointerType);
|
| +
|
| command_line->AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1");
|
| display::Display::ResetForceDeviceScaleFactorForTesting();
|
| }
|
|
|