Bug 101195 - Web Inspector: Flakyness in http/tests/inspector/network/network-initiator-from-console.html
Summary: Web Inspector: Flakyness in http/tests/inspector/network/network-initiator-fr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 02:11 PST by Raphael Kubo da Costa (:rakuco)
Modified: 2012-11-06 06:09 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa (:rakuco) 2012-11-05 02:11:35 PST
This is mostly about the EFL-WK2 port; the test is already skipped by a few ports, but there are no related bug reports in their TestExpectations files so I don't know if they have the same issue.

Every once in a while, http/tests/inspector/network/network-initiator-from-console.html fails on the bot (it's easier for me to reproduce it locally) because the console message indicating script.js has been loaded is not printed:

--- /tmp/wk-ltr-tmp/http/tests/inspector/network/network-initiator-from-console-expected.txt
+++ /tmp/wk-ltr-tmp/http/tests/inspector/network/network-initiator-from-console-actual.txt
@@ -1,4 +1,3 @@
-CONSOLE MESSAGE: line 1: Done.
 Tests that there is no javascript error when console evaluation causes resource loading.
 
 Bug 65466

After some debugging, it looks like InspectorTest.completeTest() is called before the request to script.js is fully processed, so the call to console.log("Done.") is made after InspectorTest.completeTest() has already teared everything down.

It happens much more often if Xvfb is used to run WebKitTestRunner: when the running X session is used instead, everything goes as expected and the call to WebInspector.panel("network").show() seems to "block" until script.js is fully processed. Speaking of that, using setTimeout(InspectorTest.completeTest, 0) instead of a direct call to that function seems to solve the problem with Xvfb.

I'm not very familiar with the inspector area of WebKit, but I'd be more than glad to help with this one.
Comment 1 Vsevolod Vlasov 2012-11-06 06:09:07 PST
Committed r133595: <http://trac.webkit.org/changeset/133595>