OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "core/dom/ClientRect.h" | 32 #include "core/dom/ClientRect.h" |
33 #include "core/frame/FrameHost.h" | 33 #include "core/frame/FrameHost.h" |
34 #include "core/frame/FrameView.h" | 34 #include "core/frame/FrameView.h" |
35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
36 #include "core/frame/VisualViewport.h" | 36 #include "core/frame/VisualViewport.h" |
37 #include "core/page/Page.h" | 37 #include "core/page/Page.h" |
38 #include "platform/testing/URLTestHelpers.h" | 38 #include "platform/testing/URLTestHelpers.h" |
39 #include "platform/testing/UnitTestHelpers.h" | 39 #include "platform/testing/UnitTestHelpers.h" |
40 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
| 41 #include "public/platform/WebCache.h" |
41 #include "public/platform/WebURLLoaderMockFactory.h" | 42 #include "public/platform/WebURLLoaderMockFactory.h" |
42 #include "public/web/WebCache.h" | |
43 #include "public/web/WebElement.h" | 43 #include "public/web/WebElement.h" |
44 #include "public/web/WebSettings.h" | 44 #include "public/web/WebSettings.h" |
45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 #include "web/WebLocalFrameImpl.h" | 47 #include "web/WebLocalFrameImpl.h" |
48 #include "web/tests/FrameTestHelpers.h" | 48 #include "web/tests/FrameTestHelpers.h" |
49 | 49 |
50 namespace blink { | 50 namespace blink { |
51 | 51 |
52 // These tests cover browser controls scrolling on main-thread. | 52 // These tests cover browser controls scrolling on main-thread. |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 view->setScrollOffset(view->getScrollOffset(), ProgrammaticScroll); | 1000 view->setScrollOffset(view->getScrollOffset(), ProgrammaticScroll); |
1001 | 1001 |
1002 ASSERT_EQ(80.f, webView->browserControls().contentOffset()); | 1002 ASSERT_EQ(80.f, webView->browserControls().contentOffset()); |
1003 EXPECT_EQ(expectedRootOffset, rootViewport->getScrollOffset().height()); | 1003 EXPECT_EQ(expectedRootOffset, rootViewport->getScrollOffset().height()); |
1004 | 1004 |
1005 webView->handleInputEvent(generateEvent(WebInputEvent::GestureScrollEnd)); | 1005 webView->handleInputEvent(generateEvent(WebInputEvent::GestureScrollEnd)); |
1006 } | 1006 } |
1007 } | 1007 } |
1008 | 1008 |
1009 } // namespace blink | 1009 } // namespace blink |
OLD | NEW |