paramName
( optional Type array of paramType )
Undocumented.
Description of this parameter from the json schema.

Google Chrome Extensions (Labs)

chrome.test

API reference: chrome.test

Methods

log

void chrome.test.log(, string message)

Logs a message during internal unit testing.

Parameters

message
( Type array of string )
Undocumented.
Description of this parameter from the json schema.

Returns

Callback function

The callback parameter should specify a function that looks like this:

If you specify the callback parameter, it should specify a function that looks like this:

function(Type param1, Type param2) {...});

notifyFail

void chrome.test.notifyFail(, string message)

Notify the browser process that test code running in the extension failed. This is only used for internal unit testing.

Parameters

message
( Type array of string )
Undocumented.
Description of this parameter from the json schema.

Returns

Callback function

The callback parameter should specify a function that looks like this:

If you specify the callback parameter, it should specify a function that looks like this:

function(Type param1, Type param2) {...});

notifyPass

void chrome.test.notifyPass(, string message)

Notify the browser process that test code running in the extension passed. This is only used for internal unit testing.

Parameters

message
( optional Type array of string )
Undocumented.
Description of this parameter from the json schema.

Returns

Callback function

The callback parameter should specify a function that looks like this:

If you specify the callback parameter, it should specify a function that looks like this:

function(Type param1, Type param2) {...});

resetQuota

void chrome.test.resetQuota(, )

Reset all accumulated quota state for all extensions. This is only used for internal unit testing.

Parameters

Returns

Callback function

The callback parameter should specify a function that looks like this:

If you specify the callback parameter, it should specify a function that looks like this:

function(Type param1, Type param2) {...});