Bug 148036 - Web Inspector: convert tests in http/tests/inspector/ to use inspector-test.js
Summary: Web Inspector: convert tests in http/tests/inspector/ to use inspector-test.js
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 147955
Blocks: InspectorTest
  Show dependency treegraph
 
Reported: 2015-08-14 13:10 PDT by BJ Burg
Modified: 2016-12-13 15:37 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2015-08-14 13:10:46 PDT
After www.webkit.org/b/147955 lands, these tests will no longer work when using protocol-test.js.
With that change, the inspector page (TestStub.html) will be a local file loaded from the WebInspectorUI bundle, thus causing problems for http tests which run from http://localhost/. 

There are some workarounds, such as testRunner.addOriginAccessWhitelistEntry, but this currently crashes on WK2. It will be easier to rewrite the tests to use inspector-test.js, which loads a full Inspector instance (Test.html) which can easily load local files.
Comment 1 Radar WebKit Bug Importer 2015-08-14 13:11:31 PDT
<rdar://problem/22292122>