HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Kitkat Watch
|
4.4w_r1
下载
查看原文件
收藏
根目录
external
chromium
chrome
browser
unload_uitest.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_util.h" #include "base/test/test_timeouts.h" #include "chrome/browser/net/url_request_mock_http_job.h" #include "chrome/browser/ui/view_ids.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/automation/browser_proxy.h" #include "chrome/test/automation/tab_proxy.h" #include "chrome/test/automation/window_proxy.h" #include "chrome/test/ui/ui_test.h" #include "net/url_request/url_request_test_util.h" #include "ui/base/events.h" #include "ui/base/message_box_flags.h" const std::string NOLISTENERS_HTML = "
nolisteners
"; const std::string UNLOAD_HTML = "
unload
" ""; const std::string BEFORE_UNLOAD_HTML = "
beforeunload
" "" ""; const std::string INNER_FRAME_WITH_FOCUS_HTML = "
innerframewithfocus
" "" "
" "
\">
" ""; const std::string TWO_SECOND_BEFORE_UNLOAD_HTML = "
twosecondbeforeunload
" ""; const std::string INFINITE_UNLOAD_HTML = "
infiniteunload
" "" ""; const std::string INFINITE_BEFORE_UNLOAD_HTML = "
infinitebeforeunload
" "" ""; const std::string INFINITE_UNLOAD_ALERT_HTML = "
infiniteunloadalert
" ""; const std::string INFINITE_BEFORE_UNLOAD_ALERT_HTML = "
infinitebeforeunloadalert
" ""; const std::string TWO_SECOND_UNLOAD_ALERT_HTML = "
twosecondunloadalert
" ""; const std::string TWO_SECOND_BEFORE_UNLOAD_ALERT_HTML = "
twosecondbeforeunloadalert
" ""; const std::string CLOSE_TAB_WHEN_OTHER_TAB_HAS_LISTENER = "
only_one_unload
" "
popup
')\" " "onbeforeunload='return;'>" "