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

Unified Diff: chrome/test/data/webui/test_api.js

Issue 19822007: Updated Google Now to Check the Geolocation Access Preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@r213016
Patch Set: Sync and Resolve Conflicts Created 7 years, 5 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/browser/resources/google_now/utility.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/test_api.js
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js
index fcf79d15141336a26703e2f8fcb52d77ce83fbb4..8ff7bfa8e2aad82259ed6f93baf33a868abdba02 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -1600,6 +1600,11 @@ var testing = {};
var callbackArguments = Array.prototype.slice.call(arguments, 2);
return callFunction(function() {
savedArgs.arguments[callbackParameter].apply(null, callbackArguments);
+
+ // Mock4JS does not clear the saved args after invocation.
+ // To allow reuse of the same SaveMockArguments for multiple
+ // invocations with similar arguments, clear them here.
+ savedArgs.arguments.splice(0, savedArgs.arguments.length);
});
}
« no previous file with comments | « chrome/browser/resources/google_now/utility.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698