| Index: chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html
|
| diff --git a/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..363ae10f78638aa0ca71026b608e7883a7e4cc38
|
| --- /dev/null
|
| +++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html
|
| @@ -0,0 +1,19 @@
|
| +<html>
|
| + <head>
|
| + <script>
|
| + // Identify the link by frame id and element id, click on it.
|
| + function clickLink(frameId, targetId) {
|
| + var iframe = document.getElementById(frameId);
|
| + var innerDoc = (iframe.contentDocument) ?
|
| + iframe.contentDocument : iframe.contentWindow.document;
|
| + var node = innerDoc.getElementById(targetId);
|
| + // Click and open link in the same tab.
|
| + node.click();
|
| + }
|
| + </script>
|
| + </head>
|
| + <body>
|
| + <iframe id="iframe1" src="iframe.html"></iframe><br>
|
| + <iframe id="iframe2" src="iframe_retargeting.html"></iframe>
|
| + </body>
|
| +</html>
|
|
|