Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js

Issue 211193006: DevTools: [CSS] use setStyleText as undo action for setPropertyText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add testcase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-protocol-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
*/
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-protocol-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698