diff options
Diffstat (limited to 'chrome/common/extensions')
-rwxr-xr-x | chrome/common/extensions/api/extension_api.json | 6 | ||||
-rw-r--r-- | chrome/common/extensions/docs/test.html | 55 |
2 files changed, 61 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 8797153..4765076 100755 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -1747,6 +1747,12 @@ ] }, { + "name": "resetQuota", + "type": "function", + "description": "Reset all accumulated quota state for all extensions. This is only used for internal unit testing.", + "parameters": [] + }, + { "name": "log", "type": "function", "description": "Logs a message during internal unit testing.", diff --git a/chrome/common/extensions/docs/test.html b/chrome/common/extensions/docs/test.html index 2c80d57..97d22ae 100644 --- a/chrome/common/extensions/docs/test.html +++ b/chrome/common/extensions/docs/test.html @@ -224,6 +224,8 @@ <a href="#method-notifyFail">notifyFail</a> </li><li> <a href="#method-notifyPass">notifyPass</a> + </li><li> + <a href="#method-resetQuota">resetQuota</a> </li> </ol> </li> @@ -573,6 +575,59 @@ </div> <!-- /description --> + </div><div class="apiItem"> + <a name="method-resetQuota"></a> <!-- method-anchor --> + <h4>resetQuota</h4> + + <div class="summary"><span style="display: none; ">void</span> + <!-- Note: intentionally longer 80 columns --> + <span>chrome.test.resetQuota</span>(<span style="display: none; "><span>, </span><span></span> + <var><span></span></var></span>)</div> + + <div class="description"> + <p class="todo" style="display: none; ">Undocumented.</p> + <p>Reset all accumulated quota state for all extensions. This is only used for internal unit testing.</p> + + <!-- PARAMETERS --> + <h4>Parameters</h4> + <dl> + <div style="display: none; "> + <div> + </div> + </div> + </dl> + + <!-- RETURNS --> + <h4 style="display: none; ">Returns</h4> + <dl> + <div style="display: none; "> + <div> + </div> + </div> + </dl> + + <!-- CALLBACK --> + <div style="display: none; "> + <div> + <h4>Callback function</h4> + <p> + If you specify the <em>callback</em> parameter, + it should specify a function that looks like this: + </p> + + <!-- Note: intentionally longer 80 columns --> + <pre>function(<span>Type param1, Type param2</span>) <span class="subdued">{...}</span>);</pre> + <dl> + <div> + <div> + </div> + </div> + </dl> + </div> + </div> + + </div> <!-- /description --> + </div> <!-- /apiItem --> </div> <!-- /apiGroup --> |