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

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

Issue 752143003: [DevTools] Expose DevToolsAPI in inspector-protocol tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
diff --git a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
index dca6752157ad0ab0a608263820fc27f219d357dc..85443233196e879c542e4f63642c3c049701953e 100644
--- a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
+++ b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
@@ -26,7 +26,10 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<head>
<script>
-InspectorFrontendAPI = {};
+DevToolsAPI = {};
+
+// FIXME: remove once embedders switch to new API.
+InspectorFrontendAPI = DevToolsAPI;
InspectorTest = {};
InspectorTest._dispatchTable = [];
@@ -160,7 +163,7 @@ InspectorTest.sendRawCommand = function(command, handler)
/**
* @param {string|!Object} messageOrObject
*/
-InspectorFrontendAPI.dispatchMessage = function(messageOrObject)
+DevToolsAPI.dispatchMessage = function(messageOrObject)
{
var messageObject = (typeof messageOrObject === "string" ? JSON.parse(messageOrObject) : messageOrObject);
if (InspectorTest._collectProtocolMessages)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698