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

Unified Diff: chrome/test/data/pdf/test-iframe-pdf.html

Issue 2862583010: [Reland 1] Save pdf file instead of web page through context menu for embedded pdf file (Closed)
Patch Set: remove flaky test Created 3 years, 7 months 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 | « chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/pdf/test-iframe-pdf.html
diff --git a/chrome/test/data/pdf/test-iframe-pdf.html b/chrome/test/data/pdf/test-iframe-pdf.html
new file mode 100644
index 0000000000000000000000000000000000000000..a978212f58f36db8f3aef88ae46c4fb8cb3eb483
--- /dev/null
+++ b/chrome/test/data/pdf/test-iframe-pdf.html
@@ -0,0 +1,16 @@
+<html>
+<body>
+
+<button id="link1" onclick="openPdf()">Click me to load pdf</button>
+<div id="container"></div>
+
+<script>
+function openPdf() {
+ var frame = document.createElement("iframe");
+ frame.src = "test.pdf";
+ document.getElementById("container").appendChild(frame);
+}
+</script>
+
+<body>
+</html>
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698