There's also a few in-process browser tests in
chrome/browser/browser_browsertest.cc that call alert and dismiss the dialog
as part of testing something else, though they don't explicitly test aspects
of alert's behavior.  Just search for "alert" in that file to see how to
use ui_test_utils::WaitForAppModalDialog(), etc.

Charlie


On Mon, Jan 4, 2010 at 11:12 AM, Evan Stade <[email protected]> wrote:

> See the ClickAppModalDialogButton automation IPC message (implementation is
> in chrome/browser/automation_provider.cc). I don't see any specifically
> testing just that message, and I don't see any in-process browser tests
> covering javascript alerts. Creating
> chrome/browser/app_modal_dialog_unittest.cc might be a good place to start
> start.
>
> -- Evan Stade @ chromium
>
>
>
> On Sun, Jan 3, 2010 at 11:28 PM, n179911 <[email protected]> wrote:
>
>> Hi,
>>
>> Is there any Unit test in chromium which test javascript alert?
>> Does it have automated test case which automatically clicks the pop up
>> dialog cased by javascript alert?
>>
>> Thank you.
>>
>> --
>> Chromium Developers mailing list: [email protected]
>> View archives, change email options, or unsubscribe:
>>    http://groups.google.com/group/chromium-dev
>>
>
>  --
> Chromium Developers mailing list: [email protected]
> View archives, change email options, or unsubscribe:
> http://groups.google.com/group/chromium-dev
>

-- 
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to