[webkit-dev] Question about Constructors in WebKit JS Bindings
Darin Adler
darin at apple.com
Tue Jun 23 10:44:01 PDT 2009
On Jun 23, 2009, at 10:41 AM, Maciej Stachowiak wrote:
> On Jun 22, 2009, at 11:58 PM, Adam Barth wrote:
>
>> I don't really know how to solve this problem except by writing
>> tests. However, tests don't really help when introducing new kinds
>> of objects (e.g., workers, database transactions).
Perhaps it's possible to write a test that both checks which global
object is used for every constructor, and checks that the test covers
all constructors at the same time. Maybe there is a practical way to
iterate the constructors, as long as we create an exception list of
objects that look like constructors but are not.
Tests are the bests.
-- Darin
More information about the webkit-dev
mailing list