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

Side by Side Diff: chrome/test/data/extensions/api_test/popup_api/toolband.html

Issue 400023: Correction of return parameter validation for popup.getParentWindow, and extension.getPopupView. (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
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script> 3 <script>
4 var globalValue = "I am not 42."; 4 var globalValue = "I am not 42.";
5 5
6 window.onload = function() { 6 window.onload = function() {
7 chrome.test.runTests([ 7 chrome.test.runTests([
8 function noPopup() {
9 chrome.test.assertTrue(
10 undefined === chrome.experimental.extension.getPopupView(),
11 "Popup view is defined when no popup shown.");
12 chrome.test.succeed();
13 },
14 function noParentWindow() {
15 chrome.test.assertTrue(
16 undefined === chrome.experimental.popup.getParentWindow(),
17 "Parent );
18 chrome.test.succeed();
19 },
8 function show() { 20 function show() {
9 var showDetails = { 21 var showDetails = {
10 "relativeTo": document.getElementById("anchorHere") 22 "relativeTo": document.getElementById("anchorHere")
11 }; 23 };
12 chrome.experimental.popup.show("toolband_popup.html", 24 chrome.experimental.popup.show("toolband_popup.html",
13 showDetails, 25 showDetails,
14 chrome.test.callbackPass(function() { 26 chrome.test.callbackPass(function() {
15 chrome.test.assertTrue( 27 chrome.test.assertTrue(
16 chrome.experimental.extension.getPopupView() != undefined); 28 chrome.experimental.extension.getPopupView() != undefined);
17 })); 29 }));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ]); 65 ]);
54 } 66 }
55 </script> 67 </script>
56 </head> 68 </head>
57 <body> 69 <body>
58 <div> 70 <div>
59 <span id="anchorHere">TEST</span> 71 <span id="anchorHere">TEST</span>
60 </div> 72 </div>
61 </body> 73 </body>
62 </html> 74 </html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698