| Index: content/browser/renderer_host/input/non_blocking_event_browsertest.cc
|
| diff --git a/content/browser/renderer_host/input/non_blocking_event_browsertest.cc b/content/browser/renderer_host/input/non_blocking_event_browsertest.cc
|
| index c68191409f965bfd46e1451acd38b6f2173ef165..0f4fac2141c15b1f4c0551276e2ee02ecde5f251 100644
|
| --- a/content/browser/renderer_host/input/non_blocking_event_browsertest.cc
|
| +++ b/content/browser/renderer_host/input/non_blocking_event_browsertest.cc
|
| @@ -33,6 +33,11 @@ using blink::WebInputEvent;
|
|
|
| namespace {
|
|
|
| +// This value has to be larger than the height of the device this test is
|
| +// executed on, otherwise the device will be unable to scroll thus failing
|
| +// tests.
|
| +const int kWebsiteHeight = 10000;
|
| +
|
| const char kNonBlockingEventDataURL[] =
|
| "data:text/html;charset=utf-8,"
|
| "<!DOCTYPE html>"
|
| @@ -41,7 +46,7 @@ const char kNonBlockingEventDataURL[] =
|
| "html, body {"
|
| " margin: 0;"
|
| "}"
|
| - ".spacer { height: 1000px; }"
|
| + ".spacer { height: 10000px; }"
|
| "</style>"
|
| "<div class=spacer></div>"
|
| "<script>"
|
| @@ -110,7 +115,7 @@ class NonBlockingEventBrowserTest : public ContentBrowserTest {
|
|
|
| int scrollHeight =
|
| ExecuteScriptAndExtractInt("document.documentElement.scrollHeight");
|
| - EXPECT_EQ(1000, scrollHeight);
|
| + EXPECT_EQ(kWebsiteHeight, scrollHeight);
|
|
|
| scoped_refptr<FrameWatcher> frame_watcher(new FrameWatcher());
|
| GetWidgetHost()->GetProcess()->AddFilter(frame_watcher.get());
|
| @@ -135,7 +140,7 @@ class NonBlockingEventBrowserTest : public ContentBrowserTest {
|
|
|
| int scrollHeight =
|
| ExecuteScriptAndExtractInt("document.documentElement.scrollHeight");
|
| - EXPECT_EQ(1000, scrollHeight);
|
| + EXPECT_EQ(kWebsiteHeight, scrollHeight);
|
|
|
| scoped_refptr<FrameWatcher> frame_watcher(new FrameWatcher());
|
| GetWidgetHost()->GetProcess()->AddFilter(frame_watcher.get());
|
|
|