[webkit-dev] how to create a test that can perform actions while resources are still loading?
Jenn Braithwaite (胡慧鋒)
jennb at google.com
Wed Oct 6 16:36:48 PDT 2010
I am trying to create a layout test that has 2 pages, each containing an
iframe. I need to perform the main actions while both iframes are still
Does anyone know how I can do this?
I've tried opening 2 pages (via window.open) that contain iframes, and
performing the actions in the window onload handler for those pages. The
iframes may or may not have finished loading when I get to the onload
handler. I need something that guarantees both iframes are still loading
before I take action.
I've also tried making this an http test using a slow loading iframe, but
the window onload handler for the page does not run until after its iframe
has finished loading. (surprisingly)
I'm stuck. Hoping someone on this list can help...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev