[webkit-dev] Sharing WebKit mocks across platforms
ap at webkit.org
Wed Oct 27 12:07:49 PDT 2010
02.08.2010, в 4:38, Alexey Proskuryakov написал(а):
> 29.07.2010, в 8:16, Adam Barth написал(а):
>> Plumbing this mock API all the way through WebKit for each port seems like a waste.
> One benefit of this is that it makes us test the API layer. Another one is that it gives WebKit developers better familiarity with APIs - that's not as minor as it sounds, as some of us (including myself) have limited knowledge of WebKit APIs, even for their favorite platform.
> It certainly seems like a waste when private methods are added just for DumpRenderTree support. But maybe it has prompted an API introduction a few times before, I just don't know.
> This is all getting much better with WebKit2's cross-platform API, although of course we'll need to support current APIs for a long time.
This thread died, but I still don't feel good about mock objects in WebCore. Having test infrastructure in WebCore means shipping unused code in the framework, and as mentioned before, we lack testing of the API layer.
We're now getting more mock objects in the tree, such as one for speech synthesis testing.
- WBR, Alexey Proskuryakov
More information about the webkit-dev