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

Unified Diff: chrome/test/data/extensions/api_test/get_views/test.js

Issue 2105033003: tabId support to chrome.extensions.getViews() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor style warnings Created 4 years, 6 months 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/renderer/resources/extensions/file_entry_binding_util.js ('k') | extensions/common/constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/get_views/test.js
diff --git a/chrome/test/data/extensions/api_test/get_views/test.js b/chrome/test/data/extensions/api_test/get_views/test.js
index 765c4c0fb42605d6414f40e033c306b5609b3342..71f1d13ed75ddb92b3963fc63e939a07a07ab3a6 100644
--- a/chrome/test/data/extensions/api_test/get_views/test.js
+++ b/chrome/test/data/extensions/api_test/get_views/test.js
@@ -13,6 +13,7 @@ var popupWindowId = 0;
// This function is called by the popup during the test run.
function popupCallback() {
+ // printf("Popup Callback");
Devlin 2016/07/01 00:35:28 Don't forget to remove debugging code. :)
// We have now added an popup so the total count goes up one.
assertEq(2, chrome.extension.getViews().length);
assertEq(1, chrome.extension.getViews({"windowId": popupWindowId}).length);
@@ -21,6 +22,7 @@ function popupCallback() {
}
function optionsPageCallback() {
+ //printf("Options Popup Callback");
assertEq(3, chrome.extension.getViews().length);
assertEq(1, chrome.extension.getViews({"windowId": popupWindowId}).length);
assertEq(2, chrome.extension.getViews(
@@ -30,6 +32,7 @@ function optionsPageCallback() {
var tests = [
function getViews() {
+ //printf("Other fn");
assertTrue(typeof(chrome.extension.getBackgroundPage()) != "undefined");
assertEq(1, chrome.extension.getViews().length);
assertEq(0, chrome.extension.getViews({"type": "tab"}).length);
« no previous file with comments | « chrome/renderer/resources/extensions/file_entry_binding_util.js ('k') | extensions/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698