Add a test for r179736 (programmatic navigation during swipe causing a crash)
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2015 22:09:57 +0000 (22:09 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2015 22:09:57 +0000 (22:09 +0000)
commit0ba6db161291077f51dd27766bd8c81ca95ae76d
tree3ea27c3cc66631ffb10e605e77ca6157a0d75856
parent996d3b59cc6408a9a744deef400b31309cf7dd3b
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!

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/swipe/basic-cached-back-swipe.html
LayoutTests/swipe/pushState-cached-back-swipe.html
LayoutTests/swipe/pushState-programmatic-back-while-swiping-crash-expected.txt [new file with mode: 0644]
LayoutTests/swipe/pushState-programmatic-back-while-swiping-crash.html [new file with mode: 0644]
LayoutTests/swipe/resources/swipe-test.js
LayoutTests/swipe/swipe-start-hysteresis-failures.html
Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp