| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |