OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" |
| 4 src="chrome_frame_tester_helpers.js"></script> |
| 5 <script type="text/javascript" |
| 6 src="CFInstall.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
| 10 Test running.... |
| 11 </div> |
| 12 |
| 13 <script type="text/javascript"> |
| 14 var testName = 'CFInstallBasic'; |
| 15 (function(){ |
| 16 try{ |
| 17 // Testing over-rides for GCF detection code. |
| 18 CFInstall._force = true; |
| 19 CFInstall._forceValue = false; |
| 20 |
| 21 CFInstall.check({ |
| 22 // TODO(slightlyoff): popup window tests? |
| 23 mode: 'inline' |
| 24 }); |
| 25 |
| 26 if (document.body.firstChild.tagName != 'IFRAME') { |
| 27 onFailure(testName, 1, 'prompt placed incorrectly'); |
| 28 return; |
| 29 } |
| 30 |
| 31 onSuccess(testName, 1); |
| 32 |
| 33 } catch (e) { |
| 34 onFailure(testName, 1, |
| 35 'CFInstall basic test failed with error: '+e); |
| 36 } |
| 37 })(); |
| 38 </script> |
| 39 <p>Tests CFInstall basic prompt functionality</p> |
| 40 </body> |
| 41 </html> |
OLD | NEW |