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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/popup_api/toolband.html
===================================================================
--- chrome/test/data/extensions/api_test/popup_api/toolband.html (revision 32240)
+++ chrome/test/data/extensions/api_test/popup_api/toolband.html (working copy)
@@ -5,6 +5,18 @@
window.onload = function() {
chrome.test.runTests([
+ function noPopup() {
+ chrome.test.assertTrue(
+ undefined === chrome.experimental.extension.getPopupView(),
+ "Popup view is defined when no popup shown.");
+ chrome.test.succeed();
+ },
+ function noParentWindow() {
+ chrome.test.assertTrue(
+ undefined === chrome.experimental.popup.getParentWindow(),
+ "Parent );
+ chrome.test.succeed();
+ },
function show() {
var showDetails = {
"relativeTo": document.getElementById("anchorHere")
« 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