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

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: do not crash renderer in case of invalid styleId 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..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
*/
« 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