summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/data
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 04:24:49 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 04:24:49 +0000
commit7aa8d97a76a427986a30a48ed1ed2f8c4b463323 (patch)
tree90d236dfc722eac565fb430da49d2b94f07d2c5c /chrome_frame/test/data
parentcbcf9cc32b5f6cd73e3b734b1c19248f6ac65fec (diff)
downloadchromium_src-7aa8d97a76a427986a30a48ed1ed2f8c4b463323.zip
chromium_src-7aa8d97a76a427986a30a48ed1ed2f8c4b463323.tar.gz
chromium_src-7aa8d97a76a427986a30a48ed1ed2f8c4b463323.tar.bz2
Beginnings of a unit test for downloads that occur in a new window.
For now this works for IE regularly (no cf in the picture) and triggers a download in a new window. It is disabled since support for this scenario is not yet ready in CF. I'm adding a couple of things to WebBrowserEventSink: - A way to gracefully close IE. This way we allow IE to quit on its own and don't go the "kill" route unless necessary. This should help with reducing cases where we've killed IE and the next time it is started it presents the user with an "IE crashed" dialog which could cause subsequent unit tests to fail. Another thing this adds is support for the OnQuit event that can be useful to add to unit tests as an expected event. - A new OnFileDownload event. I also updated several tests to expect this event. TEST=Adds a unit test. BUG=none Review URL: http://codereview.chromium.org/569011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/data')
-rw-r--r--chrome_frame/test/data/download_file.zipbin0 -> 76992 bytes
-rw-r--r--chrome_frame/test/data/full_tab_download_from_new_window.html18
2 files changed, 18 insertions, 0 deletions
diff --git a/chrome_frame/test/data/download_file.zip b/chrome_frame/test/data/download_file.zip
new file mode 100644
index 0000000..a12500d
--- /dev/null
+++ b/chrome_frame/test/data/download_file.zip
Binary files differ
diff --git a/chrome_frame/test/data/full_tab_download_from_new_window.html b/chrome_frame/test/data/full_tab_download_from_new_window.html
new file mode 100644
index 0000000..bb6abe3
--- /dev/null
+++ b/chrome_frame/test/data/full_tab_download_from_new_window.html
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <meta http-equiv="x-ua-compatible" content="chrome=1" />
+ <script language="javascript">
+ function downloadInNewWindow() {
+ var download_url = "download_file.zip";
+ window.open(download_url, 'download', 'toolbar=0,location=no');
+ return false; // cancel form submission
+ }
+ </script>
+ </head>
+<body onload="downloadInNewWindow();">
+<form method="POST" action="hero">
+ <input onclick="return downloadInNewWindow()" value="Download"
+ id="downloadButton" type="button">
+</form>
+</body>
+</html>