tests/ceftests/jsdialog_unittest.cc
// Prompt dialog run delayed return OK.
Prompt dialog run delayed return OK.
Prompt dialog run delayed return OK .
TEST(JSDialogTest, PromptRunDelayedOk) {
  CefRefPtr<JSDialogTestHandler> handler = new JSDialogTestHandler(
      JSDialogTestHandler::TYPE_PROMPT, JSDialogTestHandler::MODE_RUN_DELAYED,
      true,           
      "some_value",   
      "some_value");  
  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 , PromptRunDelayedOk ) { CefRefPtr < JSDialogTestHandler > handler = new JSDialogTestHandler ( JSDialogTestHandler :: TYPE_PROMPT , JSDialogTestHandler :: MODE_RUN_DELAYED , 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 ) ; }
Prompt dialog run delayed return OK.
Prompt dialog run delayed return OK .
// success // user_input // result