Don't hang in WebKitAPITest if no messages have been posted
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2010 18:14:35 +0000 (18:14 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2010 18:14:35 +0000 (18:14 +0000)
commit1afda216865328c7694f3e9621f0cfa9d6cedf71
tree0ee70e2ae42449c9662c42b76eed5f2d7eb365df
parent162ec294e10a79627c86083b9e12e79b4ab601db
Don't hang in WebKitAPITest if no messages have been posted

Part of <http://webkit.org/b/33212> Small fixes/improvements to
WebKitAPITest

Reviewed by Sam Weinig.

* WebKitAPITest/tests/WebViewDestruction.cpp:
(WebKitAPITest::runMessagePump): Use PeekMessage instead of GetMessage
to avoid hanging if no messages have been posted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@52803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/WebKitAPITest/tests/WebViewDestruction.cpp