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

Side by Side Diff: chrome_frame/test/data/CFInstance_singleton_host.html

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 <!-- This page is meant to loaded inside the host browser (IE, FF, etc.) -->
3 <head>
4 <script type="text/javascript" src="chrome_frame_tester_helpers.js">
5 </script>
6 <script type="text/javascript" src="CFInstance.js"></script>
7 </head>
8
9 <body>
10 <div id="statusPanel" style="border: 1px solid red; width: 100%">
11 Test running....
12 </div>
13
14 <div id="toBeReplaced">
15 fallback content goes here
16 </div>
17 <script type="text/javascript">
18 var testName = "CFInstanceSingleton";
19 (function() {
20 try{
21 var cf = new CFInstance({
22 src: "CFInstance_singleton_frame.html",
23 node: "toBeReplaced"
24 });
25
26 // test a call/response set of actions driven by the CF content
27 cf.listen("message", function(evt) {
28 if (evt.data == "foo") {
29 cf.postMessage("bar");
30 } else if(evt.data == "baz") {
31 onSuccess(testName, 1);
32 }
33 });
34
35 } catch (e) {
36 onFailure(testName, 1,
37 "CFInstance constructor failed with error: " + e);
38 }
39 })();
40 </script>
41 <p>Tests ChromeFrame Navigation</p>
42 </body>
43 </html>
44
OLDNEW
« no previous file with comments | « chrome_frame/test/data/CFInstance_singleton_frame.html ('k') | chrome_frame/test/data/CFInstance_zero_size_host.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698