// Copyright (c) 2006-2009 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 "app/message_box_flags.h"
#include "base/file_util.h"
#include "base/platform_thread.h"
#include "chrome/browser/net/url_request_mock_http_job.h"
#include "chrome/browser/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_unittest.h"
#include "views/event.h"
#if defined(OS_LINUX)
// http://crbug.com/47575
#define SKIP_LINUX(test) DISABLED_##test
#else
#define SKIP_LINUX(test) test
#endif
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;'>"
"