| 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);
|
| });
|
| }
|
|
|
|
|