Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chrome/test/data/session_history/frames.html

Issue 10820043: Convert speech and session history browser_tests to run under content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>bot1</title>
4 <script>
5 // --- Convenience functions for testing.
6 function setTitle() {
7 var fbot = document.getElementById("fbot");
8 document.title = fbot.contentDocument.title;
9 }
10 // Simulate the user clicking a link.
11 function clickLink(name) {
12 var ftop = document.getElementById("ftop");
13 var node = ftop.contentDocument.getElementById(name);
14 var evt = document.createEvent("MouseEvents");
15 evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0,
16 false, false, false, false, 0, null);
17 node.dispatchEvent(evt);
18 }
19 // Simulate the user filling a form value.
20 function fillForm(name, value) {
21 var fbot = document.getElementById("fbot");
22 var node = fbot.contentDocument.getElementById(name);
23 node.value = value;
24 }
25 // Simulate the user clicking on the submit button.
26 function submitForm(name) {
27 var fbot = document.getElementById("fbot");
28 var node = fbot.contentDocument.getElementById(name);
29 node.click();
30 }
31 function init() {
32 var fbot = document.getElementById("fbot");
33 // This will set our title to the bottom frame, so we can test that
34 // we actually navigated.
35 fbot.onload = setTitle;
36 }
37 </script>
38 </head>
39
40 <frameset onLoad="init()" rows="20%,80%" name="main">
41 <frame src="top.html" id="ftop" name="top">
42 <frame src="bot1.html" id="fbot" name="bottom">
43 </frameset>
44
45 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/session_history/fragment.html ('k') | chrome/test/data/session_history/location_redirect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698