Commit b741edc2 authored by jam@chromium.org's avatar jam@chromium.org

Copy test data so that tests which use them can be converted to content_browsertests in a tryjob

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148689 0039d316-1c4b-4281-b951-d872f2087c98
parent 73465023
<html>
<head><title>bot1</title></head>
<body>
This is the bottom frame #1. Tests will load here.
</body>
</html>
<html>
<head><title>bot2</title></head>
<body>
This is the bottom frame #2.
</body>
</html>
<html>
<head><title>bot3</title></head>
<body>
Bottom frame the third.
</body>
</html>
<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>
<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>
<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>
<title>Default Title</title>
<style>
iframe { width: 98%; height: 96%; }
</style>
<iframe src="location_redirect_frame1.html"></iframe>
<script>
function navigate() {
location = "location_redirect_frame2.html";
}
</script>
<script>
parent.document.title = "foo";
</script>
<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>
<script>
history_length = history.length;
</script>
<html>
<head><title>redirecting</title></head>
<body onload="location.replace(location.search.substring(1))">redirecting...</body>
</html>
<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>
<html>
<head>
<title>Speech input test</title>
<script type="text/javascript">
function onspeechresult(value) {
if (value == "Pictures of the moon") {
document.getElementById('status').innerHTML = 'PASS';
document.location = '#pass';
} else {
document.location = '#fail';
}
}
</script>
</head>
<body style="padding:0; margin:0;">
<input id='inputField' x-webkit-speech
onwebkitspeechchange="onspeechresult(this.value);"
onchange="onspeechresult(this.value);"
style="position:absolute; margin:0; padding:0; border:0; width:10px;">
<br>
<div id="status">FAIL</div>
</body>
</html>
<html>
<head>
<title>Speech input with grammar attribute test</title>
<script type="text/javascript">
function onspeechresult(value) {
if (value == "Pictures of the moon") {
document.getElementById('status').innerHTML = 'PASS';
document.location = '#pass';
} else {
document.location = '#fail';
}
}
</script>
</head>
<body style="padding:0; margin:0;">
<input id='inputField' x-webkit-speech
x-webkit-grammar="http://example.com/grammar.xml"
onwebkitspeechchange="onspeechresult(this.value);"
onchange="onspeechresult(this.value);"
style="position:absolute; margin:0; padding:0; border:0; width:10px;">
<br>
<div id="status">FAIL</div>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment