Re: [webkit-dev] Calling JavaScript function from within DumpRenderTree

2010-01-02 Thread Chris Fleizach
On Jan 2, 2010, at 1:34 AM, Maciej Stachowiak wrote: > > On Jan 1, 2010, at 9:25 PM, Sam Weinig wrote: > >> >> That said, a more javascripty way to do this would be to pass the function >> object to liveRegion.addNotificationListener itself. That way, in the test >> file, you would have, >>

Re: [webkit-dev] Calling JavaScript function from within DumpRenderTree

2010-01-02 Thread Maciej Stachowiak
On Jan 1, 2010, at 9:25 PM, Sam Weinig wrote: That said, a more javascripty way to do this would be to pass the function object to liveRegion.addNotificationListener itself. That way, in the test file, you would have, liveRegion.addNotificationListener(function(notification) { // do

Re: [webkit-dev] Calling JavaScript function from within DumpRenderTree

2010-01-01 Thread Sam Weinig
On Fri, Jan 1, 2010 at 7:13 PM, Chris Fleizach wrote: > I need to have a layout test register a callback with DRT, then have that > callback be called at the appropriate time (in order to test accessibility > notifications) > > I can't figure out the right incantations to do so. > > I'd like to d

[webkit-dev] Calling JavaScript function from within DumpRenderTree

2010-01-01 Thread Chris Fleizach
I need to have a layout test register a callback with DRT, then have that callback be called at the appropriate time (in order to test accessibility notifications) I can't figure out the right incantations to do so. I'd like to do something like this in the LayoutTest var addedNotification =