[webkit-dev] Use PyObjC so we can test our Objective-C API in a way similar to layout tests?

Curt Arnold curt.arnold at mac.com
Sat Aug 6 17:25:51 PDT 2005


On Aug 6, 2005, at 1:41 PM, Darin Adler wrote:

> I'd like to see us figure out a way to use PyObjC or some other  
> similar technology to do tests that are like our layout tests. This  
> would be superior to actual Objective-C because we wouldn't have to  
> compile all the test programs. Recently I've been seeing an  
> increasing number of bugs in our Objective-C DOM and wanting tests  
> that could regression test that the way our layout tests can do  
> regression tests for JavaScript and HTML issues.
>
> Anyone interested in this? Any thoughts on whether it's practical?


Since you mentioned DOM in particular, Andrew Clover wrote a Python  
interpreter for the DOM Test Suite (http://www.doxdesk.com/software/ 
py/domts.html).

It would also be possible to generate Python (or Objective-C) test  
code from the DOM Test Suite.  I thought that it might be preferable  
for debugging to actually do it as compiled Objective-C since it  
could be easier to step through from the test code to the  
implementation.



More information about the webkit-dev mailing list