Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: Source/web/tests/WebInputEventConversionTest.cpp

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated unittest to use different urls and destructor to register same url again Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "web/WebViewImpl.h" 50 #include "web/WebViewImpl.h"
51 #include "web/tests/FrameTestHelpers.h" 51 #include "web/tests/FrameTestHelpers.h"
52 #include <gtest/gtest.h> 52 #include <gtest/gtest.h>
53 53
54 using namespace blink; 54 using namespace blink;
55 55
56 namespace { 56 namespace {
57 57
58 PassRefPtrWillBeRawPtr<KeyboardEvent> createKeyboardEventWithLocation(KeyboardEv ent::KeyLocationCode location) 58 PassRefPtrWillBeRawPtr<KeyboardEvent> createKeyboardEventWithLocation(KeyboardEv ent::KeyLocationCode location)
59 { 59 {
60 return KeyboardEvent::create("keydown", true, true, 0, "", location, false, false, false, false); 60 return KeyboardEvent::create("keydown", true, true, 0, "", "", location, fal se, false, false, false);
61 } 61 }
62 62
63 int getModifiersForKeyLocationCode(KeyboardEvent::KeyLocationCode location) 63 int getModifiersForKeyLocationCode(WebViewImpl* webViewImpl, KeyboardEvent::KeyL ocationCode location)
64 { 64 {
65 RefPtrWillBeRawPtr<KeyboardEvent> event = createKeyboardEventWithLocation(lo cation); 65 RefPtrWillBeRawPtr<KeyboardEvent> event = createKeyboardEventWithLocation(lo cation);
66 WebKeyboardEventBuilder convertedEvent(*event); 66 WebKeyboardEventBuilder convertedEvent(toLocalFrame(webViewImpl->page()->mai nFrame())->view(), *event);
67 return convertedEvent.modifiers; 67 return convertedEvent.modifiers;
68 } 68 }
69 69
70 TEST(WebInputEventConversionTest, WebKeyboardEventBuilder) 70 TEST(WebInputEventConversionTest, WebKeyboardEventBuilder)
71 { 71 {
72 const std::string baseURL("http://www.test0.com/");
73 const std::string fileName("fixed_layout.html");
74
75 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8(fileName.c_str()));
76 FrameTestHelpers::WebViewHelper webViewHelper;
77 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
78 webViewImpl->resize(WebSize(680, 480));
79 webViewImpl->layout();
80
72 // Test key location conversion. 81 // Test key location conversion.
73 int modifiers = getModifiersForKeyLocationCode(KeyboardEvent::DOM_KEY_LOCATI ON_STANDARD); 82 int modifiers = getModifiersForKeyLocationCode(webViewImpl, KeyboardEvent::D OM_KEY_LOCATION_STANDARD);
74 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsLeft || modifiers & WebInputEvent::IsRight); 83 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsLeft || modifiers & WebInputEvent::IsRight);
75 84
76 modifiers = getModifiersForKeyLocationCode(KeyboardEvent::DOM_KEY_LOCATION_L EFT); 85 modifiers = getModifiersForKeyLocationCode(webViewImpl, KeyboardEvent::DOM_K EY_LOCATION_LEFT);
77 EXPECT_TRUE(modifiers & WebInputEvent::IsLeft); 86 EXPECT_TRUE(modifiers & WebInputEvent::IsLeft);
78 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsRight); 87 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsRight);
79 88
80 modifiers = getModifiersForKeyLocationCode(KeyboardEvent::DOM_KEY_LOCATION_R IGHT); 89 modifiers = getModifiersForKeyLocationCode(webViewImpl, KeyboardEvent::DOM_K EY_LOCATION_RIGHT);
81 EXPECT_TRUE(modifiers & WebInputEvent::IsRight); 90 EXPECT_TRUE(modifiers & WebInputEvent::IsRight);
82 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsLeft); 91 EXPECT_FALSE(modifiers & WebInputEvent::IsKeyPad || modifiers & WebInputEven t::IsLeft);
83 92
84 modifiers = getModifiersForKeyLocationCode(KeyboardEvent::DOM_KEY_LOCATION_N UMPAD); 93 modifiers = getModifiersForKeyLocationCode(webViewImpl, KeyboardEvent::DOM_K EY_LOCATION_NUMPAD);
85 EXPECT_TRUE(modifiers & WebInputEvent::IsKeyPad); 94 EXPECT_TRUE(modifiers & WebInputEvent::IsKeyPad);
86 EXPECT_FALSE(modifiers & WebInputEvent::IsLeft || modifiers & WebInputEvent: :IsRight); 95 EXPECT_FALSE(modifiers & WebInputEvent::IsLeft || modifiers & WebInputEvent: :IsRight);
87 } 96 }
88 97
89 TEST(WebInputEventConversionTest, WebMouseEventBuilder) 98 TEST(WebInputEventConversionTest, WebMouseEventBuilder)
90 { 99 {
91 RefPtrWillBeRawPtr<TouchEvent> event = TouchEvent::create(); 100 RefPtrWillBeRawPtr<TouchEvent> event = TouchEvent::create();
92 WebMouseEventBuilder mouse(0, 0, *event); 101 WebMouseEventBuilder mouse(0, 0, *event);
93 EXPECT_EQ(WebInputEvent::Undefined, mouse.type); 102 EXPECT_EQ(WebInputEvent::Undefined, mouse.type);
94 } 103 }
95 104
96 TEST(WebInputEventConversionTest, WebTouchEventBuilder) 105 TEST(WebInputEventConversionTest, WebTouchEventBuilder)
97 { 106 {
98 const std::string baseURL("http://www.test0.com/"); 107 const std::string baseURL("http://www.test1.com/");
99 const std::string fileName("fixed_layout.html"); 108 const std::string fileName("fixed_layout.html");
100 109
101 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 110 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
102 FrameTestHelpers::WebViewHelper webViewHelper; 111 FrameTestHelpers::WebViewHelper webViewHelper;
103 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 112 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
104 int pageWidth = 640; 113 int pageWidth = 640;
105 int pageHeight = 480; 114 int pageHeight = 480;
106 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 115 webViewImpl->resize(WebSize(pageWidth, pageHeight));
107 webViewImpl->layout(); 116 webViewImpl->layout();
108 117
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 218 }
210 RefPtrWillBeRawPtr<TouchEvent> touchEvent = TouchEvent::create(touchList .get(), touchList.get(), touchList.get(), EventTypeNames::touchstart, domWindow, false, false, false, false, false); 219 RefPtrWillBeRawPtr<TouchEvent> touchEvent = TouchEvent::create(touchList .get(), touchList.get(), touchList.get(), EventTypeNames::touchstart, domWindow, false, false, false, false, false);
211 220
212 WebTouchEventBuilder webTouchBuilder(view, documentRenderView, *touchEve nt); 221 WebTouchEventBuilder webTouchBuilder(view, documentRenderView, *touchEve nt);
213 ASSERT_EQ(static_cast<unsigned>(WebTouchEvent::touchesLengthCap), webTou chBuilder.touchesLength); 222 ASSERT_EQ(static_cast<unsigned>(WebTouchEvent::touchesLengthCap), webTou chBuilder.touchesLength);
214 } 223 }
215 } 224 }
216 225
217 TEST(WebInputEventConversionTest, InputEventsScaling) 226 TEST(WebInputEventConversionTest, InputEventsScaling)
218 { 227 {
219 const std::string baseURL("http://www.test.com/"); 228 const std::string baseURL("http://www.test2.com/");
220 const std::string fileName("fixed_layout.html"); 229 const std::string fileName("fixed_layout.html");
221 230
222 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 231 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
223 FrameTestHelpers::WebViewHelper webViewHelper; 232 FrameTestHelpers::WebViewHelper webViewHelper;
224 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 233 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
225 webViewImpl->settings()->setViewportEnabled(true); 234 webViewImpl->settings()->setViewportEnabled(true);
226 int pageWidth = 640; 235 int pageWidth = 640;
227 int pageHeight = 480; 236 int pageHeight = 480;
228 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 237 webViewImpl->resize(WebSize(pageWidth, pageHeight));
229 webViewImpl->layout(); 238 webViewImpl->layout();
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 EXPECT_FLOAT_EQ(3.5, webTouchBuilder.touches[0].position.x); 441 EXPECT_FLOAT_EQ(3.5, webTouchBuilder.touches[0].position.x);
433 EXPECT_FLOAT_EQ(2, webTouchBuilder.touches[0].position.y); 442 EXPECT_FLOAT_EQ(2, webTouchBuilder.touches[0].position.y);
434 EXPECT_FLOAT_EQ(4, webTouchBuilder.touches[0].radiusX); 443 EXPECT_FLOAT_EQ(4, webTouchBuilder.touches[0].radiusX);
435 EXPECT_FLOAT_EQ(4.5, webTouchBuilder.touches[0].radiusY); 444 EXPECT_FLOAT_EQ(4.5, webTouchBuilder.touches[0].radiusY);
436 EXPECT_FALSE(webTouchBuilder.cancelable); 445 EXPECT_FALSE(webTouchBuilder.cancelable);
437 } 446 }
438 } 447 }
439 448
440 TEST(WebInputEventConversionTest, InputEventsTransform) 449 TEST(WebInputEventConversionTest, InputEventsTransform)
441 { 450 {
442 const std::string baseURL("http://www.test2.com/"); 451 const std::string baseURL("http://www.test3.com/");
443 const std::string fileName("fixed_layout.html"); 452 const std::string fileName("fixed_layout.html");
444 453
445 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 454 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
446 FrameTestHelpers::WebViewHelper webViewHelper; 455 FrameTestHelpers::WebViewHelper webViewHelper;
447 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 456 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
448 webViewImpl->settings()->setViewportEnabled(true); 457 webViewImpl->settings()->setViewportEnabled(true);
449 int pageWidth = 640; 458 int pageWidth = 640;
450 int pageHeight = 480; 459 int pageHeight = 480;
451 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 460 webViewImpl->resize(WebSize(pageWidth, pageHeight));
452 webViewImpl->layout(); 461 webViewImpl->layout();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 EXPECT_FLOAT_EQ(110, platformTouchBuilder.touchPoints()[0].screenPos().y ()); 588 EXPECT_FLOAT_EQ(110, platformTouchBuilder.touchPoints()[0].screenPos().y ());
580 EXPECT_FLOAT_EQ(30, platformTouchBuilder.touchPoints()[0].pos().x()); 589 EXPECT_FLOAT_EQ(30, platformTouchBuilder.touchPoints()[0].pos().x());
581 EXPECT_FLOAT_EQ(30, platformTouchBuilder.touchPoints()[0].pos().y()); 590 EXPECT_FLOAT_EQ(30, platformTouchBuilder.touchPoints()[0].pos().y());
582 EXPECT_FLOAT_EQ(10, platformTouchBuilder.touchPoints()[0].radius().width ()); 591 EXPECT_FLOAT_EQ(10, platformTouchBuilder.touchPoints()[0].radius().width ());
583 EXPECT_FLOAT_EQ(10, platformTouchBuilder.touchPoints()[0].radius().heigh t()); 592 EXPECT_FLOAT_EQ(10, platformTouchBuilder.touchPoints()[0].radius().heigh t());
584 } 593 }
585 } 594 }
586 595
587 TEST(WebInputEventConversionTest, InputEventsConversions) 596 TEST(WebInputEventConversionTest, InputEventsConversions)
588 { 597 {
589 const std::string baseURL("http://www.test3.com/"); 598 const std::string baseURL("http://www.test4.com/");
590 const std::string fileName("fixed_layout.html"); 599 const std::string fileName("fixed_layout.html");
591 600
592 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 601 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
593 FrameTestHelpers::WebViewHelper webViewHelper; 602 FrameTestHelpers::WebViewHelper webViewHelper;
594 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 603 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
595 int pageWidth = 640; 604 int pageWidth = 640;
596 int pageHeight = 480; 605 int pageHeight = 480;
597 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 606 webViewImpl->resize(WebSize(pageWidth, pageHeight));
598 webViewImpl->layout(); 607 webViewImpl->layout();
599 608
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 641 }
633 642
634 static void setupVirtualViewportPinch(WebSettings* settings) 643 static void setupVirtualViewportPinch(WebSettings* settings)
635 { 644 {
636 settings->setPinchVirtualViewportEnabled(true); 645 settings->setPinchVirtualViewportEnabled(true);
637 settings->setAcceleratedCompositingEnabled(true); 646 settings->setAcceleratedCompositingEnabled(true);
638 } 647 }
639 648
640 TEST(WebInputEventConversionTest, PinchViewportOffset) 649 TEST(WebInputEventConversionTest, PinchViewportOffset)
641 { 650 {
642 const std::string baseURL("http://www.test4.com/"); 651 const std::string baseURL("http://www.test5.com/");
643 const std::string fileName("fixed_layout.html"); 652 const std::string fileName("fixed_layout.html");
644 653
645 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 654 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
646 FrameTestHelpers::WebViewHelper webViewHelper; 655 FrameTestHelpers::WebViewHelper webViewHelper;
647 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true, 0, 0, setupVirtualViewportPinch); 656 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true, 0, 0, setupVirtualViewportPinch);
648 int pageWidth = 640; 657 int pageWidth = 640;
649 int pageHeight = 480; 658 int pageHeight = 480;
650 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 659 webViewImpl->resize(WebSize(pageWidth, pageHeight));
651 webViewImpl->layout(); 660 webViewImpl->layout();
652 661
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 PlatformTouchEventBuilder platformTouchBuilder(view, webTouchEvent); 733 PlatformTouchEventBuilder platformTouchBuilder(view, webTouchEvent);
725 EXPECT_FLOAT_EQ(10.6f, platformTouchBuilder.touchPoints()[0].screenPos() .x()); 734 EXPECT_FLOAT_EQ(10.6f, platformTouchBuilder.touchPoints()[0].screenPos() .x());
726 EXPECT_FLOAT_EQ(10.4f, platformTouchBuilder.touchPoints()[0].screenPos() .y()); 735 EXPECT_FLOAT_EQ(10.4f, platformTouchBuilder.touchPoints()[0].screenPos() .y());
727 EXPECT_FLOAT_EQ(5.3f + pinchOffset.x(), platformTouchBuilder.touchPoints ()[0].pos().x()); 736 EXPECT_FLOAT_EQ(5.3f + pinchOffset.x(), platformTouchBuilder.touchPoints ()[0].pos().x());
728 EXPECT_FLOAT_EQ(5.2f + pinchOffset.y(), platformTouchBuilder.touchPoints ()[0].pos().y()); 737 EXPECT_FLOAT_EQ(5.2f + pinchOffset.y(), platformTouchBuilder.touchPoints ()[0].pos().y());
729 } 738 }
730 } 739 }
731 740
732 TEST(WebInputEventConversionTest, WebMouseWheelEventBuilder) 741 TEST(WebInputEventConversionTest, WebMouseWheelEventBuilder)
733 { 742 {
734 const std::string baseURL("http://www.test5.com/"); 743 const std::string baseURL("http://www.test6.com/");
735 const std::string fileName("fixed_layout.html"); 744 const std::string fileName("fixed_layout.html");
736 745
737 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 746 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
738 FrameTestHelpers::WebViewHelper webViewHelper; 747 FrameTestHelpers::WebViewHelper webViewHelper;
739 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 748 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
740 int pageWidth = 640; 749 int pageWidth = 640;
741 int pageHeight = 480; 750 int pageHeight = 480;
742 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 751 webViewImpl->resize(WebSize(pageWidth, pageHeight));
743 webViewImpl->layout(); 752 webViewImpl->layout();
744 753
(...skipping 10 matching lines...) Expand all
755 EXPECT_EQ(6, webMouseWheel.globalY); 764 EXPECT_EQ(6, webMouseWheel.globalY);
756 EXPECT_EQ(10, webMouseWheel.windowX); 765 EXPECT_EQ(10, webMouseWheel.windowX);
757 EXPECT_EQ(30, webMouseWheel.windowY); 766 EXPECT_EQ(30, webMouseWheel.windowY);
758 EXPECT_TRUE(webMouseWheel.scrollByPage); 767 EXPECT_TRUE(webMouseWheel.scrollByPage);
759 EXPECT_EQ(WebInputEvent::ControlKey, webMouseWheel.modifiers); 768 EXPECT_EQ(WebInputEvent::ControlKey, webMouseWheel.modifiers);
760 EXPECT_TRUE(webMouseWheel.canScroll); 769 EXPECT_TRUE(webMouseWheel.canScroll);
761 } 770 }
762 771
763 TEST(WebInputEventConversionTest, PlatformWheelEventBuilder) 772 TEST(WebInputEventConversionTest, PlatformWheelEventBuilder)
764 { 773 {
765 const std::string baseURL("http://www.test6.com/"); 774 const std::string baseURL("http://www.test7.com/");
766 const std::string fileName("fixed_layout.html"); 775 const std::string fileName("fixed_layout.html");
767 776
768 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html")); 777 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("fixed_layout.html"));
769 FrameTestHelpers::WebViewHelper webViewHelper; 778 FrameTestHelpers::WebViewHelper webViewHelper;
770 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true); 779 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(baseURL + fileNam e, true);
771 int pageWidth = 640; 780 int pageWidth = 640;
772 int pageHeight = 480; 781 int pageHeight = 480;
773 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 782 webViewImpl->resize(WebSize(pageWidth, pageHeight));
774 webViewImpl->layout(); 783 webViewImpl->layout();
775 784
(...skipping 14 matching lines...) Expand all
790 EXPECT_EQ(0, platformWheelBuilder.position().x()); 799 EXPECT_EQ(0, platformWheelBuilder.position().x());
791 EXPECT_EQ(5, platformWheelBuilder.position().y()); 800 EXPECT_EQ(5, platformWheelBuilder.position().y());
792 EXPECT_EQ(10, platformWheelBuilder.deltaX()); 801 EXPECT_EQ(10, platformWheelBuilder.deltaX());
793 EXPECT_EQ(15, platformWheelBuilder.deltaY()); 802 EXPECT_EQ(15, platformWheelBuilder.deltaY());
794 EXPECT_EQ(WebInputEvent::ControlKey, platformWheelBuilder.modifiers()); 803 EXPECT_EQ(WebInputEvent::ControlKey, platformWheelBuilder.modifiers());
795 EXPECT_TRUE(platformWheelBuilder.hasPreciseScrollingDeltas()); 804 EXPECT_TRUE(platformWheelBuilder.hasPreciseScrollingDeltas());
796 EXPECT_TRUE(platformWheelBuilder.canScroll()); 805 EXPECT_TRUE(platformWheelBuilder.canScroll());
797 } 806 }
798 } 807 }
799 } // anonymous namespace 808 } // anonymous namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698