Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: chrome_frame/test/data/CFInstall_overlay.html

Issue 345032: Updates CFInstall.js to:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 = 'CFInstallOverlay';
15 (function(){
16 try{
17 // Testing over-rides for GCF detection code.
18 CFInstall._force = true;
19 CFInstall._forceValue = false;
20
21 // Clobber prompt supression cookie if set.
22 document.cookie = 'disableGCFCheck=0;path=/';
23
24 CFInstall.check({
25 id: 'prompt',
26 mode: 'overlay'
27 });
28
29 var p = byId('prompt');
30
31 if (!p) {
32 onFailure(testName, 1, 'prompt not created with correct ID');
33 return;
34 }
35
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');
39 return;
40 }
41
42 var lc = document.body.lastChild;
43
44 if (lc.nodeType != 1 || !lc.firstChild &&
45 lc.firstChild != byId('chromeFrameOverlayUnderlay')) {
46 onFailure(testName, 1, 'underlay placed incorrectly');
47 return;
48 }
49
50 if (lc.nodeType != 1 || !lc.firstChild &&
51 lc.firstChild.nextSibling != byId('chromeFrameOverlayContent')) {
52 onFailure(testName, 1, 'prompt placed incorrectly');
53 return;
54 }
55
56 onSuccess(testName, 1);
57
58 } catch (e) {
59 onFailure(testName, 1,
60 'CFInstall overlay prompt failed with error: '+e);
61 }
62 })();
63 </script>
64 <p>Tests CFInstall overlay prompt</p>
65 </body>
66 </html>
67
OLDNEW
« no previous file with comments | « chrome_frame/test/data/CFInstall_dismiss.html ('k') | chrome_frame/test/data/CFInstall_place.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698