Bug 159342 - [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out.
Summary: [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 04:12 PDT by Per Arne Vollan
Modified: 2016-07-19 04:01 PDT (History)
3 users (show)

See Also:


Attachments
Patch (7.82 KB, patch)
2016-07-01 04:26 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (6.54 KB, patch)
2016-07-04 02:49 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (5.32 KB, patch)
2016-07-18 06:54 PDT, Per Arne Vollan
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2016-07-01 04:12:52 PDT
We need to implement the event sender functions monitorWheelEvents and callAfterScrollingCompletes.
Comment 1 Per Arne Vollan 2016-07-01 04:26:36 PDT
Created attachment 282536 [details]
Patch
Comment 2 Per Arne Vollan 2016-07-04 02:49:08 PDT
Created attachment 282698 [details]
Patch
Comment 3 Brent Fulgham 2016-07-07 11:44:52 PDT
Comment on attachment 282698 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=282698&action=review

> Source/WebCore/ChangeLog:9
> +        Implement a way to find the core Frame from the document list.

Did you try using the "core(WebFrame*)" function? I think this would do what you want, and be consistent with how the macOS version of this works.

> Source/WebCore/testing/js/WebCoreTestSupport.h:54
> +void setTestCallbackAndStartNotificationTimer(JSContextRef, JSObjectRef) TEST_SUPPORT_EXPORT;

You might not need this...

> Tools/DumpRenderTree/win/EventSender.cpp:827
> +    WebCoreTestSupport::setTestCallbackAndStartNotificationTimer(globalContext, jsCallbackFunction);

Could you pass the WebCore::Frame backing the IWebFrame object to the existing WebCoreTestSupport::setTestCallbackAndStartNotificationTimer?

See the "core(WebFrame*)" method in WebFrame.h.
Comment 4 Per Arne Vollan 2016-07-12 06:36:06 PDT
(In reply to comment #3)
> Comment on attachment 282698 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=282698&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        Implement a way to find the core Frame from the document list.
> 
> Did you try using the "core(WebFrame*)" function? I think this would do what
> you want, and be consistent with how the macOS version of this works.
> 
> > Source/WebCore/testing/js/WebCoreTestSupport.h:54
> > +void setTestCallbackAndStartNotificationTimer(JSContextRef, JSObjectRef) TEST_SUPPORT_EXPORT;
> 
> You might not need this...
> 
> > Tools/DumpRenderTree/win/EventSender.cpp:827
> > +    WebCoreTestSupport::setTestCallbackAndStartNotificationTimer(globalContext, jsCallbackFunction);
> 
> Could you pass the WebCore::Frame backing the IWebFrame object to the
> existing WebCoreTestSupport::setTestCallbackAndStartNotificationTimer?
> 
> See the "core(WebFrame*)" method in WebFrame.h.

I would like to use this, although wouldn't this mean crossing some boundary, since WebFrame and WebCore::Frame are not part of the COM api?

Thanks for reviewing!
Comment 5 Per Arne Vollan 2016-07-18 06:54:02 PDT
Created attachment 283907 [details]
Patch
Comment 6 Per Arne Vollan 2016-07-19 04:00:22 PDT
Thanks for reviewing!
Comment 7 Per Arne Vollan 2016-07-19 04:01:56 PDT
Committed r203403: <http://trac.webkit.org/changeset/203403>