| 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>
|
|
|