summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/data/CFInstall_basic.html
diff options
context:
space:
mode:
authorslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 03:16:31 +0000
committerslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 03:16:31 +0000
commitb6a040a170be44d208a5ab379931c571232dd3e2 (patch)
treeb417055b805b6ad2358342008754e4f5d05976b1 /chrome_frame/test/data/CFInstall_basic.html
parent2cdaa8386a9236316f80281e8b5c0023d1ce83ad (diff)
downloadchromium_src-b6a040a170be44d208a5ab379931c571232dd3e2.zip
chromium_src-b6a040a170be44d208a5ab379931c571232dd3e2.tar.gz
chromium_src-b6a040a170be44d208a5ab379931c571232dd3e2.tar.bz2
Updates CFInstall.js to:
* provide a new 'overlay' prompt mode that includes a "close" button with a cookie that respects the user preference for any originating site * handle requesting the install UI from a host page loaded from a file:// URL * expands UA detection to stop taunting Win2K (and below) users with visions of WebKit goodness * preserves full compat with previous version BUG=23057,22738,23132 TEST=see new test files in this change or build chrome_frame_tests and run with: chrome_frame_tests.exe --gtest_filter=*CFInstall* Review URL: http://codereview.chromium.org/345032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/data/CFInstall_basic.html')
-rw-r--r--chrome_frame/test/data/CFInstall_basic.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/chrome_frame/test/data/CFInstall_basic.html b/chrome_frame/test/data/CFInstall_basic.html
new file mode 100644
index 0000000..bbf7006
--- /dev/null
+++ b/chrome_frame/test/data/CFInstall_basic.html
@@ -0,0 +1,41 @@
+<html>
+ <head>
+ <script type="text/javascript"
+ src="chrome_frame_tester_helpers.js"></script>
+ <script type="text/javascript"
+ src="CFInstall.js"></script>
+ </head>
+ <body>
+ <div id="statusPanel" style="border: 1px solid red; width: 100%">
+ Test running....
+ </div>
+
+ <script type="text/javascript">
+ var testName = 'CFInstallBasic';
+ (function(){
+ try{
+ // Testing over-rides for GCF detection code.
+ CFInstall._force = true;
+ CFInstall._forceValue = false;
+
+ CFInstall.check({
+ // TODO(slightlyoff): popup window tests?
+ mode: 'inline'
+ });
+
+ if (document.body.firstChild.tagName != 'IFRAME') {
+ onFailure(testName, 1, 'prompt placed incorrectly');
+ return;
+ }
+
+ onSuccess(testName, 1);
+
+ } catch (e) {
+ onFailure(testName, 1,
+ 'CFInstall basic test failed with error: '+e);
+ }
+ })();
+ </script>
+ <p>Tests CFInstall basic prompt functionality</p>
+ </body>
+</html>