summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/extensions/api_test/context_menus/test.js15
-rw-r--r--chrome/test/data/extensions/context_menus/test.js2
2 files changed, 10 insertions, 7 deletions
diff --git a/chrome/test/data/extensions/api_test/context_menus/test.js b/chrome/test/data/extensions/api_test/context_menus/test.js
index 14cc1d7..65ca7d9 100644
--- a/chrome/test/data/extensions/api_test/context_menus/test.js
+++ b/chrome/test/data/extensions/api_test/context_menus/test.js
@@ -21,14 +21,16 @@ var tests = [
},
function remove() {
- chrome.contextMenus.create({"title":"1"}, function(id) {
+ var id;
+ id = chrome.contextMenus.create({"title":"1"}, function() {
assertNoLastError();
chrome.contextMenus.remove(id, chrome.test.callbackPass());
});
},
function update() {
- chrome.contextMenus.create({"title":"update test"}, function(id) {
+ var id;
+ id = chrome.contextMenus.create({"title":"update test"}, function() {
assertNoLastError();
chrome.contextMenus.update(id, {"title": "test2"},
chrome.test.callbackPass());
@@ -36,9 +38,9 @@ var tests = [
},
function removeAll() {
- chrome.contextMenus.create({"title":"1"}, function(id) {
+ chrome.contextMenus.create({"title":"1"}, function() {
assertNoLastError();
- chrome.contextMenus.create({"title":"2"}, function(id2) {
+ chrome.contextMenus.create({"title":"2"}, function() {
assertNoLastError();
chrome.contextMenus.removeAll(chrome.test.callbackPass());
});
@@ -46,10 +48,11 @@ var tests = [
},
function hasParent() {
- chrome.contextMenus.create({"title":"parent"}, function(id) {
+ var id;
+ id = chrome.contextMenus.create({"title":"parent"}, function() {
assertNoLastError();
chrome.contextMenus.create({"title":"child", "parentId":id},
- function(id2) {
+ function() {
assertNoLastError();
chrome.test.succeed();
});
diff --git a/chrome/test/data/extensions/context_menus/test.js b/chrome/test/data/extensions/context_menus/test.js
index 9cab126..778b42c 100644
--- a/chrome/test/data/extensions/context_menus/test.js
+++ b/chrome/test/data/extensions/context_menus/test.js
@@ -26,7 +26,7 @@ function onclick(info) {
window.onload = function() {
chrome.experimental.contextMenus.create({"title":"Extension Item 1",
- "onclick": onclick}, function(id) {
+ "onclick": onclick}, function() {
if (!chrome.extension.lastError) {
navigateCurrentTab(chrome.extension.getURL("test.html"));
}