3 <script type="text/javascript"
4 src="chrome_frame_tester_helpers.js"></script>
5 <script type="text/javascript"
6 src="CFInstall.js"></script>
9 <div id="statusPanel" style="border: 1px solid red; width: 100%">
13 <script type="text/javascript">
14 var testName = 'CFInstallOverlay';
17 // Testing over-rides for GCF detection code.
18 CFInstall._force = true;
19 CFInstall._forceValue = false;
21 // Clobber prompt suppression cookie if set.
22 document.cookie = 'disableGCFCheck=0;path=/';
29 var p = byId('prompt');
32 onFailure(testName, 1, 'prompt not created with correct ID');
36 // Make sure the prompt is parented in the display table.
37 if (p.parentNode != byId('chromeFrameIframeHolder')) {
38 onFailure(testName, 1, 'prompt not parented correctly');
42 var fc = document.body.firstChild;
44 if (fc.nodeType != 1 || !fc.firstChild &&
45 fc.firstChild != byId('chromeFrameOverlayUnderlay')) {
46 onFailure(testName, 1, 'underlay placed incorrectly');
50 if (fc.nodeType != 1 || !fc.firstChild &&
51 fc.nextSibling != byId('chromeFrameOverlayContent')) {
52 onFailure(testName, 1, 'prompt placed incorrectly');
56 onSuccess(testName, 1);
59 onFailure(testName, 1,
60 'CFInstall overlay prompt failed with error: '+e);
64 <p>Tests CFInstall overlay prompt</p>