Chromium Code Reviews

Unified Diff: chrome_frame/test/data/CFInstance_default_ctor_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.
Jump to:
View side-by-side diff with in-line comments
Index: chrome_frame/test/data/CFInstance_default_ctor_host.html
===================================================================
--- chrome_frame/test/data/CFInstance_default_ctor_host.html (revision 0)
+++ chrome_frame/test/data/CFInstance_default_ctor_host.html (revision 0)
@@ -0,0 +1,45 @@
+<html>
+ <!-- This page is meant to loaded inside the host browser (IE, FF, etc.) -->
+ <head>
+ <script type="text/javascript"
+ src="chrome_frame_tester_helpers.js"></script>
+ <script type="text/javascript"
+ src="CFInstance.js"></script>
+ </head>
+
+ <body>
+ <div id="statusPanel" style="border: 1px solid red; width: 100%">
+ Test running....
+ </div>
+
+ <div id="parent">
+ <div id="prev">before</div><div id="toBeReplaced">
+ fallback content goes here
+ </div><div id="after">after</div>
+ </div>
+ <script type="text/javascript">
+ var testName = "CFInstanceDefaultCtor";
+ (function(){
+ try{
+ var cf = new CFInstance();
+ cf.src = "CFInstance_basic_frame.html";
+ var node = document.getElementById("toBeReplaced");
+ node.parentNode.replaceChild(cf, node);
+ var timer = setTimeout(function() {
+ onFailure(testName, 1, "CFInstance navigation timeout");
+ }, 15000);
+ cf.listen("load", function() {
+ clearTimeout(timer);
+ onSuccess(testName, 1);
+ });
+ cf.src = "CFInstance_basic_frame.html";
+ } catch (e) {
+ onFailure(testName, 1,
+ "CFInstance constructor failed with error: "+e);
+ }
+ })();
+ </script>
+ <p>Tests Chrome Frame constructor without arguments</p>
+ </body>
+</html>
+
« no previous file with comments | « chrome_frame/test/data/CFInstance_basic_host.html ('k') | chrome_frame/test/data/CFInstance_delay_host.html » ('j') | no next file with comments »

Powered by Google App Engine