Index: chrome/test/data/safe_browsing/download_protection/navigation_observer/landing_referrer.html |
diff --git a/chrome/test/data/safe_browsing/download_protection/navigation_observer/landing_referrer.html b/chrome/test/data/safe_browsing/download_protection/navigation_observer/landing_referrer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..709dad5ba72f889055385807409a37aa3cef43ee |
--- /dev/null |
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/landing_referrer.html |
@@ -0,0 +1,19 @@ |
+<html> |
+ <head> |
+ <script> |
+ // Click on a link by id to star a test case. |
Nathan Parker
2016/12/05 22:21:24
"to start"
Jialiu Lin
2016/12/06 23:10:07
Done.
|
+ function clickLink(linkId) { |
+ var node = document.getElementById(linkId); |
+ if (node != null) { |
Nathan Parker
2016/12/05 22:21:24
nit: Is there any case when this could be null? If
Jialiu Lin
2016/12/06 23:10:07
Sure. sounds good.
|
+ // Click and open link in the same tab. |
+ node.click(); |
+ } |
+ } |
+ </script> |
+ </head> |
+ <body> |
+ <a id="link_to_landing" href="landing.html"> |
+ Link to landing |
+ </a><br> |
+ </body> |
+</html> |