Bug 36610 - [Web Inspector] Allow running tests with enabled developer extras and closed Web Inspector
Summary: [Web Inspector] Allow running tests with enabled developer extras and closed ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 10:13 PDT by Yury Semikhatsky
Modified: 2010-03-25 13:21 PDT (History)
4 users (show)

See Also:


Attachments
patch (15.88 KB, patch)
2010-03-25 11:06 PDT, Yury Semikhatsky
pfeldman: review+
Details | Formatted Diff | Diff
patch (16.48 KB, patch)
2010-03-25 12:27 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Semikhatsky 2010-03-25 10:13:53 PDT
All current inspector layout tests have Web Inspector opened before the test page starts loading. Also "developer extras" feature state is tightly coupled with Web Inspector window state and it's impossible to have InspectorController enabled but Web Inspector closed. However, there is number of cases where inspector behavior depends on whether Web Inspector is open after the inspected page has done something or it is already open by the time the page starts to load. Would be nice to have tests where developer exrtas are on but Web Inspector could be open by the test when it's appropriate.
Comment 1 Yury Semikhatsky 2010-03-25 10:43:04 PDT
(In reply to comment #0)
> All current inspector layout tests have Web Inspector opened before the test
> page starts loading. Also "developer extras" feature state is tightly coupled
> with Web Inspector window state and it's impossible to have InspectorController
> enabled but Web Inspector closed. However, there is number of cases where
> inspector behavior depends on whether Web Inspector is open after the inspected
> page has done something or it is already open by the time the page starts to
> load. Would be nice to have tests where developer exrtas are on but Web
> Inspector could be open by the test when it's appropriate.
Comment 2 Yury Semikhatsky 2010-03-25 11:06:46 PDT
Created attachment 51660 [details]
patch
Comment 3 Csaba Osztrogonác 2010-03-25 11:12:56 PDT
Attachment 51660 [details] did not build on qt:
Build output: http://webkit-commit-queue.appspot.com/results/1367002
Comment 4 Pavel Feldman 2010-03-25 11:17:51 PDT
Comment on attachment 51660 [details]
patch

> -    g_object_set(webSettings, "enable-developer-extras", TRUE, NULL);

There is a tear down for other functions even though there is a reset before the subsequent test.
Comment 5 Yury Semikhatsky 2010-03-25 12:27:25 PDT
Created attachment 51670 [details]
patch

Fixed Qt build.
Comment 6 Yury Semikhatsky 2010-03-25 13:21:27 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebKitTools/ChangeLog
	M	WebKitTools/DumpRenderTree/LayoutTestController.h
	M	WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp
	M	WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
	M	WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm
	M	WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
	M	WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
	M	WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
	M	WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
	M	WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp
	M	WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
Committed r56566