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

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: 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..b70df0d920f08aae656d208af403432b42e54f10 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.sendCommandOrDie = function(command, properties, callback) {
apavlov 2014/02/20 09:58:14 The name does not clearly describe the functionali
lushnikov 2014/02/20 14:17:04 Done.
+ InspectorTest.sendCommand(command, properties || {}, commandCallback);
+ function commandCallback(msg)
+ {
+ if (msg.error) {
+ InspectorTest.log(msg.error.message);
apavlov 2014/02/20 09:58:14 I'd vote for ("ERROR: " + msg.error.message), sinc
lushnikov 2014/02/20 14:17:04 Done.
+ InspectorTest.completeTest();
+ return;
+ }
+ if (callback)
+ callback(msg.result);
+ }
+}
+
window.addEventListener("message", function(event) {
try {
eval(event.data);

Powered by Google App Engine
This is Rietveld 408576698