[Webkit-unassigned] [Bug 42612] DRT should allow test scripts to access WebCore internal states for setup/verification

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 3 19:19:28 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42612





--- Comment #27 from MORITA Hajime <morrita at google.com>  2010-08-03 19:19:27 PST ---
Adam, Darin, thank you for your feedback! - and sorry for slow reply.

The last patch split test-specific code out from WebCore.framework into WebCoreTesting.framework.
An idea is:
- WebCore providing hook interface and JS stub for that.
- WebCoreTesting use that interface to inject a test-specific code
- WebKit provide a API for WebCoreTesting, while linking WebCoreTesting.framework with "weak" linkage,
   that allow us to ship WebKit.framework without WebCoreTesting.framework.

The source code for WebKitTesting still stays WebCore/testing/ and built inside WebCore.xcodeproj
So it can access WebCore APIs.
A tradeoff is that we need to expose WebCore APIs that are required by WebCoreTesting.
But I think it need less hassle than wrapping and exposing it via WebKit.

I'm not sure if weak linkage is available for other port 
but I believe there are some workaround for that. 
(i.e. just built WebCore/testing/* into DRT.)

Any ideas and feedbacks are welcome!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list