[Webkit-unassigned] [Bug 35350] New: DumpRenderTree should allow tests with modal dialogs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 24 11:13:56 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35350

           Summary: DumpRenderTree should allow tests with modal dialogs
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jamesr at chromium.org


We probably have bugs regarding modal dialogs that are impossible to test with
DRT currently.  See https://bugs.webkit.org/show_bug.cgi?id=33962 for an
example of something that's not possible to test currently.  DumpRenderTree
should allow writing tests for things like these.

For window.showModalDialog() tests, there isn't much work to do as long as the
opened window window.close()s itself.  To test window.confirm() or
window.alert() we'll need some API exposed to script that ensures that the
dialog self-closes.  For example, the test in 33962 using window.alert() would
have to look something like this:

// test setup code
if (layoutTestController)
  layoutTestController.closeNextModalDialogAfter(1); // schedule next modal
dialog to close itself after running for 1ms, to ensure that the event queue
pumps
window.alert("When running manually hit OK to close this");
// make assertions about what happened while the modal dialog is up

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list