diff options
Diffstat (limited to 'chrome_frame/test/data')
-rw-r--r-- | chrome_frame/test/data/download_file.zip | bin | 0 -> 76992 bytes | |||
-rw-r--r-- | chrome_frame/test/data/full_tab_download_from_new_window.html | 18 |
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 Binary files differnew file mode 100644 index 0000000..a12500d --- /dev/null +++ b/chrome_frame/test/data/download_file.zip 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> |