<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[188267] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/188267">188267</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2015-08-11 11:28:31 -0700 (Tue, 11 Aug 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests
https://bugs.webkit.org/show_bug.cgi?id=147787

Patch by Brian Burg &lt;bburg@apple.com&gt; on 2015-08-11
Reviewed by Timothy Hatcher.

Refactor test methods to use three distinct namespaces to reflect their implementation:

- InspectorProtocol contains commands that are only used from within protocol tests.
This includes sending and receiving protocol messages and checking message errors.

- InspectorTest contains test methods for full inspector frontend tests.

- ProtocolTest contains test methods for protocol tests.

In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces
will be unified so that implementations of log, assert, etc. are no longer duplicated.
For now, at least make it obvious at each callsite what code is being invoked.

* http/tests/inspector/console/access-inspected-object.html:
* http/tests/inspector/dom/resources/InspectorDOMListener.js:
* http/tests/inspector/page/loading-iframe-document-node.html:
* http/tests/inspector/resources/ProtocolTestStub.js:
* http/tests/inspector/resources/console-test.js:
* http/tests/inspector/resources/probe-test.js:
* inspector/console/console-message.html:
* inspector/console/css-source-locations.html:
* inspector/console/js-source-locations.html:
* inspector/console/x-frame-options-message.html:
* inspector/css/getSupportedCSSProperties.html:
* inspector/debugger/breakpoint-action-detach.html:
* inspector/debugger/breakpoint-action-with-exception.html:
* inspector/debugger/breakpoint-condition-detach.html:
* inspector/debugger/breakpoint-condition-with-bad-script.html:
* inspector/debugger/breakpoint-condition-with-exception.html:
* inspector/debugger/breakpoint-eval-with-exception.html:
* inspector/debugger/breakpoint-inside-conditons-and-actions.html:
* inspector/debugger/call-frame-function-name.html:
* inspector/debugger/call-frame-this-host.html:
* inspector/debugger/call-frame-this-nonstrict.html:
* inspector/debugger/call-frame-this-strict.html:
* inspector/debugger/debugger-statement.html:
* inspector/debugger/didSampleProbe-multiple-probes.html:
* inspector/debugger/hit-breakpoint-from-console.html:
* inspector/debugger/nested-inspectors.html:
* inspector/debugger/pause-dedicated-worker.html:
* inspector/debugger/pause-on-assert.html:
* inspector/debugger/regress-133182.html:
* inspector/debugger/removeBreakpoint.html:
* inspector/debugger/searchInContent-linebreaks.html:
* inspector/debugger/setBreakpoint-actions.html:
* inspector/debugger/setBreakpoint-autoContinue.html:
* inspector/debugger/setBreakpoint-column.html:
* inspector/debugger/setBreakpoint-condition.html:
* inspector/debugger/setBreakpoint-dfg-and-modify-local.html:
* inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html:
* inspector/debugger/setBreakpoint-dfg.html:
* inspector/debugger/setBreakpoint-options-exception.html:
* inspector/debugger/setBreakpoint.html:
* inspector/debugger/setBreakpointByUrl-sourceURL.html:
* inspector/debugger/setPauseOnExceptions-all.html:
* inspector/debugger/setPauseOnExceptions-none.html:
* inspector/debugger/setPauseOnExceptions-uncaught.html:
* inspector/debugger/setVariableValue.html:
* inspector/debugger/terminate-dedicated-worker-while-paused.html:
* inspector/dom-debugger/node-removed.html:
* inspector/dom/dom-remove-events.html:
* inspector/dom/dom-search-crash.html:
* inspector/dom/dom-search-with-context.html:
* inspector/dom/dom-search.html:
* inspector/dom/focus.html:
* inspector/dom/getAccessibilityPropertiesForNode.html:
* inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html:
* inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html:
* inspector/dom/highlight-flow-with-no-region.html:
* inspector/dom/remove-multiple-nodes.html:
* inspector/dom/request-child-nodes-depth.html:
* inspector/layers/layers-anonymous.html:
* inspector/layers/layers-blending-compositing-reasons.html:
* inspector/layers/layers-compositing-reasons.html:
* inspector/layers/layers-for-node.html:
* inspector/layers/layers-generated-content.html:
* inspector/layers/layers-reflected-content.html:
* inspector/page/archive.html:
* inspector/page/frameScheduledNavigation.html:
* inspector/page/frameStartedLoading.html:
* inspector/page/javascriptDialogEvents.html:
* inspector/page/setEmulatedMedia.html:
* inspector/runtime/getProperties.html:
* inspector/unit-tests/async-test-suite.html:
* inspector/unit-tests/sync-test-suite.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectorconsoleaccessinspectedobjecthtml">trunk/LayoutTests/http/tests/inspector/console/access-inspected-object.html</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectordomresourcesInspectorDOMListenerjs">trunk/LayoutTests/http/tests/inspector/dom/resources/InspectorDOMListener.js</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectorpageloadingiframedocumentnodehtml">trunk/LayoutTests/http/tests/inspector/page/loading-iframe-document-node.html</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectorresourcesProtocolTestStubjs">trunk/LayoutTests/http/tests/inspector/resources/ProtocolTestStub.js</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectorresourcesconsoletestjs">trunk/LayoutTests/http/tests/inspector/resources/console-test.js</a></li>
<li><a href="#trunkLayoutTestshttptestsinspectorresourcesprobetestjs">trunk/LayoutTests/http/tests/inspector/resources/probe-test.js</a></li>
<li><a href="#trunkLayoutTestsinspectorconsoleconsolemessagehtml">trunk/LayoutTests/inspector/console/console-message.html</a></li>
<li><a href="#trunkLayoutTestsinspectorconsolecsssourcelocationshtml">trunk/LayoutTests/inspector/console/css-source-locations.html</a></li>
<li><a href="#trunkLayoutTestsinspectorconsolejssourcelocationshtml">trunk/LayoutTests/inspector/console/js-source-locations.html</a></li>
<li><a href="#trunkLayoutTestsinspectorconsolexframeoptionsmessagehtml">trunk/LayoutTests/inspector/console/x-frame-options-message.html</a></li>
<li><a href="#trunkLayoutTestsinspectorcssgetSupportedCSSPropertieshtml">trunk/LayoutTests/inspector/css/getSupportedCSSProperties.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointactiondetachhtml">trunk/LayoutTests/inspector/debugger/breakpoint-action-detach.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointactionwithexceptionhtml">trunk/LayoutTests/inspector/debugger/breakpoint-action-with-exception.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointconditiondetachhtml">trunk/LayoutTests/inspector/debugger/breakpoint-condition-detach.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointconditionwithbadscripthtml">trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-bad-script.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointconditionwithexceptionhtml">trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-exception.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointevalwithexceptionhtml">trunk/LayoutTests/inspector/debugger/breakpoint-eval-with-exception.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerbreakpointinsideconditonsandactionshtml">trunk/LayoutTests/inspector/debugger/breakpoint-inside-conditons-and-actions.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggercallframefunctionnamehtml">trunk/LayoutTests/inspector/debugger/call-frame-function-name.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggercallframethishosthtml">trunk/LayoutTests/inspector/debugger/call-frame-this-host.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggercallframethisnonstricthtml">trunk/LayoutTests/inspector/debugger/call-frame-this-nonstrict.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggercallframethisstricthtml">trunk/LayoutTests/inspector/debugger/call-frame-this-strict.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerdebuggerstatementhtml">trunk/LayoutTests/inspector/debugger/debugger-statement.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerdidSampleProbemultipleprobeshtml">trunk/LayoutTests/inspector/debugger/didSampleProbe-multiple-probes.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerhitbreakpointfromconsolehtml">trunk/LayoutTests/inspector/debugger/hit-breakpoint-from-console.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggernestedinspectorshtml">trunk/LayoutTests/inspector/debugger/nested-inspectors.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerpausededicatedworkerhtml">trunk/LayoutTests/inspector/debugger/pause-dedicated-worker.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerpauseonasserthtml">trunk/LayoutTests/inspector/debugger/pause-on-assert.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerregress133182html">trunk/LayoutTests/inspector/debugger/regress-133182.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerremoveBreakpointhtml">trunk/LayoutTests/inspector/debugger/removeBreakpoint.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersearchInContentlinebreakshtml">trunk/LayoutTests/inspector/debugger/searchInContent-linebreaks.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointactionshtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-actions.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointautoContinuehtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-autoContinue.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointcolumnhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-column.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointconditionhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-condition.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointdfgandmodifylocalhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-and-modify-local.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointdfgcalleeandexaminedfglocalhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointdfghtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointoptionsexceptionhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint-options-exception.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointhtml">trunk/LayoutTests/inspector/debugger/setBreakpoint.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetBreakpointByUrlsourceURLhtml">trunk/LayoutTests/inspector/debugger/setBreakpointByUrl-sourceURL.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsallhtml">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsnonehtml">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsuncaughthtml">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetVariableValuehtml">trunk/LayoutTests/inspector/debugger/setVariableValue.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerterminatededicatedworkerwhilepausedhtml">trunk/LayoutTests/inspector/debugger/terminate-dedicated-worker-while-paused.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomdomremoveeventshtml">trunk/LayoutTests/inspector/dom/dom-remove-events.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomdomsearchcrashhtml">trunk/LayoutTests/inspector/dom/dom-search-crash.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomdomsearchwithcontexthtml">trunk/LayoutTests/inspector/dom/dom-search-with-context.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomdomsearchhtml">trunk/LayoutTests/inspector/dom/dom-search.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomfocushtml">trunk/LayoutTests/inspector/dom/focus.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNodehtml">trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNode_liveRegionhtml">trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNode_mouseEventNodeIdhtml">trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomhighlightflowwithnoregionhtml">trunk/LayoutTests/inspector/dom/highlight-flow-with-no-region.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomremovemultiplenodeshtml">trunk/LayoutTests/inspector/dom/remove-multiple-nodes.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomrequestchildnodesdepthhtml">trunk/LayoutTests/inspector/dom/request-child-nodes-depth.html</a></li>
<li><a href="#trunkLayoutTestsinspectordomdebuggernoderemovedhtml">trunk/LayoutTests/inspector/dom-debugger/node-removed.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayersanonymoushtml">trunk/LayoutTests/inspector/layers/layers-anonymous.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayersblendingcompositingreasonshtml">trunk/LayoutTests/inspector/layers/layers-blending-compositing-reasons.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayerscompositingreasonshtml">trunk/LayoutTests/inspector/layers/layers-compositing-reasons.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayersfornodehtml">trunk/LayoutTests/inspector/layers/layers-for-node.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayersgeneratedcontenthtml">trunk/LayoutTests/inspector/layers/layers-generated-content.html</a></li>
<li><a href="#trunkLayoutTestsinspectorlayerslayersreflectedcontenthtml">trunk/LayoutTests/inspector/layers/layers-reflected-content.html</a></li>
<li><a href="#trunkLayoutTestsinspectorpagearchivehtml">trunk/LayoutTests/inspector/page/archive.html</a></li>
<li><a href="#trunkLayoutTestsinspectorpageframeScheduledNavigationhtml">trunk/LayoutTests/inspector/page/frameScheduledNavigation.html</a></li>
<li><a href="#trunkLayoutTestsinspectorpageframeStartedLoadinghtml">trunk/LayoutTests/inspector/page/frameStartedLoading.html</a></li>
<li><a href="#trunkLayoutTestsinspectorpagejavascriptDialogEventshtml">trunk/LayoutTests/inspector/page/javascriptDialogEvents.html</a></li>
<li><a href="#trunkLayoutTestsinspectorpagesetEmulatedMediahtml">trunk/LayoutTests/inspector/page/setEmulatedMedia.html</a></li>
<li><a href="#trunkLayoutTestsinspectorruntimegetPropertieshtml">trunk/LayoutTests/inspector/runtime/getProperties.html</a></li>
<li><a href="#trunkLayoutTestsinspectorunittestsasynctestsuitehtml">trunk/LayoutTests/inspector/unit-tests/async-test-suite.html</a></li>
<li><a href="#trunkLayoutTestsinspectorunittestssynctestsuitehtml">trunk/LayoutTests/inspector/unit-tests/sync-test-suite.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/ChangeLog        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -1,3 +1,96 @@
</span><ins>+2015-08-11  Brian Burg  &lt;bburg@apple.com&gt;
+
+        Web Inspector: use different namespaces in test fixtures for protocol tests and frontend tests
+        https://bugs.webkit.org/show_bug.cgi?id=147787
+
+        Reviewed by Timothy Hatcher.
+
+        Refactor test methods to use three distinct namespaces to reflect their implementation:
+
+        - InspectorProtocol contains commands that are only used from within protocol tests.
+        This includes sending and receiving protocol messages and checking message errors.
+
+        - InspectorTest contains test methods for full inspector frontend tests.
+
+        - ProtocolTest contains test methods for protocol tests.
+
+        In a subsequent patch, most methods in InspectorTest and ProtocolTest namespaces
+        will be unified so that implementations of log, assert, etc. are no longer duplicated.
+        For now, at least make it obvious at each callsite what code is being invoked.
+
+        * http/tests/inspector/console/access-inspected-object.html:
+        * http/tests/inspector/dom/resources/InspectorDOMListener.js:
+        * http/tests/inspector/page/loading-iframe-document-node.html:
+        * http/tests/inspector/resources/ProtocolTestStub.js:
+        * http/tests/inspector/resources/console-test.js:
+        * http/tests/inspector/resources/probe-test.js:
+        * inspector/console/console-message.html:
+        * inspector/console/css-source-locations.html:
+        * inspector/console/js-source-locations.html:
+        * inspector/console/x-frame-options-message.html:
+        * inspector/css/getSupportedCSSProperties.html:
+        * inspector/debugger/breakpoint-action-detach.html:
+        * inspector/debugger/breakpoint-action-with-exception.html:
+        * inspector/debugger/breakpoint-condition-detach.html:
+        * inspector/debugger/breakpoint-condition-with-bad-script.html:
+        * inspector/debugger/breakpoint-condition-with-exception.html:
+        * inspector/debugger/breakpoint-eval-with-exception.html:
+        * inspector/debugger/breakpoint-inside-conditons-and-actions.html:
+        * inspector/debugger/call-frame-function-name.html:
+        * inspector/debugger/call-frame-this-host.html:
+        * inspector/debugger/call-frame-this-nonstrict.html:
+        * inspector/debugger/call-frame-this-strict.html:
+        * inspector/debugger/debugger-statement.html:
+        * inspector/debugger/didSampleProbe-multiple-probes.html:
+        * inspector/debugger/hit-breakpoint-from-console.html:
+        * inspector/debugger/nested-inspectors.html:
+        * inspector/debugger/pause-dedicated-worker.html:
+        * inspector/debugger/pause-on-assert.html:
+        * inspector/debugger/regress-133182.html:
+        * inspector/debugger/removeBreakpoint.html:
+        * inspector/debugger/searchInContent-linebreaks.html:
+        * inspector/debugger/setBreakpoint-actions.html:
+        * inspector/debugger/setBreakpoint-autoContinue.html:
+        * inspector/debugger/setBreakpoint-column.html:
+        * inspector/debugger/setBreakpoint-condition.html:
+        * inspector/debugger/setBreakpoint-dfg-and-modify-local.html:
+        * inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html:
+        * inspector/debugger/setBreakpoint-dfg.html:
+        * inspector/debugger/setBreakpoint-options-exception.html:
+        * inspector/debugger/setBreakpoint.html:
+        * inspector/debugger/setBreakpointByUrl-sourceURL.html:
+        * inspector/debugger/setPauseOnExceptions-all.html:
+        * inspector/debugger/setPauseOnExceptions-none.html:
+        * inspector/debugger/setPauseOnExceptions-uncaught.html:
+        * inspector/debugger/setVariableValue.html:
+        * inspector/debugger/terminate-dedicated-worker-while-paused.html:
+        * inspector/dom-debugger/node-removed.html:
+        * inspector/dom/dom-remove-events.html:
+        * inspector/dom/dom-search-crash.html:
+        * inspector/dom/dom-search-with-context.html:
+        * inspector/dom/dom-search.html:
+        * inspector/dom/focus.html:
+        * inspector/dom/getAccessibilityPropertiesForNode.html:
+        * inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html:
+        * inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html:
+        * inspector/dom/highlight-flow-with-no-region.html:
+        * inspector/dom/remove-multiple-nodes.html:
+        * inspector/dom/request-child-nodes-depth.html:
+        * inspector/layers/layers-anonymous.html:
+        * inspector/layers/layers-blending-compositing-reasons.html:
+        * inspector/layers/layers-compositing-reasons.html:
+        * inspector/layers/layers-for-node.html:
+        * inspector/layers/layers-generated-content.html:
+        * inspector/layers/layers-reflected-content.html:
+        * inspector/page/archive.html:
+        * inspector/page/frameScheduledNavigation.html:
+        * inspector/page/frameStartedLoading.html:
+        * inspector/page/javascriptDialogEvents.html:
+        * inspector/page/setEmulatedMedia.html:
+        * inspector/runtime/getProperties.html:
+        * inspector/unit-tests/async-test-suite.html:
+        * inspector/unit-tests/sync-test-suite.html:
+
</ins><span class="cx"> 2015-08-11  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] Arabic letter Yeh is drawn in LastResort
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectorconsoleaccessinspectedobjecthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/console/access-inspected-object.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/console/access-inspected-object.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/console/access-inspected-object.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -9,22 +9,22 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, didGetDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, didGetDocument);
</ins><span class="cx"> 
</span><span class="cx">     function didGetDocument(messageObject)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, {
</ins><span class="cx">                 &quot;nodeId&quot;: messageObject.result.root.nodeId,
</span><span class="cx">                 &quot;selector&quot;: &quot;iframe#myframe&quot;
</span><span class="cx">             }, didFindIframe);
</span><del>-        InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = iframeRequestHandler;
</del><ins>+        InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = iframeRequestHandler;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function didFindIframe(messageObject)
</span><span class="cx">     {
</span><span class="cx">         if (messageObject.error) {
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + messageObject.error);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -33,8 +33,8 @@
</span><span class="cx">         var node = messageObject.params.nodes[0];
</span><span class="cx">         if (!node || node.nodeName !== &quot;IFRAME&quot;)
</span><span class="cx">             return;
</span><del>-        InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = null;
-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, {
</del><ins>+        InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = null;
+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, {
</ins><span class="cx">                 &quot;nodeId&quot;: node.contentDocument.nodeId,
</span><span class="cx">                 &quot;selector&quot;: &quot;div#rootDiv&quot;
</span><span class="cx">             }, didFindDiv);
</span><span class="lines">@@ -42,15 +42,15 @@
</span><span class="cx"> 
</span><span class="cx">     function didFindDiv(messageObject)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(&quot;Console.enable&quot;, {});
-        InspectorTest.sendCommand(&quot;Console.addInspectedNode&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Console.enable&quot;, {});
+        InspectorProtocol.sendCommand(&quot;Console.addInspectedNode&quot;, {
</ins><span class="cx">                 &quot;nodeId&quot;: messageObject.result.nodeId
</span><span class="cx">             }, didAddInspectedNode);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function didAddInspectedNode(messageObject)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                 &quot;expression&quot;: &quot;$0&quot;,
</span><span class="cx">                 &quot;includeCommandLineAPI&quot;: true
</span><span class="cx">             }, didEvaluate);
</span><span class="lines">@@ -59,10 +59,10 @@
</span><span class="cx">     function didEvaluate(messageObject)
</span><span class="cx">     {
</span><span class="cx">         if (messageObject.result.wasThrown)
</span><del>-            InspectorTest.log(&quot;FAIL: unexpected exception: &quot; + JSON.stringify(messageObject, null, 2));
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpected exception: &quot; + JSON.stringify(messageObject, null, 2));
</ins><span class="cx">         if (messageObject.result.result.value !== null)
</span><del>-            InspectorTest.log(&quot;FAIL: unexpected value: &quot; + JSON.stringify(messageObject, null, 2));
-        InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpected value: &quot; + JSON.stringify(messageObject, null, 2));
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectordomresourcesInspectorDOMListenerjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/dom/resources/InspectorDOMListener.js (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/dom/resources/InspectorDOMListener.js        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/dom/resources/InspectorDOMListener.js        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -31,9 +31,9 @@
</span><span class="cx"> {
</span><span class="cx">     var nodesById = {};
</span><span class="cx"> 
</span><del>-    InspectorTest.addEventListener(&quot;DOM.setChildNodes&quot;, onSetChildNodes);
-    InspectorTest.addEventListener(&quot;DOM.childNodeRemoved&quot;, onChildNodeRemoved);
-    InspectorTest.addEventListener(&quot;DOM.childNodeInserted&quot;, onChildNodeInserted);
</del><ins>+    InspectorProtocol.addEventListener(&quot;DOM.setChildNodes&quot;, onSetChildNodes);
+    InspectorProtocol.addEventListener(&quot;DOM.childNodeRemoved&quot;, onChildNodeRemoved);
+    InspectorProtocol.addEventListener(&quot;DOM.childNodeInserted&quot;, onChildNodeInserted);
</ins><span class="cx"> 
</span><span class="cx">     function createNodeAttributesMap(attributes)
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectorpageloadingiframedocumentnodehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/page/loading-iframe-document-node.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/page/loading-iframe-document-node.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/page/loading-iframe-document-node.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -27,24 +27,24 @@
</span><span class="cx">     4. Use the JS object to retrieve the DOM agent nodeid for the document node.
</span><span class="cx">     */
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Page.frameStartedLoading&quot;] = step2_onFrameStartedLoading;
-    InspectorTest.eventHandler[&quot;Runtime.executionContextCreated&quot;] = step3_onExecutionContextCreated;
-    InspectorTest.eventHandler[&quot;Page.loadEventFired&quot;] = onLoadEventFired;
</del><ins>+    InspectorProtocol.eventHandler[&quot;Page.frameStartedLoading&quot;] = step2_onFrameStartedLoading;
+    InspectorProtocol.eventHandler[&quot;Runtime.executionContextCreated&quot;] = step3_onExecutionContextCreated;
+    InspectorProtocol.eventHandler[&quot;Page.loadEventFired&quot;] = onLoadEventFired;
</ins><span class="cx">     
</span><span class="cx">     var targetFrameId = null;
</span><span class="cx"> 
</span><span class="cx">     function step1_bootstrap() {
</span><del>-        InspectorTest.log(&quot;step1_bootstrap&quot;);
</del><ins>+        ProtocolTest.log(&quot;step1_bootstrap&quot;);
</ins><span class="cx">         // Enable the frame events.
</span><del>-        InspectorTest.sendCommand(&quot;Page.enable&quot;, {}, function() {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {}, function() {
</ins><span class="cx">             // Enable the Runtime.executionContextCreated event.
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.enable&quot;, {}, function() {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.enable&quot;, {}, function() {
</ins><span class="cx">                 // Initialize the DOM agent.
</span><del>-                InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, function() {
-                    InspectorTest.log(&quot;Main document loaded&quot;);
</del><ins>+                InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, function() {
+                    ProtocolTest.log(&quot;Main document loaded&quot;);
</ins><span class="cx">                     
</span><span class="cx">                     // Add the iframe to the DOM.
</span><del>-                    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;appendIframe()&quot; });
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;appendIframe()&quot; });
</ins><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         });
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx"> 
</span><span class="cx">     function step2_onFrameStartedLoading(response)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;step2_onFrameStartedLoading&quot;);
</del><ins>+        ProtocolTest.log(&quot;step2_onFrameStartedLoading&quot;);
</ins><span class="cx">         targetFrameId = response.params.frameId;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -62,9 +62,9 @@
</span><span class="cx">         if (frameId !== targetFrameId)
</span><span class="cx">             return;
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;step3_onExecutionContextCreated: Requesting document from iframe's context.&quot;);
</del><ins>+        ProtocolTest.log(&quot;step3_onExecutionContextCreated: Requesting document from iframe's context.&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">             &quot;expression&quot;: &quot;document&quot;,
</span><span class="cx">             &quot;objectGroup&quot;: &quot;console&quot;,
</span><span class="cx">             &quot;includeCommandLineAPI&quot;: false,
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">         function callback(response)
</span><span class="cx">         {
</span><span class="cx">             var objectId = response.result.result.objectId;
</span><del>-            InspectorTest.log(&quot;Received script object for iframe's document node&quot;);
</del><ins>+            ProtocolTest.log(&quot;Received script object for iframe's document node&quot;);
</ins><span class="cx">             step4_requestNode(frameId, objectId);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -86,27 +86,27 @@
</span><span class="cx">     {
</span><span class="cx">         function callback(response)
</span><span class="cx">         {
</span><del>-            InspectorTest.log(response.result.nodeId ? &quot;PASS: Received node for iframe's document node&quot; : &quot;FAIL: Iframe's document node is not available&quot;);
</del><ins>+            ProtocolTest.log(response.result.nodeId ? &quot;PASS: Received node for iframe's document node&quot; : &quot;FAIL: Iframe's document node is not available&quot;);
</ins><span class="cx">             completeTest();
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;step4_requestNode: Requesting DOM node for iframe's document node&quot;);
-        InspectorTest.sendCommand(&quot;DOM.requestNode&quot;, { objectId: objectId }, callback);
</del><ins>+        ProtocolTest.log(&quot;step4_requestNode: Requesting DOM node for iframe's document node&quot;);
+        InspectorProtocol.sendCommand(&quot;DOM.requestNode&quot;, { objectId: objectId }, callback);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Test finished&quot;);
</del><ins>+        ProtocolTest.log(&quot;Test finished&quot;);
</ins><span class="cx">         // Stop loading the iframe to avoid timing out the test.
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;removeIframe()&quot; });
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;removeIframe()&quot; });
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onLoadEventFired()
</span><span class="cx">     {
</span><span class="cx">         // We should finish the test before this event is triggered.
</span><span class="cx">         // If you see this in the output, then the slow-image is not loaded correctly in the iframe.
</span><del>-        InspectorTest.log(&quot;FAIL: Iframe load event fired before the test finished.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Iframe load event fired before the test finished.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     step1_bootstrap()
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectorresourcesProtocolTestStubjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/resources/ProtocolTestStub.js (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/resources/ProtocolTestStub.js        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/resources/ProtocolTestStub.js        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -25,16 +25,18 @@
</span><span class="cx">  */
</span><span class="cx"> InspectorFrontendAPI = {};
</span><span class="cx"> 
</span><del>-InspectorTest = {};
-InspectorTest._dispatchTable = [];
-InspectorTest._requestId = -1;
-InspectorTest.eventHandler = {};
-InspectorTest.logCount = 0;
</del><ins>+InspectorProtocol = {};
+InspectorProtocol._dispatchTable = [];
+InspectorProtocol._requestId = -1;
+InspectorProtocol.eventHandler = {};
</ins><span class="cx"> 
</span><del>-InspectorTest.dumpInspectorProtocolMessages = false;
-InspectorTest.forceSyncDebugLogging = false;
</del><ins>+ProtocolTest = {};
+ProtocolTest.logCount = 0;
</ins><span class="cx"> 
</span><del>-InspectorTest.sendCommand = function(methodOrObject, params, handler)
</del><ins>+ProtocolTest.forceSyncDebugLogging = false;
+InspectorProtocol.dumpInspectorProtocolMessages = false;
+
+InspectorProtocol.sendCommand = function(methodOrObject, params, handler)
</ins><span class="cx"> {
</span><span class="cx">     // Allow new-style arguments object, as in awaitCommand.
</span><span class="cx">     var method = methodOrObject;
</span><span class="lines">@@ -48,7 +50,7 @@
</span><span class="cx">     return this._requestId;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.awaitCommand = function(args)
</del><ins>+InspectorProtocol.awaitCommand = function(args)
</ins><span class="cx"> {
</span><span class="cx">     var {method, params} = args;
</span><span class="cx">     return new Promise(function(resolve, reject) {
</span><span class="lines">@@ -58,21 +60,21 @@
</span><span class="cx">     }.bind(this));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.awaitEvent = function(args)
</del><ins>+InspectorProtocol.awaitEvent = function(args)
</ins><span class="cx"> {
</span><span class="cx">     var {event} = args;
</span><span class="cx">     if (typeof event !== &quot;string&quot;)
</span><span class="cx">         throw new Error(&quot;Event must be a string.&quot;);
</span><span class="cx"> 
</span><span class="cx">     return new Promise(function(resolve, reject) {
</span><del>-        InspectorTest.eventHandler[event] = function(message) {
-            InspectorTest.eventHandler[event] = undefined;
</del><ins>+        InspectorProtocol.eventHandler[event] = function(message) {
+            InspectorProtocol.eventHandler[event] = undefined;
</ins><span class="cx">             resolve(message);
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.addEventListener = function(eventTypeOrObject, listener)
</del><ins>+InspectorProtocol.addEventListener = function(eventTypeOrObject, listener)
</ins><span class="cx"> {
</span><span class="cx">     var event = eventTypeOrObject;
</span><span class="cx">     if (typeof eventTypeOrObject === &quot;object&quot;)
</span><span class="lines">@@ -85,11 +87,11 @@
</span><span class="cx">         throw new Error(&quot;Event listener must be callable.&quot;);
</span><span class="cx"> 
</span><span class="cx">     // Convert to an array of listeners.
</span><del>-    var listeners = InspectorTest.eventHandler[event];
</del><ins>+    var listeners = InspectorProtocol.eventHandler[event];
</ins><span class="cx">     if (!listeners)
</span><del>-        listeners = InspectorTest.eventHandler[event] = [];
</del><ins>+        listeners = InspectorProtocol.eventHandler[event] = [];
</ins><span class="cx">     else if (typeof listeners === &quot;function&quot;)
</span><del>-        listeners = InspectorTest.eventHandler[event] = [listeners];
</del><ins>+        listeners = InspectorProtocol.eventHandler[event] = [listeners];
</ins><span class="cx"> 
</span><span class="cx">     // Prevent registering multiple times.
</span><span class="cx">     if (listeners.includes(listener))
</span><span class="lines">@@ -98,22 +100,31 @@
</span><span class="cx">     listeners.push(listener);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.sendMessage = function(messageObject)
</del><ins>+InspectorProtocol.sendMessage = function(messageObject)
</ins><span class="cx"> {
</span><span class="cx">     // This matches the debug dumping in InspectorBackend, which is bypassed
</span><del>-    // by InspectorTest. Return messages should be dumped by InspectorBackend.
</del><ins>+    // by InspectorProtocol. Return messages should be dumped by InspectorBackend.
</ins><span class="cx">     if (this.dumpInspectorProtocolMessages)
</span><span class="cx">         console.log(&quot;frontend: &quot; + JSON.stringify(messageObject));
</span><span class="cx"> 
</span><span class="cx">     InspectorFrontendHost.sendMessageToBackend(JSON.stringify(messageObject));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+InspectorProtocol.checkForError = function(responseObject)
+{
+    if (responseObject.error) {
+        ProtocolTest.log(&quot;PROTOCOL ERROR: &quot; + JSON.stringify(responseObject.error));
+        ProtocolTest.completeTest();
+        throw &quot;PROTOCOL ERROR&quot;;
+    }
+}
+
</ins><span class="cx"> InspectorFrontendAPI.dispatchMessageAsync = function(messageObject)
</span><span class="cx"> {
</span><span class="cx">     // If the message has an id, then it is a reply to a command.
</span><span class="cx">     var messageId = messageObject[&quot;id&quot;];
</span><span class="cx">     if (typeof messageId === &quot;number&quot;) {
</span><del>-        var handler = InspectorTest._dispatchTable[messageId];
</del><ins>+        var handler = InspectorProtocol._dispatchTable[messageId];
</ins><span class="cx">         if (!handler)
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="lines">@@ -129,7 +140,7 @@
</span><span class="cx">     // Otherwise, it is an event.
</span><span class="cx">     } else {
</span><span class="cx">         var eventName = messageObject[&quot;method&quot;];
</span><del>-        var handler = InspectorTest.eventHandler[eventName];
</del><ins>+        var handler = InspectorProtocol.eventHandler[eventName];
</ins><span class="cx">         if (!handler)
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="lines">@@ -149,7 +160,20 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.AsyncTestSuite = class AsyncTestSuite {
</del><ins>+window.addEventListener(&quot;message&quot;, function(event) {
+    try {
+        eval(event.data);
+    } catch (e) {
+        alert(e.stack);
+        ProtocolTest.completeTest();
+        throw e;
+    }
+});
+
+// FIXME: Everything below here should be extracted to a file containing shared test utilities
+// between the two harnesses.
+
+ProtocolTest.AsyncTestSuite = class AsyncTestSuite {
</ins><span class="cx">     constructor(name) {
</span><span class="cx">         if (!name || typeof name !== &quot;string&quot;)
</span><span class="cx">             throw new Error(&quot;Tried to create AsyncTestSuite without string suite name.&quot;);
</span><span class="lines">@@ -193,7 +217,7 @@
</span><span class="cx">     runTestCasesAndFinish()
</span><span class="cx">     {
</span><span class="cx">         function finish() {
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         this.runTestCases()
</span><span class="lines">@@ -210,19 +234,19 @@
</span><span class="cx"> 
</span><span class="cx">         this._startedRunning = true;
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;&quot;);
-        InspectorTest.log(&quot;== Running test suite: &quot; + this.name);
</del><ins>+        ProtocolTest.log(&quot;&quot;);
+        ProtocolTest.log(&quot;== Running test suite: &quot; + this.name);
</ins><span class="cx"> 
</span><span class="cx">         // Avoid adding newlines if nothing was logged.
</span><del>-        var priorLogCount = InspectorTest.logCount;
</del><ins>+        var priorLogCount = ProtocolTest.logCount;
</ins><span class="cx">         var suite = this;
</span><span class="cx">         var result = this.testcases.reduce(function(chain, testcase, i) {
</span><span class="cx">             return chain.then(function() {
</span><del>-                if (i &gt; 0 &amp;&amp; priorLogCount + 1 &lt; InspectorTest.logCount)
-                    InspectorTest.log(&quot;&quot;);
</del><ins>+                if (i &gt; 0 &amp;&amp; priorLogCount + 1 &lt; ProtocolTest.logCount)
+                    ProtocolTest.log(&quot;&quot;);
</ins><span class="cx"> 
</span><del>-                priorLogCount = InspectorTest.logCount;
-                InspectorTest.log(&quot;-- Running test case: &quot; + testcase.name);
</del><ins>+                priorLogCount = ProtocolTest.logCount;
+                ProtocolTest.log(&quot;-- Running test case: &quot; + testcase.name);
</ins><span class="cx">                 suite.runCount++;
</span><span class="cx">                 return new Promise(testcase.test);
</span><span class="cx">             });
</span><span class="lines">@@ -237,13 +261,13 @@
</span><span class="cx">             if (typeof message !== &quot;string&quot;)
</span><span class="cx">                 message = JSON.stringify(message);
</span><span class="cx"> 
</span><del>-            InspectorTest.log(&quot;!! EXCEPTION: &quot; + message);
</del><ins>+            ProtocolTest.log(&quot;!! EXCEPTION: &quot; + message);
</ins><span class="cx">             throw e; // Reject this promise by re-throwing the error.
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.SyncTestSuite = class SyncTestSuite {
</del><ins>+ProtocolTest.SyncTestSuite = class SyncTestSuite {
</ins><span class="cx">     constructor(name) {
</span><span class="cx">         if (!name || typeof name !== &quot;string&quot;)
</span><span class="cx">             throw new Error(&quot;Tried to create SyncTestSuite without string suite name.&quot;);
</span><span class="lines">@@ -286,7 +310,7 @@
</span><span class="cx">     runTestCasesAndFinish()
</span><span class="cx">     {
</span><span class="cx">         this.runTestCases();
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     runTestCases()
</span><span class="lines">@@ -298,19 +322,19 @@
</span><span class="cx"> 
</span><span class="cx">         this._startedRunning = true;
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;&quot;);
-        InspectorTest.log(&quot;== Running test suite: &quot; + this.name);
</del><ins>+        ProtocolTest.log(&quot;&quot;);
+        ProtocolTest.log(&quot;== Running test suite: &quot; + this.name);
</ins><span class="cx"> 
</span><del>-        var priorLogCount = InspectorTest.logCount;
</del><ins>+        var priorLogCount = ProtocolTest.logCount;
</ins><span class="cx">         var suite = this;
</span><span class="cx">         for (var i = 0; i &lt; this.testcases.length; i++) {
</span><span class="cx">             var testcase = this.testcases[i];
</span><del>-            if (i &gt; 0 &amp;&amp; priorLogCount + 1 &lt; InspectorTest.logCount)
-                InspectorTest.log(&quot;&quot;);
</del><ins>+            if (i &gt; 0 &amp;&amp; priorLogCount + 1 &lt; ProtocolTest.logCount)
+                ProtocolTest.log(&quot;&quot;);
</ins><span class="cx"> 
</span><del>-            priorLogCount = InspectorTest.logCount;
</del><ins>+            priorLogCount = ProtocolTest.logCount;
</ins><span class="cx"> 
</span><del>-            InspectorTest.log(&quot;-- Running test case: &quot; + testcase.name);
</del><ins>+            ProtocolTest.log(&quot;-- Running test case: &quot; + testcase.name);
</ins><span class="cx">             suite.runCount++;
</span><span class="cx">             try {
</span><span class="cx">                 var result = testcase.test.call(null);
</span><span class="lines">@@ -329,7 +353,7 @@
</span><span class="cx">                 if (typeof message !== &quot;string&quot;)
</span><span class="cx">                     message = JSON.stringify(message);
</span><span class="cx"> 
</span><del>-                InspectorTest.log(&quot;!! EXCEPTION: &quot; + message);
</del><ins>+                ProtocolTest.log(&quot;!! EXCEPTION: &quot; + message);
</ins><span class="cx">                 return false;
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="lines">@@ -339,18 +363,18 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Logs a message to test document.
</span><del>-InspectorTest.log = function(message)
</del><ins>+ProtocolTest.log = function(message)
</ins><span class="cx"> {
</span><del>-    ++InspectorTest.logCount;
</del><ins>+    ++ProtocolTest.logCount;
</ins><span class="cx"> 
</span><span class="cx">     if (this.forceSyncDebugLogging)
</span><span class="cx">         this.debugLog(message);
</span><span class="cx">     else
</span><del>-        this.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;log(&quot; + JSON.stringify(message) + &quot;)&quot; } );
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;log(&quot; + JSON.stringify(message) + &quot;)&quot; } );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Logs an assertion result to the test document.
</span><del>-InspectorTest.assert = function(condition, message)
</del><ins>+ProtocolTest.assert = function(condition, message)
</ins><span class="cx"> {
</span><span class="cx">     var status = condition ? &quot;PASS&quot; : &quot;FAIL&quot;;
</span><span class="cx">     var message = typeof message !== &quot;string&quot; ? JSON.stringify(message) : message;
</span><span class="lines">@@ -360,27 +384,18 @@
</span><span class="cx"> 
</span><span class="cx"> // Logs message a directly to stdout of the test process via alert function.
</span><span class="cx"> // This message should survive process crash or kill by timeout.
</span><del>-InspectorTest.debugLog = function(message)
</del><ins>+ProtocolTest.debugLog = function(message)
</ins><span class="cx"> {
</span><del>-    this.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;debugLog(&quot; + JSON.stringify(message) + &quot;)&quot; } );
</del><ins>+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;debugLog(&quot; + JSON.stringify(message) + &quot;)&quot; } );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.completeTest = function()
</del><ins>+ProtocolTest.completeTest = function()
</ins><span class="cx"> {
</span><del>-    this.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;closeTest();&quot;} );
</del><ins>+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;closeTest();&quot;} );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.checkForError = function(responseObject)
</del><ins>+ProtocolTest.importScript = function(scriptName)
</ins><span class="cx"> {
</span><del>-    if (responseObject.error) {
-        InspectorTest.log(&quot;PROTOCOL ERROR: &quot; + JSON.stringify(responseObject.error));
-        InspectorTest.completeTest();
-        throw &quot;PROTOCOL ERROR&quot;;
-    }
-}
-
-InspectorTest.importScript = function(scriptName)
-{
</del><span class="cx">     var xhr = new XMLHttpRequest();
</span><span class="cx">     var isAsyncRequest = false;
</span><span class="cx">     xhr.open(&quot;GET&quot;, scriptName, isAsyncRequest);
</span><span class="lines">@@ -390,13 +405,3 @@
</span><span class="cx">     var script = &quot;try { &quot; + xhr.responseText + &quot;} catch (e) { alert(&quot; + JSON.stringify(&quot;Error in: &quot; + scriptName) + &quot;); throw e; }&quot;;
</span><span class="cx">     window.eval(script);
</span><span class="cx"> }
</span><del>-
-window.addEventListener(&quot;message&quot;, function(event) {
-    try {
-        eval(event.data);
-    } catch (e) {
-        alert(e.stack);
-        InspectorTest.completeTest();
-        throw e;
-    }
-});
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectorresourcesconsoletestjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/resources/console-test.js (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/resources/console-test.js        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/resources/console-test.js        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><del>-InspectorTest.Console = {};
</del><ins>+ProtocolTest.Console = {};
</ins><span class="cx"> 
</span><del>-InspectorTest.Console.sanitizeConsoleMessage = function(messageObject)
</del><ins>+ProtocolTest.Console.sanitizeConsoleMessage = function(messageObject)
</ins><span class="cx"> {
</span><span class="cx">     function basename(url)
</span><span class="cx">     {
</span><span class="lines">@@ -30,9 +30,9 @@
</span><span class="cx">     return obj;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorTest.Console.addTestCase = function(suite, args)
</del><ins>+ProtocolTest.Console.addTestCase = function(suite, args)
</ins><span class="cx"> {
</span><del>-    if (!(suite instanceof InspectorTest.AsyncTestSuite))
</del><ins>+    if (!(suite instanceof ProtocolTest.AsyncTestSuite))
</ins><span class="cx">         throw new Error(&quot;Console test cases must be added to an async test suite.&quot;);
</span><span class="cx"> 
</span><span class="cx">     var {name, description, expression, expected} = args;
</span><span class="lines">@@ -40,23 +40,23 @@
</span><span class="cx">         name,
</span><span class="cx">         description,
</span><span class="cx">         test: function(resolve, reject) {
</span><del>-            InspectorTest.awaitEvent({
</del><ins>+            InspectorProtocol.awaitEvent({
</ins><span class="cx">                 event: &quot;Console.messageAdded&quot;,
</span><span class="cx">             })
</span><span class="cx">             .then(function(messageObject) {
</span><span class="cx">                 var consoleMessage = messageObject.params.message;
</span><span class="cx">                 var {source, level, text, parameters} = consoleMessage;
</span><del>-                InspectorTest.assert(source === expected.source, &quot;ConsoleMessage type should be '&quot; + expected.source + &quot;'.&quot;);
-                InspectorTest.assert(level === expected.level, &quot;ConsoleMessage level should be '&quot; + expected.level + &quot;'.&quot;);
</del><ins>+                ProtocolTest.assert(source === expected.source, &quot;ConsoleMessage type should be '&quot; + expected.source + &quot;'.&quot;);
+                ProtocolTest.assert(level === expected.level, &quot;ConsoleMessage level should be '&quot; + expected.level + &quot;'.&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 if (expected.text)
</span><del>-                    InspectorTest.assert(text === expected.text, &quot;ConsoleMessage text should be '&quot; + expected.text + &quot;'.&quot;);
</del><ins>+                    ProtocolTest.assert(text === expected.text, &quot;ConsoleMessage text should be '&quot; + expected.text + &quot;'.&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 if (expected.parameters) {
</span><del>-                    InspectorTest.assert(parameters.length === expected.parameters.length, &quot;ConsoleMessage parameters.length === &quot; + expected.parameters.length);
</del><ins>+                    ProtocolTest.assert(parameters.length === expected.parameters.length, &quot;ConsoleMessage parameters.length === &quot; + expected.parameters.length);
</ins><span class="cx">                     for (var i = 0; i &lt; parameters.length; ++i) {
</span><span class="cx">                         var expectedType = expected.parameters[i];
</span><del>-                        InspectorTest.assert(parameters[i].type === expectedType, &quot;ConsoleMessage parameter &quot; + i + &quot; should have type '&quot; + expectedType + &quot;'.&quot;);
</del><ins>+                        ProtocolTest.assert(parameters[i].type === expectedType, &quot;ConsoleMessage parameter &quot; + i + &quot; should have type '&quot; + expectedType + &quot;'.&quot;);
</ins><span class="cx">                     }
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -65,8 +65,8 @@
</span><span class="cx">             .catch(reject);
</span><span class="cx"> 
</span><span class="cx">             // Cause a messageAdded event to be generated.
</span><del>-            InspectorTest.log(&quot;Evaluating expression: &quot; + expression);
-            InspectorTest.sendCommand({
</del><ins>+            ProtocolTest.log(&quot;Evaluating expression: &quot; + expression);
+            InspectorProtocol.sendCommand({
</ins><span class="cx">                 method: &quot;Runtime.evaluate&quot;,
</span><span class="cx">                 params: {expression}
</span><span class="cx">             });
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsinspectorresourcesprobetestjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/inspector/resources/probe-test.js (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/inspector/resources/probe-test.js        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/http/tests/inspector/resources/probe-test.js        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><del>-window.ProbeHelper = {};
</del><ins>+ProtocolTest.Probe = {};
</ins><span class="cx"> 
</span><del>-ProbeHelper.simplifiedProbeSample = function(messageObject)
</del><ins>+ProtocolTest.Probe.sanitizeProbeSample = function(messageObject)
</ins><span class="cx"> {
</span><span class="cx">     var data = messageObject.params.sample;
</span><span class="cx">     return {
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">     };
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ProbeHelper.stringifyProbeSample = function(ProbeSample)
</del><ins>+ProtocolTest.Probe.stringifyProbeSample = function(ProbeSample)
</ins><span class="cx"> {
</span><span class="cx">     console.assert(ProbeSample instanceof WebInspector.ProbeSample, &quot;Unexpected object type!&quot;);
</span><span class="cx">     return JSON.stringify({
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ProbeHelper.installTracingListeners = function()
</del><ins>+ProtocolTest.Probe.installTracingListeners = function()
</ins><span class="cx"> {
</span><span class="cx">     if (!WebInspector.debuggerManager || !WebInspector.probeManager)
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorconsoleconsolemessagehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/console/console-message.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/console/console-message.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/console/console-message.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -14,11 +14,11 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
</ins><span class="cx"> 
</span><del>-    var suite = new InspectorTest.AsyncTestSuite(&quot;Console.MessagesFromCommandLineAPI&quot;);
</del><ins>+    var suite = new ProtocolTest.AsyncTestSuite(&quot;Console.MessagesFromCommandLineAPI&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;ConsoleLogString&quot;,
</span><span class="cx">         description: &quot;Test `console.log(\&quot;log\&quot;)`&quot;,
</span><span class="cx">         expression: 'console.log(&quot;log&quot;);',
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;ConsoleInfoString&quot;,
</span><span class="cx">         description: &quot;Test `console.info(\&quot;info\&quot;)`&quot;,
</span><span class="cx">         expression: 'console.info(&quot;info&quot;);',
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;ConsoleWarnString&quot;,
</span><span class="cx">         description: &quot;Test `console.warn(\&quot;warn\&quot;)`&quot;,
</span><span class="cx">         expression: 'console.warn(&quot;warn&quot;);',
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;ConsoleErrorString&quot;,
</span><span class="cx">         description: &quot;Test `console.error(\&quot;error\&quot;)`&quot;,
</span><span class="cx">         expression: 'console.error(&quot;error&quot;);',
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;ConsoleDebugString&quot;,
</span><span class="cx">         description: &quot;Test `console.debug(\&quot;debug\&quot;)`&quot;,
</span><span class="cx">         expression: 'console.debug(&quot;debug&quot;);',
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.awaitCommand({
</del><ins>+    InspectorProtocol.awaitCommand({
</ins><span class="cx">         method: &quot;Console.enable&quot;,
</span><span class="cx">         params: {}
</span><span class="cx">     })
</span><span class="lines">@@ -88,8 +88,8 @@
</span><span class="cx">     .catch(fatalError);
</span><span class="cx"> 
</span><span class="cx">     function fatalError(e) {
</span><del>-        InspectorTest.log(&quot;Test failed with fatal error: &quot; + JSON.stringify(e));
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Test failed with fatal error: &quot; + JSON.stringify(e));
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorconsolecsssourcelocationshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/console/css-source-locations.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/console/css-source-locations.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/console/css-source-locations.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -15,34 +15,34 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
</ins><span class="cx"> 
</span><span class="cx">     var consoleMessageCount = 0;
</span><span class="cx">     const expectedConsoleMessageCount = 7;
</span><span class="cx"> 
</span><span class="cx">     // Due to the difficulty of testing inline style tags in a test case, this test
</span><span class="cx">     // is a reference test that contains serialized Console.messageAdded event data.
</span><del>-    InspectorTest.addEventListener({
</del><ins>+    InspectorProtocol.addEventListener({
</ins><span class="cx">         event: &quot;Console.messageAdded&quot;,
</span><span class="cx">         listener: function(messageObject) {
</span><del>-            var message = InspectorTest.Console.sanitizeConsoleMessage(messageObject);
-            InspectorTest.log(JSON.stringify(message));
</del><ins>+            var message = ProtocolTest.Console.sanitizeConsoleMessage(messageObject);
+            ProtocolTest.log(JSON.stringify(message));
</ins><span class="cx"> 
</span><span class="cx">             if (++consoleMessageCount !== expectedConsoleMessageCount)
</span><span class="cx">                 return;
</span><span class="cx"> 
</span><del>-            InspectorTest.awaitCommand({
</del><ins>+            InspectorProtocol.awaitCommand({
</ins><span class="cx">                 method: &quot;Console.disable&quot;,
</span><span class="cx">                 params: {}
</span><span class="cx">             })
</span><span class="cx">             .then(function() {
</span><del>-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     // Start the test.
</span><del>-    InspectorTest.sendCommand({
</del><ins>+    InspectorProtocol.sendCommand({
</ins><span class="cx">         method: &quot;Console.enable&quot;,
</span><span class="cx">         params: {}
</span><span class="cx">     });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorconsolejssourcelocationshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/console/js-source-locations.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/console/js-source-locations.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/console/js-source-locations.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,25 +11,25 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
</ins><span class="cx"> 
</span><span class="cx">     var consoleMessageCount = 0;
</span><span class="cx">     const expectedConsoleMessageCount = 8;
</span><span class="cx"> 
</span><span class="cx">     // Due to the difficulty of testing inline script tags in a test case, this test
</span><span class="cx">     // is a reference test that contains serialized Console.messageAdded event data.
</span><del>-    InspectorTest.addEventListener({
</del><ins>+    InspectorProtocol.addEventListener({
</ins><span class="cx">         event: &quot;Console.messageAdded&quot;,
</span><span class="cx">         listener: function(messageObject) {
</span><del>-            var message = InspectorTest.Console.sanitizeConsoleMessage(messageObject);
-            InspectorTest.log(JSON.stringify(message));
</del><ins>+            var message = ProtocolTest.Console.sanitizeConsoleMessage(messageObject);
+            ProtocolTest.log(JSON.stringify(message));
</ins><span class="cx"> 
</span><span class="cx">             if (++consoleMessageCount === expectedConsoleMessageCount)
</span><del>-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand({
</del><ins>+    InspectorProtocol.sendCommand({
</ins><span class="cx">         method: &quot;Console.enable&quot;,
</span><span class="cx">         params: {}
</span><span class="cx">     });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorconsolexframeoptionsmessagehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/console/x-frame-options-message.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/console/x-frame-options-message.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/console/x-frame-options-message.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,18 +5,18 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
</ins><span class="cx"> 
</span><del>-    let suite = new InspectorTest.AsyncTestSuite(&quot;Console.XFrameOptionsMessages&quot;);
</del><ins>+    let suite = new ProtocolTest.AsyncTestSuite(&quot;Console.XFrameOptionsMessages&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.Console.addTestCase(suite, {
</del><ins>+    ProtocolTest.Console.addTestCase(suite, {
</ins><span class="cx">         name: &quot;XFrameOptionsDeny&quot;,
</span><span class="cx">         description: &quot;Ensure that a console message is logged when enforcing an X-Frame-Options policy. In this case, setting X-Frame-Options: 'deny' means the iframe does not want to be embedded in the test page.&quot;,
</span><span class="cx">         expression: &quot;triggerXFrameOptionDeny();&quot;,
</span><span class="cx">         expected: {source: 'security', level: 'error'}
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.awaitCommand({
</del><ins>+    InspectorProtocol.awaitCommand({
</ins><span class="cx">         method: &quot;Console.enable&quot;,
</span><span class="cx">         params: {}
</span><span class="cx">     })
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx">     .catch(fatalError);
</span><span class="cx"> 
</span><span class="cx">     function fatalError(e) {
</span><del>-        InspectorTest.log(&quot;Test failed with fatal error: &quot; + JSON.stringify(e));
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Test failed with fatal error: &quot; + JSON.stringify(e));
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorcssgetSupportedCSSPropertieshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/css/getSupportedCSSProperties.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/css/getSupportedCSSProperties.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/css/getSupportedCSSProperties.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -4,25 +4,25 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;CSS.getSupportedCSSProperties&quot;, {}, function(messageObject) {
</del><ins>+    InspectorProtocol.sendCommand(&quot;CSS.getSupportedCSSProperties&quot;, {}, function(messageObject) {
</ins><span class="cx">         if (&quot;error&quot; in messageObject)
</span><del>-            InspectorTest.log(messageObject.error.message);
</del><ins>+            ProtocolTest.log(messageObject.error.message);
</ins><span class="cx">         else {
</span><span class="cx">             var cssProperty = &quot;box-shadow&quot;;
</span><span class="cx">             var entries = messageObject[&quot;result&quot;][&quot;cssProperties&quot;];
</span><span class="cx"> 
</span><span class="cx">             for (var i = 0; i &lt; entries.length; ++i) {
</span><span class="cx">                 if (entries[i].name === cssProperty) {
</span><del>-                    InspectorTest.log(entries[i].name + &quot; is supported&quot;);
</del><ins>+                    ProtocolTest.log(entries[i].name + &quot; is supported&quot;);
</ins><span class="cx">                     break;
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (i === entries.length)
</span><del>-                InspectorTest.log(cssProperty + &quot; is NOT supported&quot;);
</del><ins>+                ProtocolTest.log(cssProperty + &quot; is NOT supported&quot;);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointactiondetachhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-action-detach.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-action-detach.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-action-detach.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -21,10 +21,10 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="cx">                     scriptId: messageObject.params.scriptId,
</span><span class="lines">@@ -38,18 +38,18 @@
</span><span class="cx">                     ]
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;runBreakpointWithCondition()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;runBreakpointWithCondition()&quot;});
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointactionwithexceptionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-action-with-exception.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-action-with-exception.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-action-with-exception.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,10 +5,10 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="lines">@@ -23,30 +23,30 @@
</span><span class="cx">                     ]
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function(messageObject) {
-                InspectorTest.checkForError(messageObject);
-                InspectorTest.log(&quot;PASS: Breakpoint action executed, but the exception did not cause the debugger to pause.&quot;)
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function(messageObject) {
+                InspectorProtocol.checkForError(messageObject);
+                ProtocolTest.log(&quot;PASS: Breakpoint action executed, but the exception did not cause the debugger to pause.&quot;)
</ins><span class="cx">                 completeTest();
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</ins><span class="cx">         completeTest();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><span class="cx">         // Reset the pauseOnException state before ending the test.
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointconditiondetachhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-condition-detach.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-condition-detach.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-condition-detach.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -24,10 +24,10 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="cx">                     scriptId: messageObject.params.scriptId,
</span><span class="lines">@@ -38,18 +38,18 @@
</span><span class="cx">                     condition: &quot;disconnect()&quot;
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;runBreakpointWithCondition()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;runBreakpointWithCondition()&quot;});
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointconditionwithbadscripthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-bad-script.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-bad-script.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-bad-script.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,10 +5,10 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="cx">                     scriptId: messageObject.params.scriptId,
</span><span class="lines">@@ -23,27 +23,27 @@
</span><span class="cx">                     ]
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
-                InspectorTest.log(&quot;PASS: The VM should not crash.&quot;);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
+                ProtocolTest.log(&quot;PASS: The VM should not crash.&quot;);
</ins><span class="cx">                 completeTest();
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</ins><span class="cx">         completeTest();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><span class="cx">         // Reset the pauseOnException state before ending the test.
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointconditionwithexceptionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-exception.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-exception.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-condition-with-exception.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,10 +5,10 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="cx">                     scriptId: messageObject.params.scriptId,
</span><span class="lines">@@ -23,29 +23,29 @@
</span><span class="cx">                     ]
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
-                InspectorTest.log(&quot;PASS: The debugger should not pause on the exception inside the condition.&quot;);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
+                ProtocolTest.log(&quot;PASS: The debugger should not pause on the exception inside the condition.&quot;);
</ins><span class="cx">                 completeTest();
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</ins><span class="cx">         completeTest();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><span class="cx">         // Reset the pauseOnException state before ending the test.
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointevalwithexceptionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-eval-with-exception.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-eval-with-exception.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-eval-with-exception.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,10 +5,10 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="cx">                     scriptId: messageObject.params.scriptId,
</span><span class="lines">@@ -16,46 +16,46 @@
</span><span class="cx">                     columnNumber: 0
</span><span class="cx">                 }
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;}, function() {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;}, function() {
</ins><span class="cx">                 completeTest();
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = onBreakpointHit;
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = onBreakpointHit;
</ins><span class="cx"> 
</span><span class="cx">     function onBreakpointHit(messageObject)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;PASS: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</ins><span class="cx"> 
</span><span class="cx">         // Make sure we do not pause again in the debugger.
</span><del>-        InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = onPausedOnException;
</del><ins>+        InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = onPausedOnException;
</ins><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;this.should.trigger.an.exception&quot;}, function(messageObject) {
-            InspectorTest.checkForError(messageObject);
-            InspectorTest.log(&quot;PASS: The debugger should not stop on the exception thrown by a console command while paused on a breakpoint.&quot;);
-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;);
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;this.should.trigger.an.exception&quot;}, function(messageObject) {
+            InspectorProtocol.checkForError(messageObject);
+            ProtocolTest.log(&quot;PASS: The debugger should not stop on the exception thrown by a console command while paused on a breakpoint.&quot;);
+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;);
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onPausedOnException(messageObject)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Should not break on exceptions while paused on a breakpoint.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Should not break on exceptions while paused on a breakpoint.&quot;);
</ins><span class="cx">         completeTest();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><del>-        // InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        // InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         // Reset the pauseOnException state before ending the test.
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
-        InspectorTest.sendCommand(&quot;Debugger.disable&quot;);
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
+        InspectorProtocol.sendCommand(&quot;Debugger.disable&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerbreakpointinsideconditonsandactionshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/breakpoint-inside-conditons-and-actions.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/breakpoint-inside-conditons-and-actions.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/breakpoint-inside-conditons-and-actions.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,10 +5,10 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var breakpoint = {
</span><span class="cx">                 location: {
</span><span class="lines">@@ -35,31 +35,31 @@
</span><span class="cx">                 }
</span><span class="cx">             };
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpointInsideConditonAndAction, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorTest.checkForError);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function(messageObject) {
-                InspectorTest.checkForError(messageObject);
-                InspectorTest.log(&quot;PASS: Breakpoint condition and action executed, but the exception did not cause the debugger to pause.&quot;)
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpoint, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, breakpointInsideConditonAndAction, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorProtocol.checkForError);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function(messageObject) {
+                InspectorProtocol.checkForError(messageObject);
+                ProtocolTest.log(&quot;PASS: Breakpoint condition and action executed, but the exception did not cause the debugger to pause.&quot;)
</ins><span class="cx">                 completeTest();
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Paused in debugger: reason = \&quot;&quot; + messageObject.params.reason + &quot;\&quot;&quot;);
</ins><span class="cx">         completeTest();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function completeTest()
</span><span class="cx">     {
</span><span class="cx">         // Reset the pauseOnException state before ending the test.
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;});
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggercallframefunctionnamehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/call-frame-function-name.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/call-frame-function-name.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/call-frame-function-name.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,26 +11,26 @@
</span><span class="cx">     // We set a breakpoint before evaluating 'sum += ...', and verify that
</span><span class="cx">     // call frame functionNames are what we expect.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/call-frame-function-name\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 10) {
</span><del>-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var lineNumber = messageObject.params.startLine + 6;
</span><span class="cx">             var columnNumber = 12;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: lineNumber, columnNumber: columnNumber};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.log(&quot;Running testFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                ProtocolTest.log(&quot;Running testFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var functionNames = [ ];
</span><span class="cx">         var i;
</span><span class="cx">         for (i = 0; i &lt; 3; i++)
</span><span class="lines">@@ -38,9 +38,9 @@
</span><span class="cx">         
</span><span class="cx">         function assertFunctionName(index, actual, expected) {
</span><span class="cx">             if (actual == expected)
</span><del>-                InspectorTest.log('PASS: frame[' + index + '] &quot;' + actual + '&quot;');
</del><ins>+                ProtocolTest.log('PASS: frame[' + index + '] &quot;' + actual + '&quot;');
</ins><span class="cx">             else
</span><del>-                InspectorTest.log('FAIL: frame[' + index + '] expect &quot;' + expected + '&quot;, actual &quot;' + actual + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: frame[' + index + '] expect &quot;' + expected + '&quot;, actual &quot;' + actual + '&quot;');
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // frame 0 should be the anonymous inner function.
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx">         // frame 2 should be &quot;testFunction&quot;.
</span><span class="cx">         assertFunctionName(2, functionNames[2], &quot;testFunction&quot;);
</span><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggercallframethishosthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/call-frame-this-host.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/call-frame-this-host.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/call-frame-this-host.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,26 +11,26 @@
</span><span class="cx">     // We set a breakpoint before evaluating 'sum += ...', and verify that
</span><span class="cx">     // call frame this values are what we expect.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/call-frame-this-host\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 10) {
</span><del>-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var lineNumber = messageObject.params.startLine + 6;
</span><span class="cx">             var columnNumber = 12;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: lineNumber, columnNumber: columnNumber};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.log(&quot;Running testFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                ProtocolTest.log(&quot;Running testFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var thisValues = [ ];
</span><span class="cx">         var i;
</span><span class="cx">         for (i = 0; i &lt; 3; i++)
</span><span class="lines">@@ -39,17 +39,17 @@
</span><span class="cx">         function assertThisValue(index, actual, expected) {
</span><span class="cx">             var success = true;
</span><span class="cx">             if (actual.type != expected.type) {
</span><del>-                InspectorTest.log('FAIL: frame[' + index + '] expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: frame[' + index + '] expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</ins><span class="cx">                 success = false;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (actual.className != expected.className) {
</span><del>-                InspectorTest.log('FAIL: frame[' + index + '] expect className &quot;' + expected.className + '&quot;, actual &quot;' + actual.className + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: frame[' + index + '] expect className &quot;' + expected.className + '&quot;, actual &quot;' + actual.className + '&quot;');
</ins><span class="cx">                 success = false;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (success)
</span><del>-                InspectorTest.log('PASS: frame[' + index + '] type &quot;' + actual.type + '&quot; className &quot;' + actual.className + '&quot;');
</del><ins>+                ProtocolTest.log('PASS: frame[' + index + '] type &quot;' + actual.type + '&quot; className &quot;' + actual.className + '&quot;');
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // frame 0 should be the anonymous inner function.
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">             &quot;type&quot;: &quot;object&quot;,
</span><span class="cx">             &quot;className&quot;: &quot;Window&quot;
</span><span class="cx">         });
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggercallframethisnonstricthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/call-frame-this-nonstrict.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/call-frame-this-nonstrict.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/call-frame-this-nonstrict.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,42 +11,42 @@
</span><span class="cx">     // We set a breakpoint before evaluating 'sum += ...', and verify that
</span><span class="cx">     // call frame this values are what we expect.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/call-frame-this-nonstrict\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 10) {
</span><del>-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var lineNumber = messageObject.params.startLine + 3;
</span><span class="cx">             var columnNumber = 4;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: lineNumber, columnNumber: columnNumber};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.log(&quot;Running testFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                ProtocolTest.log(&quot;Running testFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var step = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         function assertThisValue(step, actual, expected) {
</span><span class="cx">             var success = true;
</span><span class="cx">             if (actual.type != expected.type) {
</span><del>-                InspectorTest.log('FAIL: step ' + step + ': expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: step ' + step + ': expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</ins><span class="cx">                 success = false;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (actual.className != expected.className) {
</span><span class="cx">                 var actualResult
</span><del>-                InspectorTest.log('FAIL: step ' + step + ': expect className &quot;' + expected.className + '&quot;, actual &quot;' + actual.className + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: step ' + step + ': expect className &quot;' + expected.className + '&quot;, actual &quot;' + actual.className + '&quot;');
</ins><span class="cx">                 success = false;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (success)
</span><del>-                InspectorTest.log('PASS: step ' + step + ': type &quot;' + actual.type + '&quot; className &quot;' + actual.className + '&quot;');
</del><ins>+                ProtocolTest.log('PASS: step ' + step + ': type &quot;' + actual.type + '&quot; className &quot;' + actual.className + '&quot;');
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         switch (step) {
</span><span class="lines">@@ -92,9 +92,9 @@
</span><span class="cx">             });
</span><span class="cx">             break;
</span><span class="cx">         }
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         if (step == 5)
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         step++;
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggercallframethisstricthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/call-frame-this-strict.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/call-frame-this-strict.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/call-frame-this-strict.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,49 +11,49 @@
</span><span class="cx">     // We set a breakpoint before evaluating 'sum += ...', and verify that
</span><span class="cx">     // call frame this values are what we expect.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/call-frame-this-strict\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 10) {
</span><del>-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var lineNumber = messageObject.params.startLine + 3;
</span><span class="cx">             var columnNumber = 4;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: lineNumber, columnNumber: columnNumber};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.log(&quot;Running testFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                ProtocolTest.log(&quot;Running testFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var step = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         function assertThisValue(step, actual, expected) {
</span><span class="cx">             var success = true;
</span><span class="cx">             if (actual.type != expected.type) {
</span><del>-                InspectorTest.log('FAIL: step ' + step + ': expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</del><ins>+                ProtocolTest.log('FAIL: step ' + step + ': expect type &quot;' + expected.type + '&quot;, actual &quot;' + actual.type + '&quot;');
</ins><span class="cx">                 success = false;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (actual.type != &quot;undefined&quot;) {
</span><span class="cx">                 if (typeof actual.value != typeof expected.value) {
</span><del>-                    InspectorTest.log('FAIL: step ' + step + ': expect value type &quot;' + typeof expected.value + '&quot;, actual &quot;' + typeof actual.value + '&quot;');
</del><ins>+                    ProtocolTest.log('FAIL: step ' + step + ': expect value type &quot;' + typeof expected.value + '&quot;, actual &quot;' + typeof actual.value + '&quot;');
</ins><span class="cx">                     success = false;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 if (actual.value != expected.value) {
</span><span class="cx">                     var actualResult
</span><del>-                    InspectorTest.log('FAIL: step ' + step + ': expect value &quot;' + expected.value + '&quot;, actual &quot;' + actual.value + '&quot;');
</del><ins>+                    ProtocolTest.log('FAIL: step ' + step + ': expect value &quot;' + expected.value + '&quot;, actual &quot;' + actual.value + '&quot;');
</ins><span class="cx">                     success = false;
</span><span class="cx">                 }
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (success)
</span><del>-                InspectorTest.log('PASS: step ' + step + ': type &quot;' + actual.type + '&quot; value &quot;' + actual.value + '&quot;');
</del><ins>+                ProtocolTest.log('PASS: step ' + step + ': type &quot;' + actual.type + '&quot; value &quot;' + actual.value + '&quot;');
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         switch (step) {
</span><span class="lines">@@ -97,9 +97,9 @@
</span><span class="cx">             });
</span><span class="cx">             break;
</span><span class="cx">         }
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         if (step == 5)
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         step++;
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerdebuggerstatementhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/debugger-statement.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/debugger-statement.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/debugger-statement.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -12,30 +12,30 @@
</span><span class="cx">     // This test setting 2 breakpoints in DFG compiled functions: one inlined,
</span><span class="cx">     // and one not inlined.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var breakpointFound = false;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                 expression: &quot;debuggerStatement();&quot;
</span><span class="cx">             }, function(responseObject) {
</span><span class="cx">                 if (breakpointFound)
</span><del>-                    InspectorTest.log(&quot;PASS&quot;);
-                InspectorTest.completeTest();
</del><ins>+                    ProtocolTest.log(&quot;PASS&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Broke at debugger statement\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;Broke at debugger statement\n&quot;);
</ins><span class="cx">         breakpointFound = true;
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerdidSampleProbemultipleprobeshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/didSampleProbe-multiple-probes.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/didSampleProbe-multiple-probes.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/didSampleProbe-multiple-probes.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,9 +5,9 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;probe-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;probe-test.js&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var samples = [];
</span><span class="cx">     const expectedSampleCount = 4;
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> 
</span><span class="cx">     function dumpSamples() {
</span><span class="cx">         for (var i = 0; i &lt; samples.length; i++)
</span><del>-            InspectorTest.log(&quot;Sample &quot; + (i + 1) + &quot;: &quot; + JSON.stringify(samples[i]));
</del><ins>+            ProtocolTest.log(&quot;Sample &quot; + (i + 1) + &quot;: &quot; + JSON.stringify(samples[i]));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var tests = [
</span><span class="lines">@@ -45,10 +45,10 @@
</span><span class="cx">         },
</span><span class="cx">     ];
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 18, columnNumber: 0};
</span><span class="cx">             var options = {
</span><span class="lines">@@ -59,30 +59,30 @@
</span><span class="cx">                 ]
</span><span class="cx">             };
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
</ins><span class="cx"> 
</span><del>-                InspectorTest.log(&quot;Running breakpointActions to trigger probe samples.&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
</del><ins>+                ProtocolTest.log(&quot;Running breakpointActions to trigger probe samples.&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.didSampleProbe&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.didSampleProbe&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        var sample = ProbeHelper.simplifiedProbeSample(messageObject);
</del><ins>+        var sample = ProtocolTest.Probe.sanitizeProbeSample(messageObject);
</ins><span class="cx">         samples.push(sample);
</span><del>-        InspectorTest.log(&quot;Received probe sample payload: &quot; + JSON.stringify(sample.payload));
</del><ins>+        ProtocolTest.log(&quot;Received probe sample payload: &quot; + JSON.stringify(sample.payload));
</ins><span class="cx"> 
</span><span class="cx">         if (receivedAllExpectedSamples()) {
</span><span class="cx">             tests.forEach(function(test) {
</span><span class="cx">                 var result = test.predicate();
</span><del>-                InspectorTest.assert(result, test.message);
</del><ins>+                ProtocolTest.assert(result, test.message);
</ins><span class="cx">                 if (!result)
</span><span class="cx">                     test.error();
</span><span class="cx">             });
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerhitbreakpointfromconsolehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/hit-breakpoint-from-console.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/hit-breakpoint-from-console.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/hit-breakpoint-from-console.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,32 +5,32 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 18, columnNumber: 0};
</span><span class="cx">             var options = {
</span><span class="cx">                 condition: &quot;a &gt; 10&quot;,
</span><span class="cx">             };
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">                 // Should NOT hit breakpoint (a &lt; 10).
</span><del>-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, {x:1,y:2})&quot;});
</del><ins>+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, {x:1,y:2})&quot;});
</ins><span class="cx">                 // Should hit breakpoint (a &gt; 10).
</span><del>-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
</del><ins>+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
-        InspectorTest.log(&quot;PASS&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
+        ProtocolTest.log(&quot;PASS&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggernestedinspectorshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/nested-inspectors.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/nested-inspectors.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/nested-inspectors.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,40 +8,40 @@
</span><span class="cx">     function testFunction() {
</span><span class="cx">         // This function runs in the second inspector window. We can use this one to debug the first inspector.
</span><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-        InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, function(responseObject) {
-            InspectorTest.checkForError(responseObject);
-            InspectorTest.log(&quot;Debugger.setPauseOnExceptions - all&quot;);
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+        InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, function(responseObject) {
+            InspectorProtocol.checkForError(responseObject);
+            ProtocolTest.log(&quot;Debugger.setPauseOnExceptions - all&quot;);
</ins><span class="cx"> 
</span><span class="cx">             // Trigger an exception in the main inspector.
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throw new Error('PASS: Expected exception') }, 0);&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throw new Error('PASS: Expected exception') }, 0);&quot;});
</ins><span class="cx">         });
</span><span class="cx"> 
</span><del>-        InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+        InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">         {
</span><del>-            InspectorTest.log(&quot;PASS: Paused!&quot;);
-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+            ProtocolTest.log(&quot;PASS: Paused!&quot;);
+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+        InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">         {
</span><del>-            InspectorTest.log(&quot;PASS: Resumed!&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: Resumed!&quot;);
</ins><span class="cx"> 
</span><span class="cx">             // Revert Debugger.setPauseOnExceptions as it can have an impact on the following tests.
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;}, function(responseObject) {
-                InspectorTest.completeTest();
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;}, function(responseObject) {
+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    window.log = InspectorTest.log.bind(InspectorTest);
</del><ins>+    window.log = ProtocolTest.log.bind(InspectorProtocol);
</ins><span class="cx">     window.closeTest = function()
</span><span class="cx">     {
</span><span class="cx">         window.internals.closeDummyInspectorFrontend();
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var secondInspectorFrontend = window.internals.openDummyInspectorFrontend(&quot;ProtocolTestStub.html&quot;);
</del><ins>+    var secondInspectorFrontend = window.internals.openDummyInspectorFrontend(&quot;InspectorProtocolStub.html&quot;);
</ins><span class="cx">     secondInspectorFrontend.addEventListener(&quot;load&quot;, function(event) {
</span><span class="cx">         secondInspectorFrontend.postMessage(&quot;(&quot; + testFunction.toString() +&quot;)();&quot;, &quot;*&quot;);
</span><span class="cx">     });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerpausededicatedworkerhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/pause-dedicated-worker.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/pause-dedicated-worker.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/pause-dedicated-worker.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">     var workerRequestId = 1;
</span><span class="cx">     function sendCommandToWorker(method, params)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(&quot;Worker.sendMessageToWorker&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Worker.sendMessageToWorker&quot;, {
</ins><span class="cx">             &quot;workerId&quot;: workerId,
</span><span class="cx">             &quot;message&quot;: {
</span><span class="cx">                 &quot;method&quot;: method,
</span><span class="lines">@@ -28,31 +28,31 @@
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Worker.enable&quot;, {}, function(messageObject) {
</del><ins>+    InspectorProtocol.sendCommand(&quot;Worker.enable&quot;, {}, function(messageObject) {
</ins><span class="cx">         if (&quot;error&quot; in messageObject) {
</span><del>-            InspectorTest.log(&quot;FAIL: Couldn't enable worker debugger: &quot; + messageObject.error.message);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: Couldn't enable worker debugger: &quot; + messageObject.error.message);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Worker.workerCreated&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Worker.workerCreated&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         workerId = messageObject[&quot;params&quot;][&quot;workerId&quot;];
</span><del>-        InspectorTest.log(&quot;Worker created&quot;);
-        InspectorTest.sendCommand(&quot;Worker.connectToWorker&quot;, { &quot;workerId&quot;: workerId }, function(messageObject) {
-            InspectorTest.log(&quot;didConnectToWorker&quot;);
</del><ins>+        ProtocolTest.log(&quot;Worker created&quot;);
+        InspectorProtocol.sendCommand(&quot;Worker.connectToWorker&quot;, { &quot;workerId&quot;: workerId }, function(messageObject) {
+            ProtocolTest.log(&quot;didConnectToWorker&quot;);
</ins><span class="cx">             sendCommandToWorker(&quot;Debugger.enable&quot;, {});
</span><span class="cx">             sendCommandToWorker(&quot;Debugger.pause&quot;, {});
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Worker.dispatchMessageFromWorker&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Worker.dispatchMessageFromWorker&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         var message = messageObject[&quot;params&quot;][&quot;message&quot;];
</span><span class="cx">         if (message[&quot;method&quot;] === &quot;Debugger.paused&quot;) {
</span><del>-            InspectorTest.log(&quot;SUCCESS: Worker paused&quot;);
</del><ins>+            ProtocolTest.log(&quot;SUCCESS: Worker paused&quot;);
</ins><span class="cx">             sendCommandToWorker(&quot;Debugger.disable&quot;, {});
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerpauseonasserthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/pause-on-assert.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/pause-on-assert.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/pause-on-assert.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,8 +5,8 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorTest.checkForError);
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, InspectorProtocol.checkForError);
</ins><span class="cx"> 
</span><span class="cx">     var step = null;
</span><span class="cx">     var steps = [
</span><span class="lines">@@ -42,29 +42,29 @@
</span><span class="cx">         },
</span><span class="cx">     ];
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (step.pause)
</span><del>-            InspectorTest.log(&quot;PASS: Paused!&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: Paused!&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: Paused when unexpected&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: Paused when unexpected&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {}, runNextStep);
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {}, runNextStep);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function runNextStep() {
</span><span class="cx">         step = steps.shift();
</span><span class="cx">         if (!step) {
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // Evalute the command inside a setTimeout so that we can hit exceptions and break.
</span><span class="cx">         // Otherwise, evaluating through RuntimeAgent will not trigger a pause.
</span><span class="cx">         // Likewise, if no pause is expected wait for a bit before continuing.
</span><del>-        InspectorTest.log(step.message);
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function(){&quot; + step.evaluate + &quot;}, 0)&quot;}, function(responseObject) {
-            InspectorTest.checkForError(responseObject);
</del><ins>+        ProtocolTest.log(step.message);
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function(){&quot; + step.evaluate + &quot;}, 0)&quot;}, function(responseObject) {
+            InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">             if (!step.pause)
</span><span class="cx">                 setTimeout(runNextStep, 20);
</span><span class="cx">         });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerregress133182html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/regress-133182.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/regress-133182.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/regress-133182.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -24,27 +24,27 @@
</span><span class="cx">         // Evaluate statement and expect to pause.
</span><span class="cx">         if (testIndex &lt; statementsWithUncaughtExceptions.length) {
</span><span class="cx">             var statement = statementsWithUncaughtExceptions[testIndex++];
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // Done evaluating statements to pause. Evaluate some more we do not expect to pause.
</span><del>-        InspectorTest.log(&quot;PASS - paused for each uncaught exception&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;PASS - paused for each uncaught exception&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;uncaught&quot;}, function(responseObject) {
-        InspectorTest.checkForError(responseObject);
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;uncaught&quot;}, function(responseObject) {
+        InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">         expectPause = true;
</span><span class="cx">         triggerNextUncaughtException();
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (!expectPause) {
</span><del>-            InspectorTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -52,15 +52,15 @@
</span><span class="cx">             console.log(&quot;[&quot; + testIndex + &quot;] Testing statement '&quot; + statementsWithUncaughtExceptions[testIndex - 1] + &quot;'&quot;);
</span><span class="cx">             console.log(&quot;[&quot; + testIndex + &quot;] Paused and about to step&quot;);
</span><span class="cx">             isStepping = true;
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.stepOver&quot;, {});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.stepOver&quot;, {});
</ins><span class="cx">         } else {
</span><span class="cx">             console.log(&quot;[&quot; + testIndex + &quot;] Paused after stepping&quot;);
</span><span class="cx">             isStepping = false;
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         console.log(&quot;[&quot; + testIndex + &quot;] Resumed&quot;);
</span><span class="cx">         if (!isStepping)
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerremoveBreakpointhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/removeBreakpoint.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/removeBreakpoint.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/removeBreakpoint.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,48 +5,48 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var breakpointTriggered = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 3, columnNumber: 0};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
-                InspectorTest.log(&quot;Set Breakpoint, Triggering it&quot;);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
+                ProtocolTest.log(&quot;Set Breakpoint, Triggering it&quot;);
</ins><span class="cx">                 breakpointIdentifier = responseObject.result.breakpointId;
</span><del>-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;});
</del><ins>+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         ++breakpointTriggered;
</span><span class="cx"> 
</span><span class="cx">         if (breakpointTriggered === 1)
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">         else {
</span><del>-            InspectorTest.log(&quot;FAIL: should not have hit breakpoint after it was removed.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: should not have hit breakpoint after it was removed.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Resumed, Removing Breakpoint and trying to trigger it again&quot;);
-        InspectorTest.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointIdentifier}, function(responseObject) {
-            InspectorTest.checkForError(responseObject);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
</del><ins>+        ProtocolTest.log(&quot;Resumed, Removing Breakpoint and trying to trigger it again&quot;);
+        InspectorProtocol.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointIdentifier}, function(responseObject) {
+            InspectorProtocol.checkForError(responseObject);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">                 setTimeout(function() {
</span><del>-                    InspectorTest.log(&quot;PASS: did not hit breakpoint after removing it.&quot;);
-                    InspectorTest.completeTest();
</del><ins>+                    ProtocolTest.log(&quot;PASS: did not hit breakpoint after removing it.&quot;);
+                    ProtocolTest.completeTest();
</ins><span class="cx">                 }, 50);
</span><span class="cx">             });
</span><span class="cx">         });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersearchInContentlinebreakshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/searchInContent-linebreaks.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/searchInContent-linebreaks.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/searchInContent-linebreaks.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -13,12 +13,12 @@
</span><span class="cx"> 
</span><span class="cx">     var testResults = [];
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/-linebreaks\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.searchInContent&quot;, {&quot;scriptId&quot;: messageObject.params.scriptId, &quot;query&quot;: &quot;test&quot;}, function(url, messageObject) {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.searchInContent&quot;, {&quot;scriptId&quot;: messageObject.params.scriptId, &quot;query&quot;: &quot;test&quot;}, function(url, messageObject) {
</ins><span class="cx">                 var results = messageObject.result.result;
</span><span class="cx"> 
</span><span class="cx">                 var testResult = {url: url, count: results.length, matches: []};
</span><span class="lines">@@ -42,21 +42,21 @@
</span><span class="cx"> 
</span><span class="cx">         var sortedTestResults = testResults.sort(compareResultURLs);
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;Scripts searched: &quot; + sortedTestResults.length);
-        InspectorTest.log(&quot;&quot;);
</del><ins>+        ProtocolTest.log(&quot;Scripts searched: &quot; + sortedTestResults.length);
+        ProtocolTest.log(&quot;&quot;);
</ins><span class="cx"> 
</span><span class="cx">         for (var testResult of sortedTestResults) {
</span><span class="cx">             var fileName = /([\w-]+\.js)$/.exec(testResult.url)[1];
</span><del>-            InspectorTest.log(&quot;Script: &quot; + fileName);
-            InspectorTest.log(&quot;Results found: &quot; + testResult.count);
</del><ins>+            ProtocolTest.log(&quot;Script: &quot; + fileName);
+            ProtocolTest.log(&quot;Results found: &quot; + testResult.count);
</ins><span class="cx">     
</span><span class="cx">             for (var match of testResult.matches)
</span><del>-                InspectorTest.log(&quot;Line &quot; + match.lineNumber + &quot;: &quot; + JSON.stringify(match.lineContent));    
</del><ins>+                ProtocolTest.log(&quot;Line &quot; + match.lineNumber + &quot;: &quot; + JSON.stringify(match.lineContent));    
</ins><span class="cx"> 
</span><del>-            InspectorTest.log(&quot;&quot;);
</del><ins>+            ProtocolTest.log(&quot;&quot;);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointactionshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-actions.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-actions.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-actions.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,11 +5,11 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
-    InspectorTest.importScript(&quot;probe-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
+    ProtocolTest.importScript(&quot;probe-test.js&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Console.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Console.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var isExpectingLogs = false;
</span><span class="cx">     var isExpectingSounds = false;
</span><span class="lines">@@ -25,10 +25,10 @@
</span><span class="cx">         return logCount === expectedLogCount &amp;&amp; sampleCount === expectedSampleCount &amp;&amp; soundCount === expectedSoundCount;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 18, columnNumber: 0};
</span><span class="cx">             var options = {
</span><span class="lines">@@ -43,81 +43,81 @@
</span><span class="cx">                 ]
</span><span class="cx">             };
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">                 breakpointIdentifier = responseObject.result.breakpointId;
</span><del>-                InspectorTest.log(&quot;Running breakpointActions a few times that should not trigger&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(1)&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, 12)&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, {x:1,y:2})&quot;}, function() {
</del><ins>+                ProtocolTest.log(&quot;Running breakpointActions a few times that should not trigger&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(1)&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, 12)&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(2, {x:1,y:2})&quot;}, function() {
</ins><span class="cx">                     isExpectingLogs = true;
</span><span class="cx">                     isExpectingSounds = true;
</span><span class="cx">                     isExpectingSamples = true;
</span><del>-                    InspectorTest.log(&quot;Running breakpointActions to triggering the breakpoint actions&quot;);
-                    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;}, function() {
-                        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(100, document.body)&quot;});
</del><ins>+                    ProtocolTest.log(&quot;Running breakpointActions to triggering the breakpoint actions&quot;);
+                    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(12, {x:1,y:2})&quot;}, function() {
+                        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(100, document.body)&quot;});
</ins><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;FAIL: should not have hit breakpoint, autoContinue was true&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not have hit breakpoint, autoContinue was true&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.playBreakpointActionSound&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.playBreakpointActionSound&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (!isExpectingSounds) {
</span><del>-            InspectorTest.log(&quot;FAIL: unexpected breakpoint sound.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpected breakpoint sound.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;PASS: Breakpoint Sound&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: Breakpoint Sound&quot;);
</ins><span class="cx"> 
</span><span class="cx">         ++soundCount;
</span><span class="cx"> 
</span><span class="cx">         if (receivedAllExpectedOutput())
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.didSampleProbe&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.didSampleProbe&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (!isExpectingSamples) {
</span><del>-            InspectorTest.log(&quot;FAIL: unexpected probe sample, probe samples should only have come from breakpoint actions.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpected probe sample, probe samples should only have come from breakpoint actions.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        var simplifiedSample = ProbeHelper.simplifiedProbeSample(messageObject);
-        InspectorTest.log(&quot;PASS: Probe sample payload: &quot; + JSON.stringify(simplifiedSample.payload));
</del><ins>+        var simplifiedSample = ProtocolTest.Probe.sanitizeProbeSample(messageObject);
+        ProtocolTest.log(&quot;PASS: Probe sample payload: &quot; + JSON.stringify(simplifiedSample.payload));
</ins><span class="cx"> 
</span><span class="cx">         ++sampleCount;
</span><span class="cx"> 
</span><span class="cx">         if (receivedAllExpectedOutput())
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Console.messageAdded&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Console.messageAdded&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (!isExpectingLogs) {
</span><del>-            InspectorTest.log(&quot;FAIL: unexpected log, logs should only have come from breakpoint actions.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpected log, logs should only have come from breakpoint actions.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        var message = InspectorTest.Console.sanitizeConsoleMessage(messageObject);
-        InspectorTest.log(&quot;PASS: Console Message: &quot; + JSON.stringify(message));
</del><ins>+        var message = ProtocolTest.Console.sanitizeConsoleMessage(messageObject);
+        ProtocolTest.log(&quot;PASS: Console Message: &quot; + JSON.stringify(message));
</ins><span class="cx"> 
</span><span class="cx">         ++logCount;
</span><span class="cx"> 
</span><span class="cx">         if (receivedAllExpectedOutput())
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointautoContinuehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-autoContinue.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-autoContinue.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-autoContinue.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,34 +5,34 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var allowedToHitBreakpoint = false;
</span><span class="cx">     var breakpointIdentifier = null;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 13, columnNumber: 0};
</span><span class="cx">             var options = {autoContinue: true};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">                 breakpointIdentifier = responseObject.result.breakpointId;
</span><del>-                InspectorTest.log(&quot;Running breakpointAutomaticallyContinue multiple times with automatically continue&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;}, function() {
-                    InspectorTest.log(&quot;Removing breakpoint&quot;);
-                    InspectorTest.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointIdentifier}, function(responseObject) {
-                        InspectorTest.checkForError(responseObject);
</del><ins>+                ProtocolTest.log(&quot;Running breakpointAutomaticallyContinue multiple times with automatically continue&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;}, function() {
+                    ProtocolTest.log(&quot;Removing breakpoint&quot;);
+                    InspectorProtocol.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointIdentifier}, function(responseObject) {
+                        InspectorProtocol.checkForError(responseObject);
</ins><span class="cx">                         allowedToHitBreakpoint = true;
</span><span class="cx">                         options = {autoContinue: false};
</span><del>-                        InspectorTest.log(&quot;Setting new breakpoint without autoContinue that should trigger&quot;);
-                        InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                            InspectorTest.checkForError(responseObject);
-                            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
</del><ins>+                        ProtocolTest.log(&quot;Setting new breakpoint without autoContinue that should trigger&quot;);
+                        InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                            InspectorProtocol.checkForError(responseObject);
+                            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointAutomaticallyContinue()&quot;});
</ins><span class="cx">                         });
</span><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="lines">@@ -40,16 +40,16 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx"> 
</span><span class="cx">         if (!allowedToHitBreakpoint) {
</span><del>-            InspectorTest.log(&quot;FAIL: should not have hit breakpoint.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: should not have hit breakpoint.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         } else {
</span><del>-            InspectorTest.log(&quot;PASS: hit breakpoint when allowed.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;PASS: hit breakpoint when allowed.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointcolumnhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-column.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-column.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-column.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -11,32 +11,32 @@
</span><span class="cx">     // We set a breakpoint before evaluating `var b = ...`, and verify that
</span><span class="cx">     // by running some expressions at that call frame.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/setBreakpoint-column\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 10) {
</span><del>-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var lineNumber = messageObject.params.startLine + 2;
</span><span class="cx">             var columnNumber = 10;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: lineNumber, columnNumber: columnNumber};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.log(&quot;Running testFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                ProtocolTest.log(&quot;Running testFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;testFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var callFrameIdentifier = messageObject.params.callFrames[0].callFrameId;
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
-            InspectorTest.log(&quot;Evaluted value of `a` (expecting number 1) was: &quot; + JSON.stringify(messageObject.result.result));
-            InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
-                InspectorTest.log(&quot;Evaluted value of `b` (expecting undefined) was: &quot; + JSON.stringify(messageObject.result.result));
-                InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
+            ProtocolTest.log(&quot;Evaluted value of `a` (expecting number 1) was: &quot; + JSON.stringify(messageObject.result.result));
+            InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
+                ProtocolTest.log(&quot;Evaluted value of `b` (expecting undefined) was: &quot; + JSON.stringify(messageObject.result.result));
+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointconditionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-condition.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-condition.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-condition.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,70 +5,70 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var inBreakpoint = false;
</span><span class="cx">     var breakpointTriggered = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 8, columnNumber: 0};
</span><span class="cx">             var options = {condition: &quot;(a + b) &gt; 10&quot;};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
-                InspectorTest.log(&quot;Running breakpointWithCondition multiple times&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1, 2)&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(5, 5)&quot;});
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(7, 4)&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
+                ProtocolTest.log(&quot;Running breakpointWithCondition multiple times&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1, 2)&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(5, 5)&quot;});
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(7, 4)&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         inBreakpoint = true;
</span><span class="cx">         ++breakpointTriggered;
</span><span class="cx"> 
</span><span class="cx">         var callFrameIdentifier = messageObject.params.callFrames[0].callFrameId;
</span><span class="cx">         if (breakpointTriggered === 1) {
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
-                InspectorTest.log(&quot;Evaluted value of `a` (expecting number 7) was: &quot; + JSON.stringify(messageObject.result.result));
-                InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
-                    InspectorTest.log(&quot;Evaluted value of `b` (expecting number 4) was: &quot; + JSON.stringify(messageObject.result.result));
-                    InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
+                ProtocolTest.log(&quot;Evaluted value of `a` (expecting number 7) was: &quot; + JSON.stringify(messageObject.result.result));
+                InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
+                    ProtocolTest.log(&quot;Evaluted value of `b` (expecting number 4) was: &quot; + JSON.stringify(messageObject.result.result));
+                    InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         } else if (breakpointTriggered === 2) {
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
-                InspectorTest.log(&quot;Evaluted value of `a` (expecting number 4) was: &quot; + JSON.stringify(messageObject.result.result));
-                InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
-                    InspectorTest.log(&quot;Evaluted value of `b` (expecting number 7) was: &quot; + JSON.stringify(messageObject.result.result));
-                    InspectorTest.log(&quot;PASS: hit breakpoints with expected values&quot;);
-                    InspectorTest.completeTest();
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
+                ProtocolTest.log(&quot;Evaluted value of `a` (expecting number 4) was: &quot; + JSON.stringify(messageObject.result.result));
+                InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;b&quot;}, function(messageObject) {
+                    ProtocolTest.log(&quot;Evaluted value of `b` (expecting number 7) was: &quot; + JSON.stringify(messageObject.result.result));
+                    ProtocolTest.log(&quot;PASS: hit breakpoints with expected values&quot;);
+                    ProtocolTest.completeTest();
</ins><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         } else {
</span><del>-            InspectorTest.log(&quot;FAIL: hit too many breakpoints.&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: hit too many breakpoints.&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Resumed, running breakpointWithCondition multiple times again&quot;);
</del><ins>+        ProtocolTest.log(&quot;Resumed, running breakpointWithCondition multiple times again&quot;);
</ins><span class="cx">         inBreakpoint = false;
</span><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(9, 0)&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(12, -4)&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(4, 7)&quot;}, function() {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(9, 0)&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(12, -4)&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(4, 7)&quot;}, function() {
</ins><span class="cx">             setTimeout(function() {
</span><span class="cx">                 if (!inBreakpoint) {
</span><del>-                    InspectorTest.log(&quot;FAIL: Did not hit conditional breakpoint the second time&quot;);
-                    InspectorTest.completeTest();
</del><ins>+                    ProtocolTest.log(&quot;FAIL: Did not hit conditional breakpoint the second time&quot;);
+                    ProtocolTest.completeTest();
</ins><span class="cx">                 }
</span><span class="cx">             }, 100);
</span><span class="cx">         });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointdfgandmodifylocalhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-and-modify-local.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-and-modify-local.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-and-modify-local.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -12,54 +12,54 @@
</span><span class="cx">     // This test setting 2 breakpoints in DFG compiled functions: one inlined,
</span><span class="cx">     // and one not inlined.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var breakpointId = null;
</span><span class="cx">     var scriptId = 0;
</span><span class="cx">     var startLine = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             scriptId = messageObject.params.scriptId;
</span><span class="cx">             startLine = messageObject.params.startLine;
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                 expression: &quot;dfgWithoutInline2();&quot;
</span><span class="cx">             }, function(responseObject) {
</span><del>-                InspectorTest.log(&quot;dfg function warmed up\n&quot;);
</del><ins>+                ProtocolTest.log(&quot;dfg function warmed up\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 var location1 = {scriptId: scriptId, lineNumber: 2, columnNumber: 0};
</span><span class="cx"> 
</span><del>-                InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
-                    InspectorTest.checkForError(responseObject);
-                    InspectorTest.log(&quot;Breakpoint set in breakpointBasic()&quot;);
</del><ins>+                InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
+                    InspectorProtocol.checkForError(responseObject);
+                    ProtocolTest.log(&quot;Breakpoint set in breakpointBasic()&quot;);
</ins><span class="cx"> 
</span><span class="cx">                     breakpointId = responseObject.result.breakpointId;
</span><del>-                    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                         expression: &quot;callNotInlineable2();&quot;
</span><span class="cx">                     }, function(responseObject) {
</span><del>-                        InspectorTest.log(&quot;Test complete&quot;);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(&quot;Test complete&quot;);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var callFrames = messageObject.params.callFrames;
</span><span class="cx">         if (callFrames.length &lt; 3)
</span><del>-            InspectorTest.log(&quot;FAIL: too few frames in stack trace&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: too few frames in stack trace&quot;);
</ins><span class="cx"> 
</span><span class="cx">         var callFrameId = callFrames[1].callFrameId;
</span><del>-        InspectorTest.log(&quot;Evaluating in DFG frame at frame[1]: 'x = 20000;'&quot;);
-        InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;x = 20000;&quot; }, function(responseObject) {
-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
-                InspectorTest.log(&quot;Resumed from breakpoint&quot;);
</del><ins>+        ProtocolTest.log(&quot;Evaluating in DFG frame at frame[1]: 'x = 20000;'&quot;);
+        InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;x = 20000;&quot; }, function(responseObject) {
+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
+                ProtocolTest.log(&quot;Resumed from breakpoint&quot;);
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointdfgcalleeandexaminedfglocalhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-callee-and-examine-dfg-local.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -12,52 +12,52 @@
</span><span class="cx">     // This test setting a breakpoints in DFG compiled functions callee and then modify
</span><span class="cx">     // and examine a global and local via the DFG frame.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var breakpointId = null;
</span><span class="cx">     var scriptId = 0;
</span><span class="cx">     var startLine = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             scriptId = messageObject.params.scriptId;
</span><span class="cx">             startLine = messageObject.params.startLine;
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                 expression: &quot;dfgWithoutInline3();&quot;
</span><span class="cx">             }, function(responseObject) {
</span><del>-                InspectorTest.log(&quot;dfg function warmed up\n&quot;);
</del><ins>+                ProtocolTest.log(&quot;dfg function warmed up\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 var location1 = {scriptId: scriptId, lineNumber: 2, columnNumber: 0};
</span><span class="cx"> 
</span><del>-                InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
-                    InspectorTest.checkForError(responseObject);
-                    InspectorTest.log(&quot;Breakpoint set in breakpointBasic()&quot;);
</del><ins>+                InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
+                    InspectorProtocol.checkForError(responseObject);
+                    ProtocolTest.log(&quot;Breakpoint set in breakpointBasic()&quot;);
</ins><span class="cx"> 
</span><span class="cx">                     breakpointId = responseObject.result.breakpointId;
</span><del>-                    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                         expression: &quot;dfgWithoutInline3();&quot;
</span><span class="cx">                     }, function(responseObject) {
</span><del>-                        InspectorTest.log(&quot;Test complete&quot;);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(&quot;Test complete&quot;);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         function dumpResponse(response)
</span><span class="cx">         {
</span><span class="cx">             try {
</span><span class="cx">                 if (response.result.wasThrown) {
</span><del>-                    InspectorTest.log(&quot;Exception thrown processing request&quot;);
</del><ins>+                    ProtocolTest.log(&quot;Exception thrown processing request&quot;);
</ins><span class="cx">                     return false;
</span><span class="cx">                 }
</span><del>-                InspectorTest.log(&quot;Response value is &quot; + response.result.result.value);
</del><ins>+                ProtocolTest.log(&quot;Response value is &quot; + response.result.result.value);
</ins><span class="cx">                 return true;
</span><span class="cx">             } catch (e) {
</span><span class="cx">                 return false;
</span><span class="lines">@@ -66,39 +66,39 @@
</span><span class="cx"> 
</span><span class="cx">         function resumeFromBreakpoint()
</span><span class="cx">         {
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
-                InspectorTest.log(&quot;Resumed from breakpoint&quot;);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
+                ProtocolTest.log(&quot;Resumed from breakpoint&quot;);
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var callFrames = messageObject.params.callFrames;
</span><span class="cx">         if (callFrames.length &lt; 3) {
</span><del>-            InspectorTest.log(&quot;FAIL: too few frames in stack trace&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: too few frames in stack trace&quot;);
</ins><span class="cx">             resumeFromBreakpoint();
</span><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         var callFrameId = callFrames[2].callFrameId;
</span><del>-        InspectorTest.log(&quot;Evaluating in DFG frame at frame[2]: 'globalVal3 = 30;'&quot;);
-        InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;globalVal3 = 30;&quot; }, function(responseObject) {
</del><ins>+        ProtocolTest.log(&quot;Evaluating in DFG frame at frame[2]: 'globalVal3 = 30;'&quot;);
+        InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;globalVal3 = 30;&quot; }, function(responseObject) {
</ins><span class="cx">             if (!dumpResponse(responseObject)) {
</span><span class="cx">                 resumeFromBreakpoint();
</span><span class="cx">                 return;
</span><span class="cx">             }
</span><del>-            InspectorTest.log(&quot;Evaluating in DFG frame at frame[2]: 'localVal3 = 12;'&quot;);
-            InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;localVal3 = 12;&quot; }, function(responseObject) {
</del><ins>+            ProtocolTest.log(&quot;Evaluating in DFG frame at frame[2]: 'localVal3 = 12;'&quot;);
+            InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;localVal3 = 12;&quot; }, function(responseObject) {
</ins><span class="cx">                 if (!dumpResponse(responseObject)) {
</span><span class="cx">                     resumeFromBreakpoint();
</span><span class="cx">                     return;
</span><span class="cx">                 }
</span><del>-                InspectorTest.log(&quot;Evaluating in DFG frame at frame[2]: 'localVal3'&quot;);
-                InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;localVal3&quot; }, function(responseObject) {
</del><ins>+                ProtocolTest.log(&quot;Evaluating in DFG frame at frame[2]: 'localVal3'&quot;);
+                InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, { callFrameId: callFrameId, expression: &quot;localVal3&quot; }, function(responseObject) {
</ins><span class="cx">                     if (!dumpResponse(responseObject)) {
</span><span class="cx">                         resumeFromBreakpoint();
</span><span class="cx">                         return;
</span><span class="cx">                     }
</span><del>-                    InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
-                        InspectorTest.log(&quot;Resumed from breakpoint&quot;);
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
+                        ProtocolTest.log(&quot;Resumed from breakpoint&quot;);
</ins><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="cx">             });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointdfghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -12,39 +12,39 @@
</span><span class="cx">     // This test setting 2 breakpoints in DFG compiled functions: one inlined,
</span><span class="cx">     // and one not inlined.
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var dfgNonInlinedBreakpointId = null;
</span><span class="cx">     var dfgInlinedBreakpointId = null;
</span><span class="cx">     var scriptIdentifier = 0;
</span><span class="cx">     var startLine = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             startLine = messageObject.params.startLine;
</span><span class="cx"> 
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                 expression: &quot;dfgWithoutInline(); dfgWithInline();&quot;
</span><span class="cx">             }, function(responseObject) {
</span><del>-                InspectorTest.log(&quot;dfg functions warmed up\n&quot;);
</del><ins>+                ProtocolTest.log(&quot;dfg functions warmed up\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 var location1 = {scriptId: scriptIdentifier, lineNumber: 22, columnNumber: 0};
</span><span class="cx"> 
</span><del>-                InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
-                    InspectorTest.checkForError(responseObject);
-                    InspectorTest.log(&quot;Breakpoint set in notInlineable()&quot;);
</del><ins>+                InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location1}, function(responseObject) {
+                    InspectorProtocol.checkForError(responseObject);
+                    ProtocolTest.log(&quot;Breakpoint set in notInlineable()&quot;);
</ins><span class="cx"> 
</span><span class="cx">                     dfgNonInlinedBreakpointId = responseObject.result.breakpointId;
</span><span class="cx">                     var location2 = {scriptId: scriptIdentifier, lineNumber: 28, columnNumber: 0};
</span><del>-                    InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location2}, function(responseObject) {
-                        InspectorTest.checkForError(responseObject);
-                        InspectorTest.log(&quot;Breakpoint set in inlineable()\n&quot;);
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location2}, function(responseObject) {
+                        InspectorProtocol.checkForError(responseObject);
+                        ProtocolTest.log(&quot;Breakpoint set in inlineable()\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">                         dfgInlinedBreakpointId = responseObject.result.breakpointId;
</span><del>-                        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {
</del><ins>+                        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {
</ins><span class="cx">                             expression: &quot;dfgWithoutInline(); dfgWithInline();&quot;
</span><span class="cx">                         });
</span><span class="cx">                     });
</span><span class="lines">@@ -54,24 +54,24 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var breakpointsHit = 0;
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         var breakpointId = null;
</span><span class="cx">         breakpointsHit++;
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint &quot; + breakpointsHit + &quot;!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint &quot; + breakpointsHit + &quot;!&quot;);
</ins><span class="cx">         if (breakpointsHit == 1)
</span><span class="cx">             breakpointId = dfgNonInlinedBreakpointId;
</span><span class="cx">         else if (breakpointsHit == 2)
</span><span class="cx">             breakpointId = dfgInlinedBreakpointId;
</span><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;Unexpected breakpoint&quot;);
</del><ins>+            ProtocolTest.log(&quot;Unexpected breakpoint&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointId}, function(responseObject) {
-            InspectorTest.log(&quot;Removed Breakpoint &quot; + breakpointsHit + &quot;!&quot;);
-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.removeBreakpoint&quot;, {&quot;breakpointId&quot;: breakpointId}, function(responseObject) {
+            ProtocolTest.log(&quot;Removed Breakpoint &quot; + breakpointsHit + &quot;!&quot;);
+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {}, function(responseObject) {
</ins><span class="cx">                 if (breakpointsHit == 2) {
</span><del>-                    InspectorTest.log(&quot;PASS&quot;);
-                    InspectorTest.completeTest();
</del><ins>+                    ProtocolTest.log(&quot;PASS&quot;);
+                    ProtocolTest.completeTest();
</ins><span class="cx">                 }
</span><span class="cx">             });
</span><span class="cx">         });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointoptionsexceptionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint-options-exception.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint-options-exception.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint-options-exception.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,51 +5,51 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.importScript(&quot;console-test.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;console-test.js&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Console.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Console.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     var logsSeen = 0;
</span><span class="cx">     const expectedLogs = 2;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 8, columnNumber: 0};
</span><span class="cx">             var options = {condition: &quot;this.will.cause.exception&quot;, autoContinue: true};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
-                InspectorTest.log(&quot;Running breakpointWithCondition to trigger condition exception.&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
+                ProtocolTest.log(&quot;Running breakpointWithCondition to trigger condition exception.&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointWithCondition(1,2)&quot;}, function() {
</ins><span class="cx">                     location = {scriptId: scriptIdentifier, lineNumber: 18, columnNumber: 0};
</span><span class="cx">                     options = {actions: [{&quot;type&quot;: &quot;evaluate&quot;, &quot;data&quot;: &quot;this.will.cause.exception&quot;}], autoContinue: true};
</span><del>-                    InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
-                        InspectorTest.log(&quot;Running breakpointActions to trigger actions exception.&quot;);
-                        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(1,2)&quot;});
</del><ins>+                    InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location, options: options}, function(responseObject) {
+                        ProtocolTest.log(&quot;Running breakpointActions to trigger actions exception.&quot;);
+                        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointActions(1,2)&quot;});
</ins><span class="cx">                     });
</span><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.log(&quot;FAIL: should not have hit breakpoint, autoContinue was true&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not have hit breakpoint, autoContinue was true&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Console.messageAdded&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Console.messageAdded&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        var message = InspectorTest.Console.sanitizeConsoleMessage(messageObject);
-        InspectorTest.log(&quot;PASS: Console Message: &quot; + JSON.stringify(message));
</del><ins>+        var message = ProtocolTest.Console.sanitizeConsoleMessage(messageObject);
+        ProtocolTest.log(&quot;PASS: Console Message: &quot; + JSON.stringify(message));
</ins><span class="cx"> 
</span><span class="cx">         if (++logsSeen === expectedLogs)
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpoint.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpoint.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpoint.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,35 +5,35 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/resources\/breakpoint\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found breakpoint.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found breakpoint.js&quot;);
</ins><span class="cx">             var scriptIdentifier = messageObject.params.scriptId;
</span><span class="cx">             var location = {scriptId: scriptIdentifier, lineNumber: 3, columnNumber: 0};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
-                InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
+                InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function(responseObject) {
</ins><span class="cx">                     if (!responseObject.error) {
</span><del>-                        InspectorTest.log(&quot;FAIL: Expected error setting duplicate breakpoint&quot;);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(&quot;FAIL: Expected error setting duplicate breakpoint&quot;);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                     } else {
</span><del>-                        InspectorTest.log(&quot;PASS: Received error setting duplicate breakpoint: &quot; + responseObject.error.message);
-                        InspectorTest.log(&quot;Running breakpointBasic&quot;);
-                        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;});
</del><ins>+                        ProtocolTest.log(&quot;PASS: Received error setting duplicate breakpoint: &quot; + responseObject.error.message);
+                        ProtocolTest.log(&quot;Running breakpointBasic&quot;);
+                        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;breakpointBasic()&quot;});
</ins><span class="cx">                     }
</span><span class="cx">                 });
</span><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
-        InspectorTest.log(&quot;PASS&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
+        ProtocolTest.log(&quot;PASS&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetBreakpointByUrlsourceURLhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setBreakpointByUrl-sourceURL.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setBreakpointByUrl-sourceURL.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setBreakpointByUrl-sourceURL.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,30 +8,30 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         if (/sourceURL-test\.js$/.test(messageObject.params.url)) {
</span><del>-            InspectorTest.log(&quot;Found sourceURL-test.js&quot;);
</del><ins>+            ProtocolTest.log(&quot;Found sourceURL-test.js&quot;);
</ins><span class="cx">             var params = {url: messageObject.params.url, lineNumber: 3, columnNumber: 0};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpointByUrl&quot;, params, function(responseObject) {
-                InspectorTest.checkForError(responseObject);
-                InspectorTest.log(&quot;Running sourceURLFunction&quot;);
-                InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;sourceURLFunction()&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpointByUrl&quot;, params, function(responseObject) {
+                InspectorProtocol.checkForError(responseObject);
+                ProtocolTest.log(&quot;Running sourceURLFunction&quot;);
+                InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;sourceURLFunction()&quot;});
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Hit Breakpoint!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Hit Breakpoint!&quot;);
</ins><span class="cx">         var callFrameIdentifier = messageObject.params.callFrames[0].callFrameId;
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
-            InspectorTest.log(&quot;Evaluted value of `a` (expecting number 1) was: &quot; + JSON.stringify(messageObject.result.result));
-            InspectorTest.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;c&quot;}, function(messageObject) {
-                InspectorTest.log(&quot;Evaluted value of `c` (expecting undefined) was: &quot; + JSON.stringify(messageObject.result.result));
-                InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;a&quot;}, function(messageObject) {
+            ProtocolTest.log(&quot;Evaluted value of `a` (expecting number 1) was: &quot; + JSON.stringify(messageObject.result.result));
+            InspectorProtocol.sendCommand(&quot;Debugger.evaluateOnCallFrame&quot;, {callFrameId: callFrameIdentifier, expression: &quot;c&quot;}, function(messageObject) {
+                ProtocolTest.log(&quot;Evaluted value of `c` (expecting undefined) was: &quot; + JSON.stringify(messageObject.result.result));
+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsallhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">             var statement = list[i];
</span><span class="cx">             var last = i === list.length - 1;
</span><span class="cx">             var responseCallback = last ? function() { setTimeout(callback, 10); } : function(){};
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;}, responseCallback);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;}, responseCallback);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx">     {
</span><span class="cx">         var statements = statementsWithoutExceptions;
</span><span class="cx">         evaluateStatements(statements, function() {
</span><del>-            InspectorTest.log(&quot;PASS - did not pause on non-exception statements&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS - did not pause on non-exception statements&quot;);
</ins><span class="cx">             callback();
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">         // Evaluate statement and expect to pause.
</span><span class="cx">         if (currentCaughtExceptionStatement &lt; statementsWithCaughtExceptions.length) {
</span><span class="cx">             var statement = statementsWithCaughtExceptions[currentCaughtExceptionStatement++];
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="cx">         // Done evaluating caught exceptions statements. Move on to uncaught exceptions.
</span><del>-        InspectorTest.log(&quot;PASS - paused for each caught exception&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS - paused for each caught exception&quot;);
</ins><span class="cx">         triggerNext = triggerNextUncaughtException;
</span><span class="cx">         triggerNext();
</span><span class="cx">     }
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">         // Evaluate statement and expect to pause.
</span><span class="cx">         if (currentUncaughtExceptionStatement &lt; statementsWithUncaughtExceptions.length) {
</span><span class="cx">             var statement = statementsWithUncaughtExceptions[currentUncaughtExceptionStatement++];
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -92,40 +92,40 @@
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="cx">         // Done evaluating statements to pause. Evaluate some more we do not expect to pause.
</span><del>-        InspectorTest.log(&quot;PASS - paused for each uncaught exception&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS - paused for each uncaught exception&quot;);
</ins><span class="cx">         expectPause = false;
</span><span class="cx">         evaluateExpectedNoPauses(function() {
</span><del>-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, function(responseObject) {
-        InspectorTest.checkForError(responseObject);
-        InspectorTest.log(&quot;Debugger.setPauseOnExceptions - all&quot;);
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;all&quot;}, function(responseObject) {
+        InspectorProtocol.checkForError(responseObject);
+        ProtocolTest.log(&quot;Debugger.setPauseOnExceptions - all&quot;);
</ins><span class="cx">         evaluateExpectedNoPauses(function() {
</span><span class="cx">             expectPause = true;
</span><span class="cx">             triggerNext();
</span><span class="cx">         });
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Paused!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Paused!&quot;);
</ins><span class="cx"> 
</span><span class="cx">         if (!expectPause) {
</span><del>-            InspectorTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Resumed&quot;);
</del><ins>+        ProtocolTest.log(&quot;Resumed&quot;);
</ins><span class="cx">         triggerNext();
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsnonehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,38 +5,38 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;}, function(responseObject) {
-        InspectorTest.checkForError(responseObject);
-        InspectorTest.log(&quot;Debugger.setPauseOnExceptions - none&quot;);
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { 1+1; }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { noException(); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(noException, 7); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { try{ ({}).a.b.c.d } catch (e) { console.log('caught inline: ' + JSON.stringify(e)); } }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionBasic, 1); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionDOM, 2); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionInHostFunction, 3); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(throwString, 10); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(throwParam, 5, new Error('error message')); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { {}.a.b.c.d; }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionBasic(); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionDOM(); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionInHostFunction(); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwString(); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwParam({x:1}); }, 0);&quot;});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwParam(new Error('error message')); }, 0);&quot;}, function() {
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;none&quot;}, function(responseObject) {
+        InspectorProtocol.checkForError(responseObject);
+        ProtocolTest.log(&quot;Debugger.setPauseOnExceptions - none&quot;);
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { 1+1; }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { noException(); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(noException, 7); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { try{ ({}).a.b.c.d } catch (e) { console.log('caught inline: ' + JSON.stringify(e)); } }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionBasic, 1); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionDOM, 2); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(exceptionInHostFunction, 3); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(throwString, 10); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { catchNested(throwParam, 5, new Error('error message')); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { {}.a.b.c.d; }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionBasic(); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionDOM(); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { exceptionInHostFunction(); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwString(); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwParam({x:1}); }, 0);&quot;});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { throwParam(new Error('error message')); }, 0);&quot;}, function() {
</ins><span class="cx">             setTimeout(function() {
</span><del>-                InspectorTest.log(&quot;PASS: No pauses&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;PASS: No pauses&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">             }, 10);
</span><span class="cx">         });
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Paused!&quot;);
-        InspectorTest.log(&quot;FAIL&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Paused!&quot;);
+        ProtocolTest.log(&quot;FAIL&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsuncaughthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">             var statement = list[i];
</span><span class="cx">             var last = i === list.length - 1;
</span><span class="cx">             var responseCallback = last ? function() { setTimeout(callback, 10); } : function(){};
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;}, responseCallback);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;}, responseCallback);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx">     {
</span><span class="cx">         var statements = statementsWithoutExceptions.concat(statementsWithCaughtExceptions);
</span><span class="cx">         evaluateStatements(statements, function() {
</span><del>-            InspectorTest.log(&quot;PASS - did not pause on non-exception statements or caught exception statements&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS - did not pause on non-exception statements or caught exception statements&quot;);
</ins><span class="cx">             callback();
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">         // Evaluate statement and expect to pause.
</span><span class="cx">         if (currentUncaughtExceptionStatement &lt; statementsWithUncaughtExceptions.length) {
</span><span class="cx">             var statement = statementsWithUncaughtExceptions[currentUncaughtExceptionStatement++];
</span><del>-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</del><ins>+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {expression: &quot;setTimeout(function() { &quot; + statement + &quot; }, 0);&quot;});
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -69,41 +69,41 @@
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="cx">         // Done evaluating statements to pause. Evaluate some more we do not expect to pause.
</span><del>-        InspectorTest.log(&quot;PASS - paused for each uncaught exception&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS - paused for each uncaught exception&quot;);
</ins><span class="cx">         expectPause = false;
</span><span class="cx">         evaluateExpectedNoPauses(function() {
</span><del>-            InspectorTest.log(&quot;PASS&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;PASS&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;uncaught&quot;}, function(responseObject) {
-        InspectorTest.checkForError(responseObject);
-        InspectorTest.log(&quot;Debugger.setPauseOnExceptions - uncaught&quot;);
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Debugger.setPauseOnExceptions&quot;, {state: &quot;uncaught&quot;}, function(responseObject) {
+        InspectorProtocol.checkForError(responseObject);
+        ProtocolTest.log(&quot;Debugger.setPauseOnExceptions - uncaught&quot;);
</ins><span class="cx">         evaluateExpectedNoPauses(function() {
</span><span class="cx">             expectPause = true;
</span><span class="cx">             triggerNextUncaughtException();
</span><span class="cx">         });
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Paused!&quot;);
</del><ins>+        ProtocolTest.log(&quot;Paused!&quot;);
</ins><span class="cx"> 
</span><span class="cx">         if (!expectPause) {
</span><del>-            InspectorTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL - debugger paused when we did not expect to&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Debugger.resume&quot;, {});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;, {});
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Debugger.resumed&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Resumed&quot;);
</del><ins>+        ProtocolTest.log(&quot;Resumed&quot;);
</ins><span class="cx">         triggerNextUncaughtException();
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetVariableValuehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setVariableValue.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setVariableValue.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/setVariableValue.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -15,14 +15,14 @@
</span><span class="cx">             try {
</span><span class="cx">                 processStepOrFail(s);
</span><span class="cx">             } catch (e) {
</span><del>-                InspectorTest.log(e.stack);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(e.stack);
+                ProtocolTest.completeTest();
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function processStepOrFail(s) {
</span><span class="cx">             if (!s) {
</span><del>-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx">             if (!s.command) {
</span><span class="lines">@@ -37,29 +37,29 @@
</span><span class="cx">                 if (&quot;error&quot; in response) {
</span><span class="cx">                     if (!(&quot;errorHandler&quot; in s)) {
</span><span class="cx">                         // Error message is not logged intentionally, it may be platform-specific.
</span><del>-                        InspectorTest.log(&quot;Protocol command '&quot; + s.command + &quot;' failed&quot;);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(&quot;Protocol command '&quot; + s.command + &quot;' failed&quot;);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                         return;
</span><span class="cx">                     }
</span><span class="cx">                     try {
</span><span class="cx">                         next = s.errorHandler(response.error);
</span><span class="cx">                     } catch (e) {
</span><del>-                        InspectorTest.log(e.stack);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(e.stack);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                         return;
</span><span class="cx">                     }
</span><span class="cx">                 } else {
</span><span class="cx">                     try {
</span><span class="cx">                         next = s.callback(response.result);
</span><span class="cx">                     } catch (e) {
</span><del>-                        InspectorTest.log(e.stack);
-                        InspectorTest.completeTest();
</del><ins>+                        ProtocolTest.log(e.stack);
+                        ProtocolTest.completeTest();
</ins><span class="cx">                         return;
</span><span class="cx">                     }
</span><span class="cx">                 }
</span><span class="cx">                 processStep(next);
</span><span class="cx">             }
</span><del>-            InspectorTest.sendCommand(s.command, s.params, innerCallback);
</del><ins>+            InspectorProtocol.sendCommand(s.command, s.params, innerCallback);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -95,8 +95,8 @@
</span><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         function callbackLogClosureEval(result) {
</span><del>-            InspectorTest.log(&quot;Closure returns: &quot; + JSON.stringify(result.result));
-            InspectorTest.log(&quot; (expected: 'ttttrue52013')&quot;);
</del><ins>+            ProtocolTest.log(&quot;Closure returns: &quot; + JSON.stringify(result.result));
+            ProtocolTest.log(&quot; (expected: 'ttttrue52013')&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var params = {
</span><span class="cx">                 functionObjectId: functionObjectId,
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function setVariableCallback() {
</span><del>-            InspectorTest.log(&quot;Debugger.setVariableValue OK&quot;);
</del><ins>+            ProtocolTest.log(&quot;Debugger.setVariableValue OK&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var params = {
</span><span class="cx">                 objectId: functionObjectId,
</span><span class="lines">@@ -123,8 +123,8 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function callbackLogClosureEval2(result) {
</span><del>-            InspectorTest.log(&quot;Closure returns: &quot; + JSON.stringify(result.result));
-            InspectorTest.log(&quot; (expected: 'ttttrue42013')&quot;);
</del><ins>+            ProtocolTest.log(&quot;Closure returns: &quot; + JSON.stringify(result.result));
+            ProtocolTest.log(&quot; (expected: 'ttttrue42013')&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var params = {
</span><span class="cx">                 // No target is specified
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function setVariableErrorCallback3(error) {
</span><del>-            InspectorTest.log(&quot;Expected error: &quot; + JSON.stringify(error));
</del><ins>+            ProtocolTest.log(&quot;Expected error: &quot; + JSON.stringify(error));
</ins><span class="cx"> 
</span><span class="cx">             var params = {
</span><span class="cx">                 functionObjectId: functionObjectId,
</span><span class="lines">@@ -152,7 +152,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function setVariableErrorCallback4(error) {
</span><del>-            InspectorTest.log(&quot;Expected error&quot;);
</del><ins>+            ProtocolTest.log(&quot;Expected error&quot;);
</ins><span class="cx"> 
</span><span class="cx">             var params = {
</span><span class="cx">                 functionObjectId: functionObjectId,
</span><span class="lines">@@ -166,7 +166,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function setVariableErrorCallback5(error) {
</span><del>-            InspectorTest.log(&quot;Expected error&quot;);
</del><ins>+            ProtocolTest.log(&quot;Expected error&quot;);
</ins><span class="cx"> 
</span><span class="cx">             // End of test.
</span><span class="cx">             return;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerterminatededicatedworkerwhilepausedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/terminate-dedicated-worker-while-paused.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/terminate-dedicated-worker-while-paused.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/debugger/terminate-dedicated-worker-while-paused.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">     var workerRequestId = 1;
</span><span class="cx">     function sendCommandToWorker(method, params)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(&quot;Worker.sendMessageToWorker&quot;, {
</del><ins>+        InspectorProtocol.sendCommand(&quot;Worker.sendMessageToWorker&quot;, {
</ins><span class="cx">             &quot;workerId&quot;: workerId,
</span><span class="cx">             &quot;message&quot;: {
</span><span class="cx">                 &quot;method&quot;: method,
</span><span class="lines">@@ -28,32 +28,32 @@
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Worker.enable&quot;, {}, function(messageObject) {
</del><ins>+    InspectorProtocol.sendCommand(&quot;Worker.enable&quot;, {}, function(messageObject) {
</ins><span class="cx">         if (&quot;error&quot; in messageObject) {
</span><del>-            InspectorTest.log(&quot;FAIL: Couldn't enable worker debugger: &quot; + messageObject.error.message);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: Couldn't enable worker debugger: &quot; + messageObject.error.message);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Worker.workerCreated&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Worker.workerCreated&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         workerId = messageObject[&quot;params&quot;][&quot;workerId&quot;];
</span><del>-        InspectorTest.log(&quot;Worker created&quot;);
-        InspectorTest.sendCommand(&quot;Worker.connectToWorker&quot;, {&quot;workerId&quot;: workerId}, function(messageObject) {
-            InspectorTest.log(&quot;didConnectToWorker&quot;);
</del><ins>+        ProtocolTest.log(&quot;Worker created&quot;);
+        InspectorProtocol.sendCommand(&quot;Worker.connectToWorker&quot;, {&quot;workerId&quot;: workerId}, function(messageObject) {
+            ProtocolTest.log(&quot;didConnectToWorker&quot;);
</ins><span class="cx">             sendCommandToWorker(&quot;Debugger.enable&quot;, {});
</span><span class="cx">             sendCommandToWorker(&quot;Debugger.pause&quot;, {});
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;Worker.dispatchMessageFromWorker&quot;] = function(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;Worker.dispatchMessageFromWorker&quot;] = function(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         var message = messageObject[&quot;params&quot;][&quot;message&quot;];
</span><span class="cx">         if (message[&quot;method&quot;] === &quot;Debugger.paused&quot;) {
</span><del>-            InspectorTest.log(&quot;Worker paused&quot;);
-            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;worker.terminate()&quot;}, function(messageObject) {
-                InspectorTest.log(&quot;SUCCESS: Did terminate paused worker&quot;);
-                InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;Worker paused&quot;);
+            InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;worker.terminate()&quot;}, function(messageObject) {
+                ProtocolTest.log(&quot;SUCCESS: Did terminate paused worker&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomdomremoveeventshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/dom-remove-events.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/dom-remove-events.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/dom-remove-events.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -16,9 +16,9 @@
</span><span class="cx"> {
</span><span class="cx">     var nodesById = {};
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
-    InspectorTest.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
-    InspectorTest.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
</ins><span class="cx"> 
</span><span class="cx">     function createNodeAttributesMap(node)
</span><span class="cx">     {
</span><span class="lines">@@ -47,31 +47,31 @@
</span><span class="cx">     function onChildNodeRemoved(response)
</span><span class="cx">     {
</span><span class="cx">         var nodeId = response.params.nodeId;
</span><del>-        InspectorTest.assert(getNodeIdentifier(nodeId) === &quot;target_element&quot;, &quot;onChildNodeRemoved called for #target_element&quot;);
</del><ins>+        ProtocolTest.assert(getNodeIdentifier(nodeId) === &quot;target_element&quot;, &quot;onChildNodeRemoved called for #target_element&quot;);
</ins><span class="cx">         delete nodesById[nodeId];
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onChildNodeInserted(response)
</span><span class="cx">     {
</span><span class="cx">         collectNode(response.params.node);
</span><del>-        InspectorTest.assert(getNodeIdentifier(response.params.parentNodeId) === &quot;final_container&quot;, &quot;onChildNodeInserted called for parent node #final_container&quot;);
-        InspectorTest.assert(getNodeIdentifier(response.params.node.nodeId) === &quot;target_element&quot;, &quot;onChildNodeInserted called for child node #target_element&quot;);
</del><ins>+        ProtocolTest.assert(getNodeIdentifier(response.params.parentNodeId) === &quot;final_container&quot;, &quot;onChildNodeInserted called for parent node #final_container&quot;);
+        ProtocolTest.assert(getNodeIdentifier(response.params.node.nodeId) === &quot;target_element&quot;, &quot;onChildNodeInserted called for child node #target_element&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(msg)
</span><span class="cx">     {
</span><del>-        InspectorTest.checkForError(msg);
-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, {&quot;nodeId&quot;: msg.result.root.nodeId, &quot;selector&quot;: &quot;#final_container&quot;}, onQuerySelector);
</del><ins>+        InspectorProtocol.checkForError(msg);
+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, {&quot;nodeId&quot;: msg.result.root.nodeId, &quot;selector&quot;: &quot;#final_container&quot;}, onQuerySelector);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onQuerySelector(response)
</span><span class="cx">     {
</span><span class="cx">         // Make sure we receive the children of the &quot;#final_container&quot; as they are added.
</span><del>-        InspectorTest.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: response.result.nodeId});
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
-            InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: response.result.nodeId});
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomdomsearchcrashhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/dom-search-crash.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/dom-search-crash.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/dom-search-crash.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -4,18 +4,18 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(message) {
</span><del>-        InspectorTest.checkForError(message);
-        InspectorTest.sendCommand(&quot;DOM.performSearch&quot;, {query: &quot;FooBar&quot;}, onSearchCompleted);
</del><ins>+        InspectorProtocol.checkForError(message);
+        InspectorProtocol.sendCommand(&quot;DOM.performSearch&quot;, {query: &quot;FooBar&quot;}, onSearchCompleted);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onSearchCompleted(message)
</span><span class="cx">     {
</span><del>-        InspectorTest.checkForError(message);
-        InspectorTest.log(&quot;PASS: Test passes if it doesn't crash.&quot;);
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.checkForError(message);
+        ProtocolTest.log(&quot;PASS: Test passes if it doesn't crash.&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomdomsearchwithcontexthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/dom-search-with-context.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/dom-search-with-context.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/dom-search-with-context.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><span class="cx">     // Create a DOM listener to convert nodeIds to tag names.
</span><del>-    InspectorTest.importScript(&quot;../dom/resources/InspectorDOMListener.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;../dom/resources/InspectorDOMListener.js&quot;);
</ins><span class="cx">     var dom = createDOMListener();
</span><span class="cx"> 
</span><span class="cx">     // Caching the output to avoid searching through the log.
</span><span class="lines">@@ -44,10 +44,10 @@
</span><span class="cx">         }
</span><span class="cx">     ];
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(message) {
</span><del>-        InspectorTest.checkForError(message);
</del><ins>+        InspectorProtocol.checkForError(message);
</ins><span class="cx">         dom.collectNode(message.result.root);
</span><span class="cx">         documentId = message.result.root.nodeId;
</span><span class="cx">         performSearches(domSearchQueries, testFinished);
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx">     {
</span><span class="cx">         resolveSelectors(queryData.nodes, function(nodeIds) {
</span><span class="cx">             output.push(&quot;=== Query: &quot; + JSON.stringify(queryData.query) + &quot; in [&quot; + queryData.nodes.join(&quot;, &quot;) + &quot;] ===&quot;);
</span><del>-            InspectorTest.sendCommand(&quot;DOM.performSearch&quot;, {query: queryData.query, nodeIds: nodeIds}, function(message) {
-                InspectorTest.checkForError(message);
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.performSearch&quot;, {query: queryData.query, nodeIds: nodeIds}, function(message) {
+                InspectorProtocol.checkForError(message);
</ins><span class="cx">                 printSearchResults(message.result, callback);
</span><span class="cx">             });
</span><span class="cx">         });
</span><span class="lines">@@ -82,8 +82,8 @@
</span><span class="cx">         if (!remaining)
</span><span class="cx">             return callback(results);
</span><span class="cx">         nodes.forEach(function(selector, index) {
</span><del>-            InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, {nodeId: documentId, selector: selector}, function(message) {
-                InspectorTest.checkForError(message);
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, {nodeId: documentId, selector: selector}, function(message) {
+                InspectorProtocol.checkForError(message);
</ins><span class="cx">                 results[index] = message.result.nodeId;
</span><span class="cx">                 if (--remaining &lt;= 0)
</span><span class="cx">                     callback(results);
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">             return callback();
</span><span class="cx"> 
</span><span class="cx">         var options = {&quot;searchId&quot;: results.searchId, &quot;fromIndex&quot;: 0, &quot;toIndex&quot;: results.resultCount};
</span><del>-        InspectorTest.sendCommand(&quot;DOM.getSearchResults&quot;, options, function(message) {
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.getSearchResults&quot;, options, function(message) {
</ins><span class="cx">             for (var nodeId of message.result.nodeIds)
</span><span class="cx">                 output.push(dom.getNodeIdentifier(nodeId));
</span><span class="cx">             callback();
</span><span class="lines">@@ -107,8 +107,8 @@
</span><span class="cx"> 
</span><span class="cx">     function testFinished()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(output.join(&quot;\n&quot;));
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(output.join(&quot;\n&quot;));
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomdomsearchhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/dom-search.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/dom-search.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/dom-search.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -5,19 +5,19 @@
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><span class="cx">     // Loading the queries from external file to avoid having them show up in the results.
</span><del>-    InspectorTest.importScript(&quot;../../../../inspector/dom/resources/dom-search-queries.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;../../../../inspector/dom/resources/dom-search-queries.js&quot;);
</ins><span class="cx"> 
</span><span class="cx">     // Create a DOM listener to convert nodeIds to tag names.
</span><del>-    InspectorTest.importScript(&quot;../dom/resources/InspectorDOMListener.js&quot;);
</del><ins>+    ProtocolTest.importScript(&quot;../dom/resources/InspectorDOMListener.js&quot;);
</ins><span class="cx">     var dom = createDOMListener();
</span><span class="cx"> 
</span><span class="cx">     // Caching the output to avoid searching through the log.
</span><span class="cx">     var output = [];
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(message) {
</span><del>-        InspectorTest.checkForError(message);
</del><ins>+        InspectorProtocol.checkForError(message);
</ins><span class="cx">         dom.collectNode(message.result.root);
</span><span class="cx">         performSearches(domSearchQueries, testFinished);
</span><span class="cx">     }
</span><span class="lines">@@ -36,8 +36,8 @@
</span><span class="cx">     function search(query, callback)
</span><span class="cx">     {
</span><span class="cx">         output.push(&quot;=== Query: &quot; + JSON.stringify(query) + &quot; ===&quot;);
</span><del>-        InspectorTest.sendCommand(&quot;DOM.performSearch&quot;, {query: query}, function(message) {
-            InspectorTest.checkForError(message);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.performSearch&quot;, {query: query}, function(message) {
+            InspectorProtocol.checkForError(message);
</ins><span class="cx">             printSearchResults(message.result, callback);
</span><span class="cx">         });
</span><span class="cx">     }
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx">             return callback();
</span><span class="cx"> 
</span><span class="cx">         var options = {&quot;searchId&quot;: results.searchId, &quot;fromIndex&quot;: 0, &quot;toIndex&quot;: results.resultCount};
</span><del>-        InspectorTest.sendCommand(&quot;DOM.getSearchResults&quot;, options, function onResultsReceived(message) {
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.getSearchResults&quot;, options, function onResultsReceived(message) {
</ins><span class="cx">             for (var nodeId of message.result.nodeIds)
</span><span class="cx">                 output.push(dom.getNodeIdentifier(nodeId));
</span><span class="cx">             callback();
</span><span class="lines">@@ -58,8 +58,8 @@
</span><span class="cx"> 
</span><span class="cx">     function testFinished()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(output.join(&quot;\n&quot;));
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(output.join(&quot;\n&quot;));
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomfocushtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/focus.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/focus.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/focus.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -10,32 +10,32 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(msg) {
</span><span class="cx">         if (msg.error) {
</span><del>-            InspectorTest.log(msg.error.message);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(msg.error.message);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         var node = msg.result.root;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, { &quot;nodeId&quot;: node.nodeId, &quot;selector&quot;: &quot;#second&quot; }, onQuerySelector);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, { &quot;nodeId&quot;: node.nodeId, &quot;selector&quot;: &quot;#second&quot; }, onQuerySelector);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onQuerySelector(msg) {
</span><span class="cx">         if (msg.error) {
</span><del>-            InspectorTest.log(msg.error.message);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(msg.error.message);
+            ProtocolTest.completeTest();
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">         var node = msg.result;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.focus&quot;, { &quot;nodeId&quot;: node.nodeId }, onFocus);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.focus&quot;, { &quot;nodeId&quot;: node.nodeId }, onFocus);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onFocus(msg) {
</span><span class="cx">         if (msg.error)
</span><del>-            InspectorTest.log(msg.error);
-        InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(msg.error);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNodehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -139,45 +139,45 @@
</span><span class="cx">     var documentNodeId = null;
</span><span class="cx"> 
</span><span class="cx">     function onGotDocument(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         documentNodeId = response.result.root.nodeId;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: documentNodeId}, onGotAccessibilityPropertiesForDocumentNode);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: documentNodeId}, onGotAccessibilityPropertiesForDocumentNode);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotAccessibilityPropertiesForDocumentNode(response) {
</span><del>-        InspectorTest.checkForError(response);
-        InspectorTest.log(&quot;#document&quot;);
</del><ins>+        InspectorProtocol.checkForError(response);
+        ProtocolTest.log(&quot;#document&quot;);
</ins><span class="cx">         logAccessibilityProperties(response.result.properties);
</span><del>-        InspectorTest.log(&quot;\n&quot;);
-        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</del><ins>+        ProtocolTest.log(&quot;\n&quot;);
+        InspectorProtocol.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotQuerySelectorAll(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         examples = response.result.nodeIds;
</span><del>-        InspectorTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</del><ins>+        ProtocolTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</ins><span class="cx">         loop();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function loop() {
</span><span class="cx">         if (examples.length) {
</span><del>-            InspectorTest.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</ins><span class="cx">         } else {
</span><span class="cx">             finishTest();
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotOuterHTML(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         var outerHTML = response.result.outerHTML;
</span><span class="cx">         outerHTML = outerHTML.replace(/ class=&quot;ex&quot;/g, &quot;&quot;); // remove any duplicated, unnecessary class attributes
</span><span class="cx">         outerHTML = outerHTML.replace(/;base64,.*?&quot;/, &quot;...\&quot;&quot;); // suppress full data URIs in output
</span><del>-        InspectorTest.log(&quot;\n&quot; + outerHTML);
-        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</del><ins>+        ProtocolTest.log(&quot;\n&quot; + outerHTML);
+        InspectorProtocol.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotAccessibilityProperties(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         logAccessibilityProperties(response.result.properties);
</span><span class="cx">         examples.pop();
</span><span class="cx">         loop();
</span><span class="lines">@@ -193,7 +193,7 @@
</span><span class="cx">             case &quot;mouseEventNodeId&quot;:
</span><span class="cx">             case &quot;parentNodeId&quot;:
</span><span class="cx">                 if (typeof value === &quot;number&quot;)
</span><del>-                    InspectorTest.log(&quot;    &quot; + key + &quot;: exists&quot;);
</del><ins>+                    ProtocolTest.log(&quot;    &quot; + key + &quot;: exists&quot;);
</ins><span class="cx">                 break;
</span><span class="cx">             case &quot;childNodeIds&quot;:
</span><span class="cx">             case &quot;controlledNodeIds&quot;:
</span><span class="lines">@@ -201,23 +201,23 @@
</span><span class="cx">             case &quot;ownedNodeIds&quot;:
</span><span class="cx">             case &quot;selectedChildNodeIds&quot;:
</span><span class="cx">                 if (typeof value === &quot;object&quot; &amp;&amp; value.length)
</span><del>-                    InspectorTest.log(&quot;    &quot; + key + &quot;.length: &quot; + value.length);
</del><ins>+                    ProtocolTest.log(&quot;    &quot; + key + &quot;.length: &quot; + value.length);
</ins><span class="cx">                 break;
</span><span class="cx">             default:
</span><del>-                InspectorTest.log(&quot;    &quot; + key + &quot;: &quot; + value);
</del><ins>+                ProtocolTest.log(&quot;    &quot; + key + &quot;: &quot; + value);
</ins><span class="cx">             }
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function finishTest() {
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
-            InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNode_liveRegionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_liveRegion.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -62,36 +62,36 @@
</span><span class="cx">     var bodyNodeId = null;
</span><span class="cx"> 
</span><span class="cx">     function onGotDocument(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         documentNodeId = response.result.root.nodeId;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotQuerySelectorAll(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         examples = response.result.nodeIds;
</span><del>-        InspectorTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</del><ins>+        ProtocolTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</ins><span class="cx">         loop();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function loop() {
</span><span class="cx">         if (examples.length) {
</span><del>-            InspectorTest.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</ins><span class="cx">         } else {
</span><span class="cx">             finishTest();
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotOuterHTML(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         var outerHTML = response.result.outerHTML;
</span><span class="cx">         outerHTML = outerHTML.replace(/ class=&quot;ex&quot;/g, &quot;&quot;); // remove any duplicated, unnecessary class attributes
</span><del>-        InspectorTest.log(&quot;\n&quot; + outerHTML);
-        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</del><ins>+        ProtocolTest.log(&quot;\n&quot; + outerHTML);
+        InspectorProtocol.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotAccessibilityProperties(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         logAccessibilityProperties(response.result.properties);
</span><span class="cx">         examples.pop();
</span><span class="cx">         loop();
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx">             case &quot;liveRegionAtomic&quot;:
</span><span class="cx">             case &quot;liveRegionRelevant&quot;:
</span><span class="cx">             case &quot;liveRegionStatus&quot;:
</span><del>-                InspectorTest.log(&quot;    &quot; + key + &quot;: &quot; + value);
</del><ins>+                ProtocolTest.log(&quot;    &quot; + key + &quot;: &quot; + value);
</ins><span class="cx">                 break;
</span><span class="cx">             default:
</span><span class="cx">                 continue;
</span><span class="lines">@@ -115,12 +115,12 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function finishTest() {
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
-            InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomgetAccessibilityPropertiesForNode_mouseEventNodeIdhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_mouseEventNodeId.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -76,47 +76,47 @@
</span><span class="cx">     var bodyNodeId = null;
</span><span class="cx"> 
</span><span class="cx">     function onGotDocument(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         documentNodeId = response.result.root.nodeId;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;body&quot;}, onGotBody);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;body&quot;}, onGotBody);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotBody(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         bodyNodeId = response.result.nodeId;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: bodyNodeId}, onGotAccessibilityPropertiesForBodyNode);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: bodyNodeId}, onGotAccessibilityPropertiesForBodyNode);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotAccessibilityPropertiesForBodyNode(response) {
</span><del>-        InspectorTest.checkForError(response);
-        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</del><ins>+        InspectorProtocol.checkForError(response);
+        InspectorProtocol.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: documentNodeId, &quot;selector&quot;: &quot;.ex&quot;}, onGotQuerySelectorAll);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotQuerySelectorAll(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         examples = response.result.nodeIds;
</span><del>-        InspectorTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</del><ins>+        ProtocolTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
</ins><span class="cx">         loop();
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function loop() {
</span><span class="cx">         if (examples.length) {
</span><del>-            InspectorTest.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
</ins><span class="cx">         } else {
</span><span class="cx">             finishTest();
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotOuterHTML(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         var outerHTML = response.result.outerHTML;
</span><span class="cx">         outerHTML = outerHTML.replace(/ class=&quot;ex&quot;/g, &quot;&quot;); // remove any duplicated, unnecessary class attributes
</span><del>-        InspectorTest.log(&quot;\n&quot; + outerHTML);
-        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</del><ins>+        ProtocolTest.log(&quot;\n&quot; + outerHTML);
+        InspectorProtocol.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAccessibilityProperties);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotAccessibilityProperties(response) {
</span><del>-        InspectorTest.checkForError(response);
</del><ins>+        InspectorProtocol.checkForError(response);
</ins><span class="cx">         logAccessibilityProperties(response.result.properties);
</span><span class="cx">         examples.pop();
</span><span class="cx">         loop();
</span><span class="lines">@@ -132,16 +132,16 @@
</span><span class="cx">                 msg += &quot;self&quot;;
</span><span class="cx">             else
</span><span class="cx">                 msg += &quot;ancestor element&quot;;
</span><del>-            InspectorTest.log(msg);
</del><ins>+            ProtocolTest.log(msg);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function finishTest() {
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
-            InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomhighlightflowwithnoregionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/highlight-flow-with-no-region.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/highlight-flow-with-no-region.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/highlight-flow-with-no-region.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -9,16 +9,16 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(msg) {
</span><del>-        InspectorTest.checkForError(msg);
</del><ins>+        InspectorProtocol.checkForError(msg);
</ins><span class="cx">         var node = msg.result.root;
</span><del>-        InspectorTest.sendCommand(&quot;DOM.querySelector&quot;, { &quot;nodeId&quot;: node.nodeId, &quot;selector&quot;: &quot;#inspectedElement&quot; }, onQuerySelector);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.querySelector&quot;, { &quot;nodeId&quot;: node.nodeId, &quot;selector&quot;: &quot;#inspectedElement&quot; }, onQuerySelector);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onQuerySelector(msg) {
</span><del>-        InspectorTest.checkForError(msg);
</del><ins>+        InspectorProtocol.checkForError(msg);
</ins><span class="cx">         var node = msg.result;
</span><span class="cx">         var highlightConfig = {
</span><span class="cx">             showInfo: true,
</span><span class="lines">@@ -27,12 +27,12 @@
</span><span class="cx">             borderColor: {r: 255, g: 255, b: 255},
</span><span class="cx">             marginColor: {r: 255, g: 255, b: 255},
</span><span class="cx">         };
</span><del>-        InspectorTest.sendCommand(&quot;DOM.highlightNode&quot;, { &quot;highlightConfig&quot;: highlightConfig, &quot;nodeId&quot;: node.nodeId }, onHighlightComplete);
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOM.highlightNode&quot;, { &quot;highlightConfig&quot;: highlightConfig, &quot;nodeId&quot;: node.nodeId }, onHighlightComplete);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onHighlightComplete(msg) {
</span><del>-        InspectorTest.checkForError(msg);
-        InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.checkForError(msg);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomremovemultiplenodeshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/remove-multiple-nodes.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/remove-multiple-nodes.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/remove-multiple-nodes.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -18,9 +18,9 @@
</span><span class="cx"> {
</span><span class="cx">     var nodesById = {};
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
-    InspectorTest.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
-    InspectorTest.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
</ins><span class="cx"> 
</span><span class="cx">     function createNodeAttributesMap(attributes)
</span><span class="cx">     {
</span><span class="lines">@@ -67,32 +67,32 @@
</span><span class="cx">     function onChildNodeRemoved(response)
</span><span class="cx">     {
</span><span class="cx">         var nodeId = response.params.nodeId;
</span><del>-        InspectorTest.log(&quot;Removing node &quot; + getNodeIdentifier(nodeId));
</del><ins>+        ProtocolTest.log(&quot;Removing node &quot; + getNodeIdentifier(nodeId));
</ins><span class="cx">         delete nodesById[nodeId];
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onChildNodeInserted(response)
</span><span class="cx">     {
</span><span class="cx">         collectNode(response.params.node);
</span><del>-        InspectorTest.log(&quot;Inserting node &quot; + getNodeIdentifier(response.params.node.nodeId) + &quot; into &quot; + getNodeIdentifier(response.params.parentNodeId));
</del><ins>+        ProtocolTest.log(&quot;Inserting node &quot; + getNodeIdentifier(response.params.node.nodeId) + &quot; into &quot; + getNodeIdentifier(response.params.parentNodeId));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+    InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx"> 
</span><span class="cx">     function onGotDocument(msg)
</span><span class="cx">     {
</span><del>-        InspectorTest.checkForError(msg);
-        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: msg.result.root.nodeId, &quot;selector&quot;: &quot;#parent_container,#final_container&quot;}, onQuerySelectorAll);
</del><ins>+        InspectorProtocol.checkForError(msg);
+        InspectorProtocol.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: msg.result.root.nodeId, &quot;selector&quot;: &quot;#parent_container,#final_container&quot;}, onQuerySelectorAll);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onQuerySelectorAll(response)
</span><span class="cx">     {
</span><span class="cx">         // Make sure we receive the children of the &quot;#final_container&quot; as they are added.
</span><span class="cx">         for (var i = 0; i &lt; response.result.nodeIds.length; ++i)
</span><del>-            InspectorTest.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: response.result.nodeIds[i]});
</del><ins>+            InspectorProtocol.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: response.result.nodeIds[i]});
</ins><span class="cx">         
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
-            InspectorTest.completeTest();
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomrequestchildnodesdepthhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom/request-child-nodes-depth.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom/request-child-nodes-depth.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom/request-child-nodes-depth.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx"> 
</span><span class="cx">     getDocument();
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = function setChildNodes(messageObject)
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = function setChildNodes(messageObject)
</ins><span class="cx">     {
</span><span class="cx">         eventsCount++;
</span><span class="cx"> 
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">         else if (eventsCount === 3)
</span><span class="cx">             gotAllChildren(messageObject);
</span><span class="cx">         else
</span><del>-            InspectorTest.log(JSON.stringify(messageObject, null, &quot;    &quot;));
</del><ins>+            ProtocolTest.log(JSON.stringify(messageObject, null, &quot;    &quot;));
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function getDocument()
</span><span class="lines">@@ -104,15 +104,15 @@
</span><span class="cx">     {
</span><span class="cx">         assert(&quot;Expected number of setChildNodes events&quot;, eventsCount, 3);
</span><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function step(test)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + test.name + &quot; ===\n&quot;);
-        InspectorTest.sendCommand(test.command, test.parameters, function(messageObject) {
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + test.name + &quot; ===\n&quot;);
+        InspectorProtocol.sendCommand(test.command, test.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;))
</span><del>-                InspectorTest.log(&quot;Backend error: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)\n&quot;);
</del><ins>+                ProtocolTest.log(&quot;Backend error: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (test.callback)
</span><span class="cx">                 test.callback(messageObject.result);
</span><span class="lines">@@ -122,10 +122,10 @@
</span><span class="cx">     function assert(message, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (actual === expected)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + message);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + message);
</ins><span class="cx">         else {
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + message + &quot;, expected \&quot;&quot; + expected + &quot;\&quot; but got \&quot;&quot; + actual + &quot;\&quot;&quot;);
-            InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + message + &quot;, expected \&quot;&quot; + expected + &quot;\&quot; but got \&quot;&quot; + actual + &quot;\&quot;&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         }
</span><span class="cx">     };
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordomdebuggernoderemovedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/dom-debugger/node-removed.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/dom-debugger/node-removed.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/dom-debugger/node-removed.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -19,11 +19,11 @@
</span><span class="cx"> {
</span><span class="cx">     var nodesById = {};
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
-    InspectorTest.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
-    InspectorTest.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
-    InspectorTest.eventHandler[&quot;Debugger.paused&quot;] = onDebuggerPaused;
-    InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = onScriptParsed;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = onSetChildNodes;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeRemoved&quot;] = onChildNodeRemoved;
+    InspectorProtocol.eventHandler[&quot;DOM.childNodeInserted&quot;] = onChildNodeInserted;
+    InspectorProtocol.eventHandler[&quot;Debugger.paused&quot;] = onDebuggerPaused;
+    InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = onScriptParsed;
</ins><span class="cx">     
</span><span class="cx">     function createNodeAttributesMap(attributes)
</span><span class="cx">     {
</span><span class="lines">@@ -70,23 +70,23 @@
</span><span class="cx">     function onChildNodeRemoved(response)
</span><span class="cx">     {
</span><span class="cx">         var nodeId = response.params.nodeId;
</span><del>-        InspectorTest.assert(getNodeIdentifier(nodeId) === &quot;div#target_element&quot;, &quot;onChildNodeRemoved called for #target_element&quot;);
</del><ins>+        ProtocolTest.assert(getNodeIdentifier(nodeId) === &quot;div#target_element&quot;, &quot;onChildNodeRemoved called for #target_element&quot;);
</ins><span class="cx">         delete nodesById[nodeId];
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onChildNodeInserted(response)
</span><span class="cx">     {
</span><span class="cx">         collectNode(response.params.node);
</span><del>-        InspectorTest.assert(getNodeIdentifier(response.params.parentNodeId) === &quot;div#final_container&quot;, &quot;onChildNodeInserted called for parent node #final_container&quot;);
-        InspectorTest.assert(getNodeIdentifier(response.params.node.nodeId) === &quot;div#target_element&quot;, &quot;onChildNodeInserted called for child node #target_element&quot;);
</del><ins>+        ProtocolTest.assert(getNodeIdentifier(response.params.parentNodeId) === &quot;div#final_container&quot;, &quot;onChildNodeInserted called for parent node #final_container&quot;);
+        ProtocolTest.assert(getNodeIdentifier(response.params.node.nodeId) === &quot;div#target_element&quot;, &quot;onChildNodeInserted called for child node #target_element&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onDebuggerPaused(response)
</span><span class="cx">     {   
</span><del>-        InspectorTest.log(&quot;Stopped on DOM breakpoint&quot;);
-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
-            InspectorTest.sendCommand(&quot;Debugger.resume&quot;);
-            InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Stopped on DOM breakpoint&quot;);
+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;moveNode()&quot;}, function() {
+            InspectorProtocol.sendCommand(&quot;Debugger.resume&quot;);
+            ProtocolTest.completeTest();
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -95,19 +95,19 @@
</span><span class="cx">         // FIXME: The DOM breakpoints are not working unless there's a JS brakpoint set. Setting a fake breakpoint to workaround that.
</span><span class="cx">         // https://bugs.webkit.org/show_bug.cgi?id=123770 
</span><span class="cx">         if (/node-removed\.html$/.test(messageObject.params.url) &amp;&amp; messageObject.params.startLine &gt; 20) {
</span><del>-            InspectorTest.eventHandler[&quot;Debugger.scriptParsed&quot;] = null;
-            InspectorTest.log(&quot;Found &lt;script&gt;&quot;);
</del><ins>+            InspectorProtocol.eventHandler[&quot;Debugger.scriptParsed&quot;] = null;
+            ProtocolTest.log(&quot;Found &lt;script&gt;&quot;);
</ins><span class="cx">             var location = {scriptId: messageObject.params.scriptId, lineNumber: messageObject.params.startLine + 2, columnNumber: 0};
</span><del>-            InspectorTest.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
-                InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</del><ins>+            InspectorProtocol.sendCommand(&quot;Debugger.setBreakpoint&quot;, {location: location}, function() {
+                InspectorProtocol.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
</ins><span class="cx">             });
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onGotDocument(response)
</span><span class="cx">     {
</span><del>-        InspectorTest.checkForError(response);
-        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: response.result.root.nodeId, &quot;selector&quot;: &quot;#target_element,#final_container&quot;}, onQuerySelectorAll);
</del><ins>+        InspectorProtocol.checkForError(response);
+        InspectorProtocol.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: response.result.root.nodeId, &quot;selector&quot;: &quot;#target_element,#final_container&quot;}, onQuerySelectorAll);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onQuerySelectorAll(response)
</span><span class="lines">@@ -115,13 +115,13 @@
</span><span class="cx">         var targetElementId = response.result.nodeIds[0];
</span><span class="cx">         var finalContainerId = response.result.nodeIds[1];
</span><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;DOMDebugger.setDOMBreakpoint&quot;, {nodeId: targetElementId, type: &quot;node-removed&quot;});
-        InspectorTest.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: finalContainerId});
</del><ins>+        InspectorProtocol.sendCommand(&quot;DOMDebugger.setDOMBreakpoint&quot;, {nodeId: targetElementId, type: &quot;node-removed&quot;});
+        InspectorProtocol.sendCommand(&quot;DOM.requestChildNodes&quot;, {nodeId: finalContainerId});
</ins><span class="cx"> 
</span><del>-        InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;removeNode()&quot;});
</del><ins>+        InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;removeNode()&quot;});
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Debugger.enable&quot;, {});
</del><ins>+    InspectorProtocol.sendCommand(&quot;Debugger.enable&quot;, {});
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayersanonymoushtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-anonymous.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-anonymous.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-anonymous.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> 
</span><span class="cx">     var nodes;
</span><span class="cx">  
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</ins><span class="cx"> 
</span><span class="cx">     enableLayerTreeAgent();
</span><span class="cx">     
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx">         assert(&quot;Node has id&quot;, node.attributes[0], &quot;id&quot;);
</span><span class="cx">         assert(&quot;Node has expected id&quot;, node.attributes[1], &quot;first-letter&quot;);
</span><span class="cx">         
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function setChildNodes (messageObject) {
</span><span class="lines">@@ -87,20 +87,20 @@
</span><span class="cx"> 
</span><span class="cx">     function logTestName(name)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function runCommand(command)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(command.command, command.parameters, function(messageObject) {
</del><ins>+        InspectorProtocol.sendCommand(command.command, command.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;)) {
</span><del>-                InspectorTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (command.name)
</span><del>-                InspectorTest.log(&quot;PASS&quot;);
</del><ins>+                ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (command.callback)
</span><span class="cx">                 command.callback(messageObject.result);
</span><span class="lines">@@ -110,9 +110,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayersblendingcompositingreasonshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-blending-compositing-reasons.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-blending-compositing-reasons.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-blending-compositing-reasons.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> 
</span><span class="cx">     var nodes = [];
</span><span class="cx">  
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</ins><span class="cx"> 
</span><span class="cx">     enableLayerTreeAgent();
</span><span class="cx">     
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (++count === layers.length)
</span><del>-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.completeTest();
</ins><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         layers.forEach(function (layer) {
</span><span class="lines">@@ -105,16 +105,16 @@
</span><span class="cx"> 
</span><span class="cx">     function logTestName(name)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function runCommand(command)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(command.command, command.parameters, function(messageObject) {
-            InspectorTest.checkForError(messageObject);
</del><ins>+        InspectorProtocol.sendCommand(command.command, command.parameters, function(messageObject) {
+            InspectorProtocol.checkForError(messageObject);
</ins><span class="cx"> 
</span><span class="cx">             if (command.name)
</span><del>-                InspectorTest.log(&quot;PASS&quot;);
</del><ins>+                ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (command.callback)
</span><span class="cx">                 command.callback(messageObject.result);
</span><span class="lines">@@ -124,9 +124,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayerscompositingreasonshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-compositing-reasons.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-compositing-reasons.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-compositing-reasons.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> 
</span><span class="cx">     var nodes = [];
</span><span class="cx">  
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</ins><span class="cx"> 
</span><span class="cx">     enableLayerTreeAgent();
</span><span class="cx">     
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (++count === layers.length)
</span><del>-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.completeTest();
</ins><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         layers.forEach(function (layer) {
</span><span class="lines">@@ -105,20 +105,20 @@
</span><span class="cx"> 
</span><span class="cx">     function logTestName(name)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function runCommand(command)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(command.command, command.parameters, function(messageObject) {
</del><ins>+        InspectorProtocol.sendCommand(command.command, command.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;)) {
</span><del>-                InspectorTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (command.name)
</span><del>-                InspectorTest.log(&quot;PASS&quot;);
</del><ins>+                ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (command.callback)
</span><span class="cx">                 command.callback(messageObject.result);
</span><span class="lines">@@ -128,9 +128,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayersfornodehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-for-node.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-for-node.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-for-node.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx">     var initialLayers;
</span><span class="cx">     var eventsCount = 0;
</span><span class="cx"> 
</span><del>-    InspectorTest.eventHandler[&quot;LayerTree.layerTreeDidChange&quot;] = function (messageObject) {
</del><ins>+    InspectorProtocol.eventHandler[&quot;LayerTree.layerTreeDidChange&quot;] = function (messageObject) {
</ins><span class="cx">         eventsCount++;
</span><span class="cx">     };
</span><span class="cx"> 
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx">     {
</span><span class="cx">         var attributes = attributesDictionaryFromArray(result.attributes);
</span><span class="cx">         if (attributes.id !== &quot;last-element&quot;)
</span><del>-            InspectorTest.log(&quot;FAIL: Did not obtain the expected element for the last inserted layer.&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: Did not obtain the expected element for the last inserted layer.&quot;);
</ins><span class="cx"> 
</span><span class="cx">         finishTest();
</span><span class="cx">     };
</span><span class="lines">@@ -107,11 +107,11 @@
</span><span class="cx">     function finishTest()
</span><span class="cx">     {
</span><span class="cx">         if (!eventsCount)
</span><del>-            InspectorTest.log(&quot;FAIL: Did not receive layerTreeDidChange events.&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: Did not receive layerTreeDidChange events.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;\n=== Test complete, all expected conditions met ===&quot;);
</del><ins>+            ProtocolTest.log(&quot;\n=== Test complete, all expected conditions met ===&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function layerMutations(oldLayers, newLayers)
</span><span class="lines">@@ -157,20 +157,20 @@
</span><span class="cx">             return value;
</span><span class="cx">         };
</span><span class="cx">         
</span><del>-        InspectorTest.log(&quot;\n&quot; + JSON.stringify(layers, replacer, &quot;    &quot;));
</del><ins>+        ProtocolTest.log(&quot;\n&quot; + JSON.stringify(layers, replacer, &quot;    &quot;));
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function step(test)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + test.name + &quot; ===\n&quot;)
-        InspectorTest.sendCommand(test.command, test.parameters, function(messageObject) {
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + test.name + &quot; ===\n&quot;)
+        InspectorProtocol.sendCommand(test.command, test.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;)) {
</span><del>-                InspectorTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><del>-            InspectorTest.log(&quot;PASS&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx">             test.callback(messageObject.result);
</span><span class="cx">         });
</span><span class="cx">     };
</span><span class="lines">@@ -178,9 +178,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayersgeneratedcontenthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-generated-content.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-generated-content.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-generated-content.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> 
</span><span class="cx">     var nodes;
</span><span class="cx">  
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</ins><span class="cx"> 
</span><span class="cx">     enableLayerTreeAgent();
</span><span class="cx">     
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">         assert(&quot;Generating node has id&quot;, node.attributes[0], &quot;id&quot;);
</span><span class="cx">         assert(&quot;Generating node has expected id&quot;, node.attributes[1], &quot;generator&quot;);
</span><span class="cx">         
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function setChildNodes (messageObject) {
</span><span class="lines">@@ -104,20 +104,20 @@
</span><span class="cx"> 
</span><span class="cx">     function logTestName(name)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function runCommand(command)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(command.command, command.parameters, function(messageObject) {
</del><ins>+        InspectorProtocol.sendCommand(command.command, command.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;)) {
</span><del>-                InspectorTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (command.name)
</span><del>-                InspectorTest.log(&quot;PASS&quot;);
</del><ins>+                ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (command.callback)
</span><span class="cx">                 command.callback(messageObject.result);
</span><span class="lines">@@ -127,9 +127,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorlayerslayersreflectedcontenthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/layers/layers-reflected-content.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/layers/layers-reflected-content.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/layers/layers-reflected-content.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> 
</span><span class="cx">     var nodes;
</span><span class="cx">  
</span><del>-    InspectorTest.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</del><ins>+    InspectorProtocol.eventHandler[&quot;DOM.setChildNodes&quot;] = setChildNodes;
</ins><span class="cx"> 
</span><span class="cx">     enableLayerTreeAgent();
</span><span class="cx">     
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx">         assert(&quot;Node has CSS class&quot;, node.attributes[0], &quot;class&quot;);
</span><span class="cx">         assert(&quot;Node has expected CSS class&quot;, node.attributes[1], &quot;reflected composited&quot;);
</span><span class="cx">         
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function setChildNodes (messageObject) {
</span><span class="lines">@@ -88,20 +88,20 @@
</span><span class="cx"> 
</span><span class="cx">     function logTestName(name)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</del><ins>+        ProtocolTest.log(&quot;\n=== &quot; + name + &quot; ===\n&quot;);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx">     function runCommand(command)
</span><span class="cx">     {
</span><del>-        InspectorTest.sendCommand(command.command, command.parameters, function(messageObject) {
</del><ins>+        InspectorProtocol.sendCommand(command.command, command.parameters, function(messageObject) {
</ins><span class="cx">             if (messageObject.hasOwnProperty(&quot;error&quot;)) {
</span><del>-                InspectorTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
-                InspectorTest.completeTest();
</del><ins>+                ProtocolTest.log(&quot;FAIL: &quot; + messageObject.error.message + &quot; (&quot; + messageObject.error.code + &quot;)&quot;);
+                ProtocolTest.completeTest();
</ins><span class="cx">                 return;
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (command.name)
</span><del>-                InspectorTest.log(&quot;PASS&quot;);
</del><ins>+                ProtocolTest.log(&quot;PASS&quot;);
</ins><span class="cx"> 
</span><span class="cx">             if (command.callback)
</span><span class="cx">                 command.callback(messageObject.result);
</span><span class="lines">@@ -111,9 +111,9 @@
</span><span class="cx">     function assert(name, actual, expected)
</span><span class="cx">     {
</span><span class="cx">         if (expected === actual)
</span><del>-            InspectorTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: &quot; + name + &quot;.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</del><ins>+            ProtocolTest.log(&quot;FAIL: &quot; + name + &quot;. Expected &quot; + expected + &quot; but got &quot; + actual);
</ins><span class="cx">     };
</span><span class="cx"> 
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorpagearchivehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/page/archive.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/page/archive.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/page/archive.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -4,17 +4,17 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Page.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Page.archive&quot;, {}, function(event) {
</del><ins>+    InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Page.archive&quot;, {}, function(event) {
</ins><span class="cx">         var data = event.result.data;
</span><span class="cx">         if (!data)
</span><del>-            InspectorTest.log(&quot;FAIL: no data&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: no data&quot;);
</ins><span class="cx">         else if (data.length &lt; 1000)
</span><del>-            InspectorTest.log(&quot;FAIL: unexpectedly short data. A serialized archive should be pretty large.&quot;);
</del><ins>+            ProtocolTest.log(&quot;FAIL: unexpectedly short data. A serialized archive should be pretty large.&quot;);
</ins><span class="cx">         else
</span><del>-            InspectorTest.log(&quot;PASS: Received archive data.&quot;);
</del><ins>+            ProtocolTest.log(&quot;PASS: Received archive data.&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorpageframeScheduledNavigationhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/page/frameScheduledNavigation.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/page/frameScheduledNavigation.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/page/frameScheduledNavigation.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -10,29 +10,29 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Page.frameScheduledNavigation&quot;] = onScheduled;
-    InspectorTest.eventHandler[&quot;Page.frameStartedLoading&quot;] = onStarted;
-    InspectorTest.eventHandler[&quot;Page.frameClearedScheduledNavigation&quot;] = onCleared;
-    InspectorTest.sendCommand(&quot;Page.enable&quot;, {});
</del><ins>+    InspectorProtocol.eventHandler[&quot;Page.frameScheduledNavigation&quot;] = onScheduled;
+    InspectorProtocol.eventHandler[&quot;Page.frameStartedLoading&quot;] = onStarted;
+    InspectorProtocol.eventHandler[&quot;Page.frameClearedScheduledNavigation&quot;] = onCleared;
+    InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     function onScheduled(msg)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Scheduled navigation with delay &quot; + msg.params.delay);
</del><ins>+        ProtocolTest.log(&quot;Scheduled navigation with delay &quot; + msg.params.delay);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onStarted(msg)
</span><span class="cx">     {
</span><span class="cx">         // This event should be received before the scheduled navigation is cleared.
</span><del>-        InspectorTest.log(&quot;Started loading&quot;);
</del><ins>+        ProtocolTest.log(&quot;Started loading&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     function onCleared(msg)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Cleared scheduled navigation&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Cleared scheduled navigation&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;load()&quot; });
</del><ins>+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;load()&quot; });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorpageframeStartedLoadinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/page/frameStartedLoading.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/page/frameStartedLoading.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/page/frameStartedLoading.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -12,21 +12,21 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Page.frameStartedLoading&quot;] = onStart;
-    InspectorTest.eventHandler[&quot;Page.frameStoppedLoading&quot;] = onStop;
-    InspectorTest.sendCommand(&quot;Page.enable&quot;, {});
</del><ins>+    InspectorProtocol.eventHandler[&quot;Page.frameStartedLoading&quot;] = onStart;
+    InspectorProtocol.eventHandler[&quot;Page.frameStoppedLoading&quot;] = onStop;
+    InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     function onStart()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Started loading&quot;);
</del><ins>+        ProtocolTest.log(&quot;Started loading&quot;);
</ins><span class="cx">     }
</span><span class="cx">     function onStop()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Stopped loading&quot;);
-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.log(&quot;Stopped loading&quot;);
+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;load()&quot; });
</del><ins>+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;load()&quot; });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorpagejavascriptDialogEventshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/page/javascriptDialogEvents.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/page/javascriptDialogEvents.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/page/javascriptDialogEvents.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -13,27 +13,27 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.eventHandler[&quot;Page.javascriptDialogOpening&quot;] = onOpening;
-    InspectorTest.eventHandler[&quot;Page.javascriptDialogClosed&quot;] = onClosed;
-    InspectorTest.sendCommand(&quot;Page.enable&quot;, {});
</del><ins>+    InspectorProtocol.eventHandler[&quot;Page.javascriptDialogOpening&quot;] = onOpening;
+    InspectorProtocol.eventHandler[&quot;Page.javascriptDialogClosed&quot;] = onClosed;
+    InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {});
</ins><span class="cx"> 
</span><span class="cx">     function onOpening(event)
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Opening with message: &quot; + event.params.message);
</del><ins>+        ProtocolTest.log(&quot;Opening with message: &quot; + event.params.message);
</ins><span class="cx">     }
</span><span class="cx">     function onClosed()
</span><span class="cx">     {
</span><del>-        InspectorTest.log(&quot;Closed&quot;);
</del><ins>+        ProtocolTest.log(&quot;Closed&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    InspectorTest.sendCommand(&quot;Page.navigate&quot;, { &quot;url&quot;: &quot;nosuchurl&quot; });
-    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;alert('alert')&quot; });
-    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;confirm('confirm')&quot; });
-    InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;prompt('prompt')&quot; }, onDone);
</del><ins>+    InspectorProtocol.sendCommand(&quot;Page.navigate&quot;, { &quot;url&quot;: &quot;nosuchurl&quot; });
+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;alert('alert')&quot; });
+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;confirm('confirm')&quot; });
+    InspectorProtocol.sendCommand(&quot;Runtime.evaluate&quot;, { &quot;expression&quot;: &quot;prompt('prompt')&quot; }, onDone);
</ins><span class="cx"> 
</span><span class="cx">     function onDone()
</span><span class="cx">     {
</span><del>-        InspectorTest.completeTest();
</del><ins>+        ProtocolTest.completeTest();
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorpagesetEmulatedMediahtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/page/setEmulatedMedia.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/page/setEmulatedMedia.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/page/setEmulatedMedia.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -9,12 +9,12 @@
</span><span class="cx"> 
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    InspectorTest.sendCommand(&quot;Page.enable&quot;, {});
-    InspectorTest.sendCommand(&quot;Page.setEmulatedMedia&quot;, {&quot;media&quot;: &quot;print&quot;}, function(messageObject) {
</del><ins>+    InspectorProtocol.sendCommand(&quot;Page.enable&quot;, {});
+    InspectorProtocol.sendCommand(&quot;Page.setEmulatedMedia&quot;, {&quot;media&quot;: &quot;print&quot;}, function(messageObject) {
</ins><span class="cx">         if (messageObject.error)
</span><del>-            InspectorTest.log(&quot;FAILED: &quot; + messageObject.error.message);
-        InspectorTest.sendCommand(&quot;Page.disable&quot;, {});
-        InspectorTest.completeTest();
</del><ins>+            ProtocolTest.log(&quot;FAILED: &quot; + messageObject.error.message);
+        InspectorProtocol.sendCommand(&quot;Page.disable&quot;, {});
+        ProtocolTest.completeTest();
</ins><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorruntimegetPropertieshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/runtime/getProperties.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/runtime/getProperties.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/runtime/getProperties.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><del>-    var suite = new InspectorTest.AsyncTestSuite(&quot;Runtime.getProperties&quot;);
</del><ins>+    var suite = new ProtocolTest.AsyncTestSuite(&quot;Runtime.getProperties&quot;);
</ins><span class="cx"> 
</span><span class="cx">     addGetPropertiesTestCase({
</span><span class="cx">         name: &quot;CheckPropertiesOfWrapperObject&quot;,
</span><span class="lines">@@ -33,8 +33,8 @@
</span><span class="cx">             name,
</span><span class="cx">             description,
</span><span class="cx">             test: function(resolve, reject) {
</span><del>-                InspectorTest.log(&quot;Evaluating expression: &quot; + expression);
-                InspectorTest.awaitCommand({
</del><ins>+                ProtocolTest.log(&quot;Evaluating expression: &quot; + expression);
+                InspectorProtocol.awaitCommand({
</ins><span class="cx">                     method: &quot;Runtime.evaluate&quot;,
</span><span class="cx">                     params: {expression}
</span><span class="cx">                 })
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">                     if (objectId === undefined)
</span><span class="cx">                         throw new Error(&quot;objectId is expected&quot;);
</span><span class="cx"> 
</span><del>-                    return InspectorTest.awaitCommand({
</del><ins>+                    return InspectorProtocol.awaitCommand({
</ins><span class="cx">                         method: &quot;Runtime.getProperties&quot;,
</span><span class="cx">                         params: {objectId, ownProperties: true}
</span><span class="cx">                     });
</span><span class="lines">@@ -61,14 +61,14 @@
</span><span class="cx">     function dumpGetPropertiesResult(protocolResult) {
</span><span class="cx">         var properties = protocolResult.result;
</span><span class="cx">         if (properties) {
</span><del>-            InspectorTest.log(&quot;Properties:&quot;);
</del><ins>+            ProtocolTest.log(&quot;Properties:&quot;);
</ins><span class="cx">             properties.sort(NamedThingComparator);
</span><span class="cx">             properties.map(dumpSingleProperty);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         var internalProperties = protocolResult.internalProperties;
</span><span class="cx">         if (internalProperties) {
</span><del>-            InspectorTest.log(&quot;Internal properties:&quot;);
</del><ins>+            ProtocolTest.log(&quot;Internal properties:&quot;);
</ins><span class="cx">             internalProperties.sort(NamedThingComparator);
</span><span class="cx">             internalProperties.map(dumpSingleProperty);
</span><span class="cx">         }
</span><span class="lines">@@ -76,9 +76,9 @@
</span><span class="cx">         function dumpSingleProperty(property) {
</span><span class="cx">             var {name, value} = property;
</span><span class="cx">             if (value)
</span><del>-                InspectorTest.log(&quot;  &quot; + name + &quot; &quot; + value.type + &quot; &quot; + (value.value || value.description));
</del><ins>+                ProtocolTest.log(&quot;  &quot; + name + &quot; &quot; + value.type + &quot; &quot; + (value.value || value.description));
</ins><span class="cx">             else
</span><del>-                InspectorTest.log(&quot;  &quot; + name);
</del><ins>+                ProtocolTest.log(&quot;  &quot; + name);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function NamedThingComparator(o1, o2) {
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorunittestsasynctestsuitehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/unit-tests/async-test-suite.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/unit-tests/async-test-suite.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/unit-tests/async-test-suite.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -6,60 +6,60 @@
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><span class="cx">     try {
</span><del>-        new InspectorTest.AsyncTestSuite();
-        InspectorTest.log(&quot;FAIL: instantiating AsyncTestSuite requires name argument.&quot;);
</del><ins>+        new ProtocolTest.AsyncTestSuite();
+        ProtocolTest.log(&quot;FAIL: instantiating AsyncTestSuite requires name argument.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: instantiating AsyncTestSuite requires name argument.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: instantiating AsyncTestSuite requires name argument.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        new InspectorTest.AsyncTestSuite({});
-        InspectorTest.log(&quot;FAIL: instantiating AsyncTestSuite requires string name argument.&quot;);
</del><ins>+        new ProtocolTest.AsyncTestSuite({});
+        ProtocolTest.log(&quot;FAIL: instantiating AsyncTestSuite requires string name argument.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: instantiating AsyncTestSuite requires string name argument.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: instantiating AsyncTestSuite requires string name argument.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var badArgsSuite = new InspectorTest.AsyncTestSuite(&quot;dummy&quot;);
</del><ins>+    var badArgsSuite = new ProtocolTest.AsyncTestSuite(&quot;dummy&quot;);
</ins><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase();
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to add empty test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to add empty test case.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to add empty test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to add empty test case.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase(&quot;string&quot;);
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to add non-object test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to add non-object test case.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to add non-object test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to add non-object test case.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase({
</span><span class="cx">             name: {},
</span><span class="cx">             test: function() {},
</span><span class="cx">         });
</span><del>-        InspectorTest.log(&quot;FAIL: test case should require string name.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: test case should require string name.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: test case should require string name.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: test case should require string name.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase({
</span><span class="cx">             name: &quot;foo&quot;,
</span><span class="cx">             test: null,
</span><span class="cx">         });
</span><del>-        InspectorTest.log(&quot;FAIL: test case should require test function.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: test case should require test function.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: test case should require test function.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: test case should require test function.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var runEmptySuite = new InspectorTest.AsyncTestSuite(&quot;AsyncTestSuite.RunEmptySuite&quot;);
</del><ins>+    var runEmptySuite = new ProtocolTest.AsyncTestSuite(&quot;AsyncTestSuite.RunEmptySuite&quot;);
</ins><span class="cx">     try {
</span><span class="cx">         runEmptySuite.runTestCases();
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to run empty test suite.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to run empty test suite.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to run empty test suite.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to run empty test suite.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var runTwiceSuite = new InspectorTest.AsyncTestSuite(&quot;AsyncTestSuite.RunTwiceSuite&quot;);
</del><ins>+    var runTwiceSuite = new ProtocolTest.AsyncTestSuite(&quot;AsyncTestSuite.RunTwiceSuite&quot;);
</ins><span class="cx">     runTwiceSuite.addTestCase({
</span><span class="cx">         name: &quot;DummyTest0&quot;,
</span><span class="cx">         description: &quot;Check that a suite can't run more than once.&quot;,
</span><span class="lines">@@ -73,15 +73,15 @@
</span><span class="cx">         // Test cases won't run in this event loop; this call should still throw.
</span><span class="cx">         // Later tests are chained to this suite to avoid nondeterminism.
</span><span class="cx">         runTwiceSuite.runTestCases();
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to run a test suite twice.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to run a test suite twice.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to run a test suite twice.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to run a test suite twice.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var rejectToken = {&quot;token&quot;: 666};
</span><span class="cx">     var thrownError = new Error(rejectToken);
</span><span class="cx"> 
</span><del>-    var sequentialExecutionSuite = new InspectorTest.AsyncTestSuite(&quot;AsyncTestSuite.SequentialExecution&quot;);
</del><ins>+    var sequentialExecutionSuite = new ProtocolTest.AsyncTestSuite(&quot;AsyncTestSuite.SequentialExecution&quot;);
</ins><span class="cx">     sequentialExecutionSuite.addTestCase({
</span><span class="cx">         name: &quot;DummyTest1&quot;,
</span><span class="cx">         description: &quot;Check test case execution order.&quot;,
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="cx"> 
</span><del>-    var abortOnFailureSuite = new InspectorTest.AsyncTestSuite(&quot;AsyncTestSuite.AbortOnFailure&quot;);
</del><ins>+    var abortOnFailureSuite = new ProtocolTest.AsyncTestSuite(&quot;AsyncTestSuite.AbortOnFailure&quot;);
</ins><span class="cx">     abortOnFailureSuite.addTestCase({
</span><span class="cx">         name: &quot;PassingTest5&quot;,
</span><span class="cx">         description: &quot;This test is a dummy.&quot;,
</span><span class="lines">@@ -136,41 +136,41 @@
</span><span class="cx"> 
</span><span class="cx">     result = result.then(function() {
</span><span class="cx">         var promise = sequentialExecutionSuite.runTestCases();
</span><del>-        InspectorTest.assert(result instanceof Promise, &quot;AsyncTestSuite.RunTestCases() should return a Promise.&quot;);
</del><ins>+        ProtocolTest.assert(result instanceof Promise, &quot;AsyncTestSuite.RunTestCases() should return a Promise.&quot;);
</ins><span class="cx">         return promise;
</span><span class="cx">     });
</span><span class="cx">     result = result.then(function resolved() {
</span><del>-        InspectorTest.log(&quot;FAIL: Promise from sequentialExecutionSuite.runTestCases() should reject when a test case fails.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Promise from sequentialExecutionSuite.runTestCases() should reject when a test case fails.&quot;);
</ins><span class="cx">         return Promise.resolve(); // Continue this test.
</span><span class="cx">     }, function rejected(e) {
</span><del>-        InspectorTest.log(&quot;PASS: Promise from sequentialExecutionSuite.runTestCases() should reject when a test case fails.&quot;);
-        InspectorTest.assert(e === thrownError, &quot;Promise from sequentialExecutionSuite.runTestCases() should reject without altering its result value.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: Promise from sequentialExecutionSuite.runTestCases() should reject when a test case fails.&quot;);
+        ProtocolTest.assert(e === thrownError, &quot;Promise from sequentialExecutionSuite.runTestCases() should reject without altering its result value.&quot;);
</ins><span class="cx"> 
</span><del>-        InspectorTest.assert(sequentialExecutionSuite.runCount === 4, &quot;sequentialExecutionSuite should have executed four tests.&quot;);
-        InspectorTest.assert(sequentialExecutionSuite.passCount === 3, &quot;sequentialExecutionSuite should have passed three tests.&quot;);
-        InspectorTest.assert(sequentialExecutionSuite.failCount === 1, &quot;sequentialExecutionSuite should have failed 1 test.&quot;);
-        InspectorTest.assert(sequentialExecutionSuite.skipCount === 0, &quot;sequentialExecutionSuite should have skipped zero tests.&quot;);
</del><ins>+        ProtocolTest.assert(sequentialExecutionSuite.runCount === 4, &quot;sequentialExecutionSuite should have executed four tests.&quot;);
+        ProtocolTest.assert(sequentialExecutionSuite.passCount === 3, &quot;sequentialExecutionSuite should have passed three tests.&quot;);
+        ProtocolTest.assert(sequentialExecutionSuite.failCount === 1, &quot;sequentialExecutionSuite should have failed 1 test.&quot;);
+        ProtocolTest.assert(sequentialExecutionSuite.skipCount === 0, &quot;sequentialExecutionSuite should have skipped zero tests.&quot;);
</ins><span class="cx">         return Promise.resolve(); // Continue this test.
</span><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     result = result.then(function() {
</span><span class="cx">         return abortOnFailureSuite.runTestCases();
</span><span class="cx">     }).then(function resolved() {
</span><del>-        InspectorTest.log(&quot;FAIL: Promise from abortOnFailureSuite.runTestCases() should reject when a test case fails.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: Promise from abortOnFailureSuite.runTestCases() should reject when a test case fails.&quot;);
</ins><span class="cx">         return Promise.resolve(); // Continue this test.
</span><span class="cx">     }, function rejected(e) {
</span><del>-        InspectorTest.log(&quot;PASS: Promise from abortOnFailureSuite.runTestCases() should reject when a test case fails.&quot;);
-        InspectorTest.assert(e === rejectToken, &quot;Promise from abortOnFailureSuite.runTestCases() should reject without altering its result value.&quot;);
-        InspectorTest.assert(abortOnFailureSuite.runCount === 2, &quot;abortOnFailureSuite should have executed two tests.&quot;);
-        InspectorTest.assert(abortOnFailureSuite.passCount === 1, &quot;abortOnFailureSuite should have passed one test.&quot;);
-        InspectorTest.assert(abortOnFailureSuite.failCount === 1, &quot;abortOnFailureSuite should have failed one test.&quot;);
-        InspectorTest.assert(abortOnFailureSuite.skipCount === 1, &quot;abortOnFailureSuite should have skipped one test.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: Promise from abortOnFailureSuite.runTestCases() should reject when a test case fails.&quot;);
+        ProtocolTest.assert(e === rejectToken, &quot;Promise from abortOnFailureSuite.runTestCases() should reject without altering its result value.&quot;);
+        ProtocolTest.assert(abortOnFailureSuite.runCount === 2, &quot;abortOnFailureSuite should have executed two tests.&quot;);
+        ProtocolTest.assert(abortOnFailureSuite.passCount === 1, &quot;abortOnFailureSuite should have passed one test.&quot;);
+        ProtocolTest.assert(abortOnFailureSuite.failCount === 1, &quot;abortOnFailureSuite should have failed one test.&quot;);
+        ProtocolTest.assert(abortOnFailureSuite.skipCount === 1, &quot;abortOnFailureSuite should have skipped one test.&quot;);
</ins><span class="cx"> 
</span><span class="cx">         return Promise.resolve(); // Continue this test.
</span><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     // This will finish the test whether the chain was resolved or rejected.
</span><del>-    result = result.then(function() { InspectorTest.completeTest(); });
</del><ins>+    result = result.then(function() { ProtocolTest.completeTest(); });
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorunittestssynctestsuitehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/unit-tests/sync-test-suite.html (188266 => 188267)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/unit-tests/sync-test-suite.html        2015-08-11 18:26:54 UTC (rev 188266)
+++ trunk/LayoutTests/inspector/unit-tests/sync-test-suite.html        2015-08-11 18:28:31 UTC (rev 188267)
</span><span class="lines">@@ -6,60 +6,60 @@
</span><span class="cx"> function test()
</span><span class="cx"> {
</span><span class="cx">     try {
</span><del>-        new InspectorTest.SyncTestSuite();
-        InspectorTest.log(&quot;FAIL: instantiating SyncTestSuite requires name argument.&quot;);
</del><ins>+        new ProtocolTest.SyncTestSuite();
+        ProtocolTest.log(&quot;FAIL: instantiating SyncTestSuite requires name argument.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: instantiating SyncTestSuite requires name argument.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: instantiating SyncTestSuite requires name argument.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     try {
</span><del>-        new InspectorTest.SyncTestSuite({});
-        InspectorTest.log(&quot;FAIL: instantiating SyncTestSuite requires string name argument.&quot;);
</del><ins>+        new ProtocolTest.SyncTestSuite({});
+        ProtocolTest.log(&quot;FAIL: instantiating SyncTestSuite requires string name argument.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: instantiating SyncTestSuite requires string name argument.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: instantiating SyncTestSuite requires string name argument.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var badArgsSuite = new InspectorTest.SyncTestSuite(&quot;dummy&quot;);
</del><ins>+    var badArgsSuite = new ProtocolTest.SyncTestSuite(&quot;dummy&quot;);
</ins><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase();
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to add empty test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to add empty test case.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to add empty test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to add empty test case.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase(&quot;string&quot;);
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to add non-object test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to add non-object test case.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to add non-object test case.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to add non-object test case.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase({
</span><span class="cx">             name: {},
</span><span class="cx">             test: function() { return true; },
</span><span class="cx">         });
</span><del>-        InspectorTest.log(&quot;FAIL: test case should require string name.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: test case should require string name.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: test case should require string name.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: test case should require string name.&quot;);
</ins><span class="cx">     }
</span><span class="cx">     try {
</span><span class="cx">         badArgsSuite.addTestCase({
</span><span class="cx">             name: &quot;foo&quot;,
</span><span class="cx">             test: null,
</span><span class="cx">         });
</span><del>-        InspectorTest.log(&quot;FAIL: test case should require test function.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: test case should require test function.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: test case should require test function.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: test case should require test function.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var runEmptySuite = new InspectorTest.SyncTestSuite(&quot;SyncTestSuite.RunEmptySuite&quot;);
</del><ins>+    var runEmptySuite = new ProtocolTest.SyncTestSuite(&quot;SyncTestSuite.RunEmptySuite&quot;);
</ins><span class="cx">     try {
</span><span class="cx">         runEmptySuite.runTestCases();
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to run empty test suite.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to run empty test suite.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to run empty test suite.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to run empty test suite.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    var runTwiceSuite = new InspectorTest.SyncTestSuite(&quot;SyncTestSuite.RunTwiceSuite&quot;);
</del><ins>+    var runTwiceSuite = new ProtocolTest.SyncTestSuite(&quot;SyncTestSuite.RunTwiceSuite&quot;);
</ins><span class="cx">     runTwiceSuite.addTestCase({
</span><span class="cx">         name: &quot;DummyTest0&quot;,
</span><span class="cx">         description: &quot;Check that a suite can't run more than once.&quot;,
</span><span class="lines">@@ -68,17 +68,17 @@
</span><span class="cx"> 
</span><span class="cx">     try {
</span><span class="cx">         var result = runTwiceSuite.runTestCases();
</span><del>-        InspectorTest.assert(result === true, &quot;Return value of runTwiceSuite.runTestCases() should be true when all tests pass.&quot;);
</del><ins>+        ProtocolTest.assert(result === true, &quot;Return value of runTwiceSuite.runTestCases() should be true when all tests pass.&quot;);
</ins><span class="cx"> 
</span><span class="cx">         runTwiceSuite.runTestCases(); // Try to trigger an error.
</span><del>-        InspectorTest.log(&quot;FAIL: should not be able to run a test suite twice.&quot;);
</del><ins>+        ProtocolTest.log(&quot;FAIL: should not be able to run a test suite twice.&quot;);
</ins><span class="cx">     } catch (e) {
</span><del>-        InspectorTest.log(&quot;PASS: should not be able to run a test suite twice.&quot;);
</del><ins>+        ProtocolTest.log(&quot;PASS: should not be able to run a test suite twice.&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     var thrownError = new Error({&quot;token&quot;: 666});
</span><span class="cx"> 
</span><del>-    var sequentialExecutionSuite = new InspectorTest.SyncTestSuite(&quot;SyncTestSuite.SequentialExecution&quot;);
</del><ins>+    var sequentialExecutionSuite = new ProtocolTest.SyncTestSuite(&quot;SyncTestSuite.SequentialExecution&quot;);
</ins><span class="cx">     sequentialExecutionSuite.addTestCase({
</span><span class="cx">         name: &quot;DummyTest1&quot;,
</span><span class="cx">         description: &quot;Check test case execution order.&quot;,
</span><span class="lines">@@ -101,13 +101,13 @@
</span><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     var result = sequentialExecutionSuite.runTestCases();
</span><del>-    InspectorTest.assert(result === false, &quot;Return value of sequentialExecutionSuite.runTestCases() should be false when a test case fails.&quot;);
-    InspectorTest.assert(sequentialExecutionSuite.runCount === 4, &quot;sequentialExecutionSuite should have executed four tests.&quot;);
-    InspectorTest.assert(sequentialExecutionSuite.passCount === 3, &quot;sequentialExecutionSuite should have passed three tests.&quot;);
-    InspectorTest.assert(sequentialExecutionSuite.failCount === 1, &quot;sequentialExecutionSuite should have failed 1 test.&quot;);
-    InspectorTest.assert(sequentialExecutionSuite.skipCount === 0, &quot;sequentialExecutionSuite should have skipped zero tests.&quot;);
</del><ins>+    ProtocolTest.assert(result === false, &quot;Return value of sequentialExecutionSuite.runTestCases() should be false when a test case fails.&quot;);
+    ProtocolTest.assert(sequentialExecutionSuite.runCount === 4, &quot;sequentialExecutionSuite should have executed four tests.&quot;);
+    ProtocolTest.assert(sequentialExecutionSuite.passCount === 3, &quot;sequentialExecutionSuite should have passed three tests.&quot;);
+    ProtocolTest.assert(sequentialExecutionSuite.failCount === 1, &quot;sequentialExecutionSuite should have failed 1 test.&quot;);
+    ProtocolTest.assert(sequentialExecutionSuite.skipCount === 0, &quot;sequentialExecutionSuite should have skipped zero tests.&quot;);
</ins><span class="cx"> 
</span><del>-    var abortOnFailureSuite = new InspectorTest.SyncTestSuite(&quot;SyncTestSuite.AbortOnFailure&quot;);
</del><ins>+    var abortOnFailureSuite = new ProtocolTest.SyncTestSuite(&quot;SyncTestSuite.AbortOnFailure&quot;);
</ins><span class="cx">     abortOnFailureSuite.addTestCase({
</span><span class="cx">         name: &quot;PassingTest5&quot;,
</span><span class="cx">         description: &quot;This test is a dummy.&quot;,
</span><span class="lines">@@ -125,13 +125,13 @@
</span><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     abortOnFailureSuite.runTestCases();
</span><del>-    InspectorTest.assert(result === false, &quot;Return value of abortOnFailureSuite.runTestCases() should be false when a test case fails.&quot;);
-    InspectorTest.assert(abortOnFailureSuite.runCount === 2, &quot;abortOnFailureSuite should have executed two tests.&quot;);
-    InspectorTest.assert(abortOnFailureSuite.passCount === 1, &quot;abortOnFailureSuite should have passed one test.&quot;);
-    InspectorTest.assert(abortOnFailureSuite.failCount === 1, &quot;abortOnFailureSuite should have failed one test.&quot;);
-    InspectorTest.assert(abortOnFailureSuite.skipCount === 1, &quot;abortOnFailureSuite should have skipped one test.&quot;);
</del><ins>+    ProtocolTest.assert(result === false, &quot;Return value of abortOnFailureSuite.runTestCases() should be false when a test case fails.&quot;);
+    ProtocolTest.assert(abortOnFailureSuite.runCount === 2, &quot;abortOnFailureSuite should have executed two tests.&quot;);
+    ProtocolTest.assert(abortOnFailureSuite.passCount === 1, &quot;abortOnFailureSuite should have passed one test.&quot;);
+    ProtocolTest.assert(abortOnFailureSuite.failCount === 1, &quot;abortOnFailureSuite should have failed one test.&quot;);
+    ProtocolTest.assert(abortOnFailureSuite.skipCount === 1, &quot;abortOnFailureSuite should have skipped one test.&quot;);
</ins><span class="cx"> 
</span><del>-    InspectorTest.completeTest();
</del><ins>+    ProtocolTest.completeTest();
</ins><span class="cx"> }
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre>
</div>
</div>

</body>
</html>