Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3365)

Unified Diff: chrome/test/data/downloads/dangerous/download-dangerous.html

Issue 5781006: Fix pyauto downloads tests to trigger dangerous downloads to match expectation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/functional/PYAUTO_TESTS » ('j') | chrome/test/functional/downloads.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/downloads/dangerous/download-dangerous.html
diff --git a/chrome/test/data/downloads/dangerous/download-dangerous.html b/chrome/test/data/downloads/dangerous/download-dangerous.html
new file mode 100644
index 0000000000000000000000000000000000000000..f6361d2cb3ace378683f80635510572a2a08091a
--- /dev/null
+++ b/chrome/test/data/downloads/dangerous/download-dangerous.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head><title>Test Download Multiple files Infobar.</title>
+<script>
+function RedirectToDangerous() {
+ filename = window.location.search.split("?")[1];
+ window.location.href = filename;
+}
+</script>
+</head>
+
+<body onload="RedirectToDangerous();">
+<h2>
+Should trigger download for an unsafe/dangerous file type.<br>
+Filename should be passed as query string.
+</h2>
+
+</body>
+</html>
+
« no previous file with comments | « no previous file | chrome/test/functional/PYAUTO_TESTS » ('j') | chrome/test/functional/downloads.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698