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..c065c65308a8b7b5c941a1c67cff297c849405ae 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) |
+{ |
+ 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.call(null, nextTest); |
apavlov
2014/03/26 13:15:38
Why not
fun(nextTest);
?
lushnikov
2014/03/26 13:23:23
Done.
|
+ } |
+ |
+ nextTest(); |
+} |
+ |
/** |
* @param {function(object)=} callback |
*/ |