Chromium Code Reviews| Index: LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js |
| diff --git a/LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js b/LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js |
| index 084f9274d6ac5b81879d25aa67e56969f5b7f022..85c6e4a8bb9d4839de20bb5c075afc783a58a013 100644 |
| --- a/LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js |
| +++ b/LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js |
| @@ -66,6 +66,32 @@ InspectorTest.sendCommandOrDie = function(command, properties, callback) |
| } |
| } |
| +InspectorTest.domUndo = function(callback) |
|
yurys
2014/07/21 06:19:13
Why all these methods are in this file rather than
lushnikov
2014/07/24 12:34:39
It's a general purpose methods.
|
| +{ |
| + InspectorTest.sendCommandOrDie("DOM.undo", {}, callback); |
| +} |
| + |
| +InspectorTest.undoAndNext = function(next) |
| +{ |
| + return InspectorTest.domUndo.bind(InspectorTest, next); |
| +} |
| + |
| +InspectorTest.runTestSuite = function(testSuite) |
| +{ |
| + function nextTest() |
| + { |
| + if (!testSuite.length) { |
| + InspectorTest.completeTest(); |
| + return; |
| + } |
| + var fun = testSuite.shift(); |
| + InspectorTest.log("\nRunning test: " + fun.name); |
| + fun(nextTest); |
| + } |
| + |
| + nextTest(); |
| +} |
| + |
| /** |
| * @param {function(object)=} callback |
| */ |