This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
swipe
/
pushState-programmatic-back...
5 lines
54 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Swipe gesture tests don't work on macOS Sierra https://bugs.webkit.org/show_bug.cgi?id=161675 <rdar://problem/23379930> Reviewed by Darin Adler. Tools: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptController::platformPlayBackEventStream): (WTR::UIScriptController::beginBackSwipe): (WTR::UIScriptController::completeBackSwipe): * TestRunnerShared/EventSerialization/mac/EventSerializerMac.h: Copied from Tools/DumpRenderTree/mac/UIScriptControllerMac.mm. * TestRunnerShared/EventSerialization/mac/EventSerializerMac.mm: Added. (eventIsOfType): (eventIsOfTypes): (eventIsOfGestureType): (eventIsOfGestureTypes): (+[EventSerializer dictionaryForEvent:relativeToTime:]): (+[EventSerializer createEventForDictionary:inWindow:relativeToTime:]): (+[EventSerializer playEventStream:inWindow:completionHandler:]): * TestRunnerShared/EventSerialization/mac/SharedEventStreamsMac.h: Copied from Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm. * TestRunnerShared/EventSerialization/mac/SharedEventStreamsMac.mm: Added. (beginSwipeBackEventStream): (completeSwipeBackEventStream): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.cpp: (WTR::UIScriptController::playBackEventStream): (WTR::UIScriptController::beginBackSwipe): (WTR::UIScriptController::completeBackSwipe): (WTR::UIScriptController::platformPlayBackEventStream): (WTR::UIScriptController::platformClearAllCallbacks): Deleted. * TestRunnerShared/UIScriptContext/UIScriptController.h: * TestRunnerShared/spi/CoreGraphicsSPI.h: Added. * TestRunnerShared/spi/IOKitSPI.h: Renamed from Tools/WebKitTestRunner/ios/IOKitSPI.h. * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::playBackEvents): (WTR::UIScriptController::beginBackSwipe): (WTR::UIScriptController::completeBackSwipe): (WTR::UIScriptController::platformPlayBackEventStream): LayoutTests: * platform/mac-wk2/TestExpectations: * swipe/basic-cached-back-swipe-expected.txt: * swipe/basic-cached-back-swipe.html: * swipe/main-frame-pinning-requirement-expected.txt: * swipe/main-frame-pinning-requirement.html: * swipe/pushState-cached-back-swipe-expected.txt: * swipe/pushState-cached-back-swipe.html: * swipe/pushState-programmatic-back-while-swiping-crash-expected.txt: * swipe/pushState-programmatic-back-while-swiping-crash.html: * swipe/resources/swipe-test.js: (measuredDurationShouldBeLessThan): (startSwipeGesture): (completeSwipeGesture): (playEventStream): (eventQueue.enqueueScrollEvent): Deleted. (eventQueue.enqueueSwipeEvent): Deleted. (eventQueue.hasPendingEvents): Deleted. (eventQueue.callAfterEventDispatch): Deleted. (eventQueue._processEventQueue): Deleted. (eventQueue._processEventQueueSoon): Deleted. * swipe/swipe-start-hysteresis-failures-expected.txt: Removed. * swipe/swipe-start-hysteresis-failures.html: Removed. Canonical link: https://commits.webkit.org/187185@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-30 01:05:58 +00:00
playEventStream
playEventStream
completeSwipeGesture
Add a test for r179736 (programmatic navigation during swipe causing a crash) https://bugs.webkit.org/show_bug.cgi?id=148830 Reviewed by Beth Dakin. * swipe/basic-cached-back-swipe.html: * swipe/pushState-cached-back-swipe.html: * swipe/resources/swipe-test.js: (eventQueue.callAfterEventDispatch): (initializeSwipeTest): (initializeLog): Deleted. * swipe/swipe-start-hysteresis-failures.html: Refactor some things. Make sure that we reset the back forward list before testing, because we expect to start at the "first" item, but there is actually a about:blank before us. * swipe/pushState-programmatic-back-while-swiping-crash-expected.txt: Added. * swipe/pushState-programmatic-back-while-swiping-crash.html: Added. Add a test that ensures that r179736 does not recur. * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::beginTesting): Make sure that TestRunner callbacks don't leak between tests! Canonical link: https://commits.webkit.org/166946@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-04 22:09:57 +00:00