diff options
author | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-26 23:55:29 +0000 |
---|---|---|
committer | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-26 23:55:29 +0000 |
commit | 09911bf300f1a419907a9412154760efd0b7abc3 (patch) | |
tree | f131325fb4e2ad12c6d3504ab75b16dd92facfed /chrome/test/data/session_history | |
parent | 586acc5fe142f498261f52c66862fa417c3d52d2 (diff) | |
download | chromium_src-09911bf300f1a419907a9412154760efd0b7abc3.zip chromium_src-09911bf300f1a419907a9412154760efd0b7abc3.tar.gz chromium_src-09911bf300f1a419907a9412154760efd0b7abc3.tar.bz2 |
Add chrome to the repository.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/session_history')
-rw-r--r-- | chrome/test/data/session_history/bot1.html | 6 | ||||
-rw-r--r-- | chrome/test/data/session_history/bot2.html | 6 | ||||
-rw-r--r-- | chrome/test/data/session_history/bot3.html | 7 | ||||
-rw-r--r-- | chrome/test/data/session_history/form.html | 31 | ||||
-rw-r--r-- | chrome/test/data/session_history/fragment.html | 12 | ||||
-rw-r--r-- | chrome/test/data/session_history/frames.html | 45 | ||||
-rw-r--r-- | chrome/test/data/session_history/no-title.html | 1 | ||||
-rw-r--r-- | chrome/test/data/session_history/post.html | 28 | ||||
-rw-r--r-- | chrome/test/data/session_history/replace.html | 4 | ||||
-rw-r--r-- | chrome/test/data/session_history/top.html | 8 |
10 files changed, 148 insertions, 0 deletions
diff --git a/chrome/test/data/session_history/bot1.html b/chrome/test/data/session_history/bot1.html new file mode 100644 index 0000000..e213c72 --- /dev/null +++ b/chrome/test/data/session_history/bot1.html @@ -0,0 +1,6 @@ +<html> +<head><title>bot1</title></head> +<body> +This is the bottom frame #1. Tests will load here. +</body> +</html> diff --git a/chrome/test/data/session_history/bot2.html b/chrome/test/data/session_history/bot2.html new file mode 100644 index 0000000..5d0228c --- /dev/null +++ b/chrome/test/data/session_history/bot2.html @@ -0,0 +1,6 @@ +<html> +<head><title>bot2</title></head> +<body> +This is the bottom frame #2. +</body> +</html> diff --git a/chrome/test/data/session_history/bot3.html b/chrome/test/data/session_history/bot3.html new file mode 100644 index 0000000..deb7837 --- /dev/null +++ b/chrome/test/data/session_history/bot3.html @@ -0,0 +1,7 @@ +<html> +<head><title>bot3</title></head> +<body> +Bottom frame the third. +</body> +</html> + diff --git a/chrome/test/data/session_history/form.html b/chrome/test/data/session_history/form.html new file mode 100644 index 0000000..f20e02d --- /dev/null +++ b/chrome/test/data/session_history/form.html @@ -0,0 +1,31 @@ +<html> +<head> +<title>form</title> +<script> +// Simulate the user clicking on the submit button. +function submitForm(name) { + var node = document.getElementById(name); + node.click(); +} +// Simulate the user filling a form value. +function fillForm(name, value) { + var node = document.getElementById(name); + node.value = value; +} +</script> +</head> +<body> + +<form method="post" action="/echotitle"> + +<p><input name="text" id="itext"> +<p><select name="select" id="iselect"> + <option selected>a + <option>b + <option>c +</select> +<p><input type="submit" value="Submit" id="isubmit"> + +</form> +</body> +</html> diff --git a/chrome/test/data/session_history/fragment.html b/chrome/test/data/session_history/fragment.html new file mode 100644 index 0000000..b5d6601 --- /dev/null +++ b/chrome/test/data/session_history/fragment.html @@ -0,0 +1,12 @@ +<html> +<head><title>fragment</title></head> +<body> +A page with anchor fragment targets. +<p> +<a name="a">What's this? A reference fragment?</a> +<p> +<a name="b">And another!</a> +<p> +<a name="c">Last one, I promise.</a> +</body> +</html> diff --git a/chrome/test/data/session_history/frames.html b/chrome/test/data/session_history/frames.html new file mode 100644 index 0000000..a28c4e6 --- /dev/null +++ b/chrome/test/data/session_history/frames.html @@ -0,0 +1,45 @@ +<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> diff --git a/chrome/test/data/session_history/no-title.html b/chrome/test/data/session_history/no-title.html new file mode 100644 index 0000000..ff70517 --- /dev/null +++ b/chrome/test/data/session_history/no-title.html @@ -0,0 +1 @@ +<body>no title specified</body> diff --git a/chrome/test/data/session_history/post.html b/chrome/test/data/session_history/post.html new file mode 100644 index 0000000..ab89b76 --- /dev/null +++ b/chrome/test/data/session_history/post.html @@ -0,0 +1,28 @@ +<html> +<head> +<title>post</title> +<script> +// stolen from darin's page cycler +var options = location.search.substring(1).split('&'); + +function getopt(name) { + var r = new RegExp("^" + name + "="); + for (i = 0; i < options.length; ++i) { + if (options[i].match(r)) { + return options[i].substring(name.length + 1); + } + } + return null; +} + +function checkParams() { + document.title = "post:" + getopt("text") + "," + getopt("select"); +} +checkParams(); +</script> +</head> + +<body> +Form submission accepted. Thanks for playing. +</body> +</html> diff --git a/chrome/test/data/session_history/replace.html b/chrome/test/data/session_history/replace.html new file mode 100644 index 0000000..4c79a6f --- /dev/null +++ b/chrome/test/data/session_history/replace.html @@ -0,0 +1,4 @@ +<html> +<head><title>redirecting</title></head> +<body onload="location.replace(location.search.substring(1))">redirecting...</body> +</html> diff --git a/chrome/test/data/session_history/top.html b/chrome/test/data/session_history/top.html new file mode 100644 index 0000000..70e3c71 --- /dev/null +++ b/chrome/test/data/session_history/top.html @@ -0,0 +1,8 @@ +<html> +<body> +<a href="bot1.html" id="abot1" target="bottom">bot1</a> +<a href="bot2.html" id="abot2" target="bottom">bot2</a> +<a href="bot3.html" id="abot3" target="bottom">bot3</a> +<a href="form.html" id="aform" target="bottom">form</a> +</body> +</html> |