[webkit-dev] Running WebGL layout tests

Chris Marrin cmarrin at apple.com
Wed Nov 11 07:31:26 PST 2009

On Nov 3, 2009, at 12:35 PM, Kenneth Russell wrote:

> Hi,
> Trying to run the WebGL layout tests in LayoutTests/fast/canvas/webgl.
> Here's the command line I'm using:
> run-webkit-tests --debug LayoutTests/fast/canvas/webgl/[test  
> name.html]
> (I built WebKit --debug.)
> All of the tests fail while attempting to fetch the 3D context.
> (TypeError: Result of expression 'context' [undefined] is not an
> object.) The same tests run fine when run under "run-safari --debug".
> Do I need to do some other "defaults write" or other setup to allow
> the layout test harness to run with WebGL enabled?

So you're saying that the overridePreferences() call is no longer  
turning on the "WebKitWebGLEnabled" flag in DRT? That's what should  
turn on the option. What happens if you run:

     defaults write com.apple.Safari WebKitWebGLEnabled -bool YES

and then run layout tests?

cmarrin at apple.com

More information about the webkit-dev mailing list