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

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

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address vsevik comments Created 6 years, 10 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
Index: LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js
diff --git a/LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js b/LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js
index c650ea176ea455b00c7668c6bd4e819417de2f2c..b494ae78030fba482a8096f35c0bb46718174bd0 100644
--- a/LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js
+++ b/LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js
@@ -228,6 +228,20 @@ InspectorTest.importScript = function(scriptName)
window.eval(xhr.responseText + "\n//@ sourceURL=" + scriptName);
}
+InspectorTest.sendCommandAndBailOnError = function(command, properties, callback) {
vsevik 2014/02/25 11:20:48 { on the next line
lushnikov 2014/02/25 11:32:00 Done.
+ InspectorTest.sendCommand(command, properties || {}, commandCallback);
+ function commandCallback(msg)
+ {
+ if (msg.error) {
+ InspectorTest.log("ERROR: " + msg.error.message);
+ InspectorTest.completeTest();
+ return;
+ }
+ if (callback)
+ callback(msg.result);
+ }
+}
+
window.addEventListener("message", function(event) {
try {
eval(event.data);
@@ -237,3 +251,19 @@ window.addEventListener("message", function(event) {
throw e;
}
});
+
+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);
+ }
+
+ nextTest();
+}
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-edit-range.html » ('j') | Source/devtools/protocol.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698