tests/ceftests/jsdialog_unittest.cc
// Confirm dialog run immediately return OK.
Confirm dialog run immediately return OK.
Confirm dialog run immediately return OK .
TEST(JSDialogTest, ConfirmRunImmediateOk) {
  CefRefPtr<JSDialogTestHandler> handler =
      new JSDialogTestHandler(JSDialogTestHandler::TYPE_CONFIRM,
                              JSDialogTestHandler::MODE_RUN_IMMEDIATE,
                              true,   
                              "",     
                              "ok");  
  handler->ExecuteTest();
  EXPECT_TRUE(handler->got_onjsdialog_);
  EXPECT_FALSE(handler->got_onbeforeunloaddialog_);
  EXPECT_TRUE(handler->got_onresetdialogstate_);
  EXPECT_TRUE(handler->got_onloadend_);
  ReleaseAndWaitForDestructor(handler);
}
TEST ( JSDialogTest , ConfirmRunImmediateOk ) { CefRefPtr < JSDialogTestHandler > handler = new JSDialogTestHandler ( JSDialogTestHandler :: TYPE_CONFIRM , JSDialogTestHandler :: MODE_RUN_IMMEDIATE , true , " " , " " ) ; handler -> ExecuteTest ( ) ; EXPECT_TRUE ( handler -> got_onjsdialog_ ) ; EXPECT_FALSE ( handler -> got_onbeforeunloaddialog_ ) ; EXPECT_TRUE ( handler -> got_onresetdialogstate_ ) ; EXPECT_TRUE ( handler -> got_onloadend_ ) ; ReleaseAndWaitForDestructor ( handler ) ; }
Confirm dialog run immediately return OK.
Confirm dialog run immediately return OK .
// success // user_input // result