OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" | 3 <script type="text/javascript" |
4 src="chrome_frame_tester_helpers.js"></script> | 4 src="chrome_frame_tester_helpers.js"></script> |
5 <script type="text/javascript" | 5 <script type="text/javascript" |
6 src="CFInstall.js"></script> | 6 src="CFInstall.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | 9 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
10 Test running.... | 10 Test running.... |
11 </div> | 11 </div> |
12 | 12 |
13 <script type="text/javascript"> | 13 <script type="text/javascript"> |
14 var testName = 'CFInstallOverlay'; | 14 var testName = 'CFInstallOverlay'; |
15 (function(){ | 15 (function(){ |
16 try{ | 16 try{ |
17 // Testing over-rides for GCF detection code. | 17 // Testing over-rides for GCF detection code. |
18 CFInstall._force = true; | 18 CFInstall._force = true; |
19 CFInstall._forceValue = false; | 19 CFInstall._forceValue = false; |
20 | 20 |
21 // Clobber prompt supression cookie if set. | 21 // Clobber prompt suppression cookie if set. |
22 document.cookie = 'disableGCFCheck=0;path=/'; | 22 document.cookie = 'disableGCFCheck=0;path=/'; |
23 | 23 |
24 CFInstall.check({ | 24 CFInstall.check({ |
25 id: 'prompt', | 25 id: 'prompt', |
26 mode: 'overlay' | 26 mode: 'overlay' |
27 }); | 27 }); |
28 | 28 |
29 var p = byId('prompt'); | 29 var p = byId('prompt'); |
30 | 30 |
31 if (!p) { | 31 if (!p) { |
(...skipping 26 matching lines...) Expand all Loading... |
58 } catch (e) { | 58 } catch (e) { |
59 onFailure(testName, 1, | 59 onFailure(testName, 1, |
60 'CFInstall overlay prompt failed with error: '+e); | 60 'CFInstall overlay prompt failed with error: '+e); |
61 } | 61 } |
62 })(); | 62 })(); |
63 </script> | 63 </script> |
64 <p>Tests CFInstall overlay prompt</p> | 64 <p>Tests CFInstall overlay prompt</p> |
65 </body> | 65 </body> |
66 </html> | 66 </html> |
67 | 67 |
OLD | NEW |