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

Unified Diff: chrome_frame/test/data/event_listener.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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/test/data/event_listener.html
===================================================================
--- chrome_frame/test/data/event_listener.html (revision 0)
+++ chrome_frame/test/data/event_listener.html (revision 0)
@@ -0,0 +1,42 @@
+<html>
+<!-- This page is meant to load inside the host browser like IE/FF -->
+<head>
+ <script type="text/javascript" src="chrome_frame_tester_helpers.js"></script>
+ <script language="javascript">
+ var g_test_name = 'EventListener';
+
+ function onChromeFrameLoaded() {
+ appendStatus('Chrome frame loaded.');
+ onSuccess(g_test_name, 1);
+ }
+
+ function onEventNotFired() {
+ onFailure(g_test_name, 1, 'Did not receive onload event');
+ }
+
+ function onDocumentLoad() {
+ appendStatus('document loaded');
+ var cf = getCf();
+ cf.addEventListener("load", onChromeFrameLoaded, false);
+ setTimeout(onEventNotFired, 10000)
+ cf.src = "CFInstance_basic_frame.html";
+ }
+
+ function getCf() {
+ return window.document.ChromeFrame;
+ }
+ </script>
+</head>
+<body onload="onDocumentLoad();">
+ <object id="ChromeFrame" width="500" height ="300"
+ codebase="http://www.google.com"
+ classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
+ <embed id="ChromeFramePlugin" name="ChromeFrame" width="500"
+ height="500" type="application/chromeframe">
+ </embed>
+ </object>
+ <div id="statusPanel" style="border: 1px solid red; width: 100%">
+ Test running....
+ </div>
+</body>
+</html>
« no previous file with comments | « chrome_frame/test/data/chrome_frame_tester_helpers.js ('k') | chrome_frame/test/data/iframe_basic_host.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698