Loading URL's in to TestWebView is racy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
New
|
Undecided
|
Unassigned |
Bug Description
There are lots of this pattern in tests:
webView.url = <some_url>;
verify(
TestWebView tracks successful loads with qtest_loadsSucc
As these counts get out of sync, we have another function - clearLoadEventC
It might be better to add a new call to TestWebView (loadUrlAndWait, or something like that), which:
- Stops pending loads and waits for them to stop.
- Loads WebView.url
- Waits for the load to succeed.
It would probably be easier to make this more reliable and race free.