Chromium Code Reviews| Index: chrome/test/data/webui/net_internals/net_internals_test.js |
| =================================================================== |
| --- chrome/test/data/webui/net_internals/net_internals_test.js (revision 112237) |
| +++ chrome/test/data/webui/net_internals/net_internals_test.js (working copy) |
| @@ -423,6 +423,25 @@ |
| } |
| }; |
| + // Creates an incognito window. May not be called if there already is an |
| + // incognito in exitence. Returns immediately. |
|
mmenke
2011/12/05 18:59:54
Added these here because if/when/whatever I added
|
| + function getCreateIncognitoBrowserTask() { |
| + return new CallFunctionTask( |
| + function() { |
| + chrome.send('createIncognitoBrowser'); |
| + }); |
| + }; |
| + |
| + // Closes an incognito window created with the task above. May only be |
| + // called if there's an incognito window created by the above function |
| + // that has yet to be closed. Returns immediately. |
| + function getCloseIncognitoBrowserTask() { |
| + return new CallFunctionTask( |
| + function() { |
| + chrome.send('closeIncognitoBrowser'); |
| + }); |
| + }; |
| + |
| /** |
| * Returns true if a node does not have a 'display' property of 'none'. |
| * @param {node}: node The node to check. |
| @@ -509,6 +528,9 @@ |
| switchToView: switchToView, |
| TaskQueue: TaskQueue, |
| Task: Task, |
| + CallFunctionTask: CallFunctionTask, |
| + getCreateIncognitoBrowserTask: getCreateIncognitoBrowserTask, |
| + getCloseIncognitoBrowserTask: getCloseIncognitoBrowserTask, |
| Source: Source, |
| Event: Event, |
| CreateBeginEvent: CreateBeginEvent, |