// 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/ui/view_ids.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/automation/automation_proxy.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 "content/browser/net/url_request_mock_http_job.h"
#include "net/url_request/url_request_test_util.h"
#include "ui/base/events.h"
#include "ui/base/ui_base_types.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;'>"
"