Index: chrome/test/data/session_history/frames.html |
=================================================================== |
--- chrome/test/data/session_history/frames.html (revision 148625) |
+++ chrome/test/data/session_history/frames.html (working copy) |
@@ -1,45 +0,0 @@ |
-<html> |
-<head> |
-<title>bot1</title> |
-<script> |
-// --- Convenience functions for testing. |
-function setTitle() { |
- var fbot = document.getElementById("fbot"); |
- document.title = fbot.contentDocument.title; |
-} |
-// Simulate the user clicking a link. |
-function clickLink(name) { |
- var ftop = document.getElementById("ftop"); |
- var node = ftop.contentDocument.getElementById(name); |
- var evt = document.createEvent("MouseEvents"); |
- evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, |
- false, false, false, false, 0, null); |
- node.dispatchEvent(evt); |
-} |
-// Simulate the user filling a form value. |
-function fillForm(name, value) { |
- var fbot = document.getElementById("fbot"); |
- var node = fbot.contentDocument.getElementById(name); |
- node.value = value; |
-} |
-// Simulate the user clicking on the submit button. |
-function submitForm(name) { |
- var fbot = document.getElementById("fbot"); |
- var node = fbot.contentDocument.getElementById(name); |
- node.click(); |
-} |
-function init() { |
- var fbot = document.getElementById("fbot"); |
- // This will set our title to the bottom frame, so we can test that |
- // we actually navigated. |
- fbot.onload = setTitle; |
-} |
-</script> |
-</head> |
- |
-<frameset onLoad="init()" rows="20%,80%" name="main"> |
- <frame src="top.html" id="ftop" name="top"> |
- <frame src="bot1.html" id="fbot" name="bottom"> |
-</frameset> |
- |
-</html> |