[Webkit-unassigned] [Bug 84961] [GTK] TestWebKitAPI/WebKit2/TestSpacebarScrolling fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 28 14:57:37 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84961


Roger Fong <roger_fong at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger_fong at apple.com




--- Comment #2 from Roger Fong <roger_fong at apple.com>  2012-09-28 14:58:03 PST ---
This also breaks on the Apple Windows port.

I got it to work by adding the second call to EXPECT_JS_TRUE(webView.page(), "textFieldContainsSpace()") to after the call to isDocumentScrolled. At least on Windows if you don't re-enter the javascript context first after simulating the space bar key press the document won't actually scroll.

I thought it could have been a timing thing at first so I put a nice long loop into the SpaceBarScrolling.cpp could right before the failing EXPECT_JS_TRUE to see if it the page just didn't have time to scroll before the check. It still failed. So there's probably something goofy going on with the Windows TestWebKitAPI support, but for now, just switching the two lines will make the test pass. 

Maybe it will work on gtk as well...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list