From cb18158bf1f1ef145d2aa6ebe7481b9bc14c1b4d Mon Sep 17 00:00:00 2001 From: lushnikov Date: Wed, 13 Apr 2016 14:28:47 -0700 Subject: [PATCH] DevTools: deprecate InspectorTest.runAfterPendingDispatches The InspectorTest.runAfterPendingDispatches results in an eventual test flakiness, increasing maintanence burden. Clients should consider other ways instead of using InspectorTest.runAfterPendingDispatches, e.g. adding a specific _methodForTest method which will be sniffed. R=dgozman BUG=602843 Review URL: https://codereview.chromium.org/1877223003 Cr-Commit-Position: refs/heads/master@{#387101} --- .../http/tests/inspector-enabled/database-open.html | 2 +- .../http/tests/inspector-enabled/dom-storage-open.html | 2 +- .../http/tests/inspector-enabled/dynamic-scripts.html | 2 +- .../http/tests/inspector/console-fetch-logging.html | 2 +- .../LayoutTests/http/tests/inspector/console-test.js | 10 +++++----- .../tests/inspector/console-xhr-logging-async.html | 2 +- .../http/tests/inspector/console-xhr-logging.html | 2 +- .../LayoutTests/http/tests/inspector/debugger-test.js | 8 ++++---- .../LayoutTests/http/tests/inspector/fragment.html | 2 +- .../LayoutTests/http/tests/inspector/inspector-test.js | 6 +++--- .../inspector/network/load-resource-for-frontend.html | 2 +- .../inspector/network/network-blocked-reason.html | 2 +- .../inspector/resource-tree/resource-tree-reload.html | 2 +- .../service-workers/service-worker-manager.html | 2 +- .../LayoutTests/http/tests/inspector/timeline-test.js | 2 +- .../WebKit/LayoutTests/inspector/audits/audits-test.js | 2 +- .../inspector/console/console-big-array.html | 6 +++--- .../LayoutTests/inspector/console/console-clear.html | 2 +- .../inspector/console/console-custom-formatters.html | 2 +- .../inspector/console/console-eval-scoped.html | 4 ++-- .../console/console-format-array-prototype.html | 6 +++--- .../console/console-format-broken-unicode.html | 2 +- .../inspector/console/console-format-es6-2.html | 4 ++-- .../inspector/console/console-format-es6.html | 4 ++-- .../LayoutTests/inspector/console/console-format.html | 4 ++-- .../inspector/console/console-last-result.html | 2 +- .../console/console-log-wrapped-in-framework.html | 2 +- .../inspector/console/console-tainted-globals.html | 2 +- .../inspector/elements/edit/edit-dom-actions-1.html | 2 +- .../inspector/elements/edit/edit-dom-actions-3.html | 8 ++++---- .../inspector/elements/edit/edit-dom-actions-4.html | 8 ++++---- .../elements/edit/edit-dom-actions-shadow-2.html | 4 ++-- .../inspector/elements/edit/edit-dom-test.js | 6 +++--- .../inspector/elements/edit/insert-node-collapsed.html | 2 +- .../elements-inspect-iframe-from-different-domain.html | 6 +++--- .../elements/elements-panel-limited-children.html | 4 ++-- .../elements/elements-panel-selection-on-refresh.html | 2 +- .../inspector/elements/expand-recursively.html | 2 +- .../elements/styles-2/metrics-box-sizing.html | 4 ++-- .../elements/styles/updates-during-dom-traversal.html | 2 +- .../inspector/elements/styles/updates-throttled.html | 2 +- .../inspector/extensions/extensions-audits-api.html | 2 +- .../inspector/extensions/extensions-events.html | 2 +- .../inspector/extensions/extensions-panel.html | 2 +- .../inspector/extensions/extensions-resources.html | 2 +- .../inspector/extensions/extensions-sidebar.html | 4 ++-- .../inspector/load-file-resource-for-frontend.html | 2 +- .../event-listener-breakpoints-after-suspension.html | 2 +- .../event-listener-breakpoints-xhr.html | 2 +- .../debugger-pause/debugger-change-variable.html | 2 +- .../debugger-eval-on-call-frame-inside-iframe.html | 2 +- .../debugger-pause/debugger-eval-while-paused.html | 2 +- .../debugger-pause/skip-pauses-until-reload.html | 2 +- .../sources/debugger-ui/debugger-inline-values.html | 2 +- .../debugger-ui/error-in-watch-expressions.html | 2 +- .../sources/debugger-ui/show-function-definition.html | 2 +- .../watch-expressions-preserve-expansion.html | 2 +- .../inspector/sources/debugger/dynamic-scripts.html | 2 +- .../inspector/storage-panel-dom-storage.html | 4 ++-- third_party/WebKit/Source/devtools/front_end/Tests.js | 2 +- .../WebKit/Source/devtools/front_end/main/Main.js | 2 +- .../Source/devtools/front_end/sdk/InspectorBackend.js | 6 +++--- 62 files changed, 96 insertions(+), 96 deletions(-) diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html index 927a4908e35fdb..bec22c1369bb8e 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html @@ -31,7 +31,7 @@ } InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(run); + InspectorTest.deprecatedRunAfterPendingDispatches(run); } diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dom-storage-open.html b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dom-storage-open.html index 91dd5e5288b82b..56d5a7a9d2a67a 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dom-storage-open.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dom-storage-open.html @@ -29,7 +29,7 @@ } InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html index fb923a4db14c4f..4d8543916085e1 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html @@ -45,7 +45,7 @@ function step2() { - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-fetch-logging.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console-fetch-logging.html index 5371f26ed8b76b..5be77c4e7683b6 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-fetch-logging.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-fetch-logging.html @@ -74,7 +74,7 @@ InspectorTest.dumpConsoleMessages(); InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(finish); + InspectorTest.deprecatedRunAfterPendingDispatches(finish); } } //# sourceURL=console-fetch-logging.html diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js index a91d0bd67090a4..a26d440510dc82 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js @@ -248,7 +248,7 @@ InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt for (var i = 0; i < messageViews.length; ++i) messageViews[i].contentElement(); - InspectorTest.runAfterPendingDispatches(expandTreeElements); + InspectorTest.deprecatedRunAfterPendingDispatches(expandTreeElements); function expandTreeElements() { @@ -274,7 +274,7 @@ InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt } } } - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } } @@ -301,7 +301,7 @@ InspectorTest.expandGettersInConsoleMessages = function(callback) if (propertiesCount === 0) { for (var i = 0; i < properties.length; ++i) properties[i].click(); - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } else { InspectorTest.addSniffer(WebInspector.ObjectPropertyTreeElement.prototype, "_updateExpandable", propertyExpandableUpdated); } @@ -314,7 +314,7 @@ InspectorTest.expandConsoleMessagesErrorParameters = function(callback) // Initiate round-trips to fetch necessary data for further rendering. for (var i = 0; i < messageViews.length; ++i) messageViews[i].contentElement(); - InspectorTest.runAfterPendingDispatches(expandErrorParameters); + InspectorTest.deprecatedRunAfterPendingDispatches(expandErrorParameters); function expandErrorParameters() { for (var i = 0; i < messageViews.length; ++i) { @@ -338,7 +338,7 @@ InspectorTest.waitForRemoteObjectsConsoleMessages = function(callback) var messages = WebInspector.ConsoleView.instance()._visibleViewMessages; for (var i = 0; i < messages.length; ++i) messages[i].toMessageElement(); - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } InspectorTest.checkConsoleMessagesDontHaveParameters = function() diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-async.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-async.html index b8961ea252d8b0..280d809c8c7f2e 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-async.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-async.html @@ -40,7 +40,7 @@ InspectorTest.dumpConsoleMessages(); InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(finish); + InspectorTest.deprecatedRunAfterPendingDispatches(finish); } } diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging.html index 4d1afe808ac767..da78e725e28771 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging.html @@ -52,7 +52,7 @@ InspectorTest.dumpConsoleMessages(); InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(finish); + InspectorTest.deprecatedRunAfterPendingDispatches(finish); } } //# sourceURL=console-xhr-logging.html diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js index d8b235a5cdf81a..1f346e4dd03159 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js @@ -186,7 +186,7 @@ InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) { InspectorTest.captureStackTrace(callFrames, asyncStackTrace, options); InspectorTest.addResult(InspectorTest.clearSpecificInfoFromStackFrames(caption)); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); } function step2() @@ -442,7 +442,7 @@ InspectorTest.expandScopeVariablesSidebarPane = function(callback) var sections = InspectorTest.scopeChainSections(); for (var i = 0; i < sections.length - 1; ++i) sections[i].expand(); - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); }; InspectorTest.expandProperties = function(properties, callback) @@ -458,7 +458,7 @@ InspectorTest.expandProperties = function(properties, callback) var path = properties[index++]; InspectorTest._expandProperty(parentTreeElement, path, 0, expandNextPath); } - InspectorTest.runAfterPendingDispatches(expandNextPath); + InspectorTest.deprecatedRunAfterPendingDispatches(expandNextPath); }; InspectorTest._expandProperty = function(parentTreeElement, path, pathIndex, callback) @@ -476,7 +476,7 @@ InspectorTest._expandProperty = function(parentTreeElement, path, pathIndex, cal return; } propertyTreeElement.expand(); - InspectorTest.runAfterPendingDispatches(InspectorTest._expandProperty.bind(InspectorTest, propertyTreeElement, path, pathIndex, callback)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest._expandProperty.bind(InspectorTest, propertyTreeElement, path, pathIndex, callback)); }; InspectorTest._findChildPropertyTreeElement = function(parent, childName) diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/fragment.html b/third_party/WebKit/LayoutTests/http/tests/inspector/fragment.html index d2233c024ca66d..303774ca0787cb 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/fragment.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/fragment.html @@ -25,7 +25,7 @@ function step2() { - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js index 9e293ea9964edb..f584340db8e38b 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js @@ -400,7 +400,7 @@ InspectorTest.expandAndDumpEventListeners = function(eventListenersView, updateC for (var j = 0; j < listenerItems.length; ++j) listenerItems[j].expand(); } - InspectorTest.runAfterPendingDispatches(objectsExpanded); + InspectorTest.deprecatedRunAfterPendingDispatches(objectsExpanded); } function objectsExpanded() @@ -512,12 +512,12 @@ InspectorTest.runWhenPageLoads = function(callback) InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(chainedCallback); } -InspectorTest.runAfterPendingDispatches = function(callback) +InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) { var barrier = new CallbackBarrier(); var targets = WebInspector.targetManager.targets(); for (var i = 0; i < targets.length; ++i) - targets[i]._connection.runAfterPendingDispatches(barrier.createCallback()); + targets[i]._connection.deprecatedRunAfterPendingDispatches(barrier.createCallback()); barrier.callWhenDone(InspectorTest.safeWrap(callback)); } diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html index 2ef4a59f6a9417..fbf587a2446974 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html @@ -30,7 +30,7 @@ InspectorTest.addResult("Logged headers: " + headersArray.join(", ")); InspectorTest.addResult("Content: \"" + content + "\""); - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); } } diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-blocked-reason.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-blocked-reason.html index a0751e199e5649..92773d973ee674 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-blocked-reason.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-blocked-reason.html @@ -42,7 +42,7 @@ InspectorTest.addResult("Request: " + url); blockedSetting.set(patterns); nextStep = next; - InspectorTest.runAfterPendingDispatches(addScript); + InspectorTest.deprecatedRunAfterPendingDispatches(addScript); function addScript() { diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-reload.html b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-reload.html index e26aeb584ace04..dec7f7844a7466 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-reload.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-reload.html @@ -11,7 +11,7 @@ function test() { // Resources panel has heavy initialization that does not work well with reloading-from-test. - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { InspectorTest.reloadPage(step1); }); diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-manager.html b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-manager.html index a8a2225d56ddd8..906a6388b2dbcf 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-manager.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-manager.html @@ -17,7 +17,7 @@ if (target.isDedicatedWorker()) { var serviceWorkerManager = WebInspector.targetManager.mainTarget().serviceWorkerManager; // Allow agents to do rountrips. - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { for (var worker of serviceWorkerManager.workers()) worker.stop(); }); diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js index d19d3597d239f7..344ff1207348db 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js @@ -148,7 +148,7 @@ InspectorTest.stopTimeline = function(callback) var panel = WebInspector.panels.timeline; function didStop() { - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } InspectorTest.addSniffer(panel, "loadingComplete", didStop); panel._toggleRecording(); diff --git a/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js b/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js index 6ac2e43e153163..443a568cbef4e7 100644 --- a/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js +++ b/third_party/WebKit/LayoutTests/inspector/audits/audits-test.js @@ -14,7 +14,7 @@ InspectorTest.collectAuditResults = function(callback) liElements[j].treeElement.expand(); } } - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.element, ""); callback(); }); diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-big-array.html b/third_party/WebKit/LayoutTests/inspector/console/console-big-array.html index 3afe44a4c1431d..2537f5a3c122ae 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-big-array.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-big-array.html @@ -83,7 +83,7 @@ populated = true; } - InspectorTest.runAfterPendingDispatches(expandRecursively); + InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively); function expandRecursively() { @@ -97,9 +97,9 @@ } } if (populated) - InspectorTest.runAfterPendingDispatches(completeTest); + InspectorTest.deprecatedRunAfterPendingDispatches(completeTest); else - InspectorTest.runAfterPendingDispatches(expandRecursively); + InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively); } function completeTest() diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-clear.html b/third_party/WebKit/LayoutTests/inspector/console/console-clear.html index c852c74a2b2651..189036ecb1e835 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-clear.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-clear.html @@ -27,7 +27,7 @@ InspectorTest.dumpConsoleMessages(); InspectorTest.completeTest(); } - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html b/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html index ca4d565966743d..867ed99e777ace 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html @@ -147,7 +147,7 @@ customElement.click(); } - InspectorTest.runAfterPendingDispatches(dumpExpanded); + InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded); } function dumpExpanded() diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-eval-scoped.html b/third_party/WebKit/LayoutTests/inspector/console/console-eval-scoped.html index 14f712992d19f6..a8d8f88b011404 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-eval-scoped.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-eval-scoped.html @@ -47,10 +47,10 @@ function dumpAndClearConsoleMessages(next) { - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { InspectorTest.dumpConsoleMessages(); InspectorTest.consoleModel.requestClearMessages(); - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); }); } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype.html index 443c726e606ecb..00a9bce816f749 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype.html @@ -46,7 +46,7 @@ if (next === total) { InspectorTest.evaluateInPage("tearDown()"); InspectorTest.expandConsoleMessages(); - InspectorTest.runAfterPendingDispatches(finish); + InspectorTest.deprecatedRunAfterPendingDispatches(finish); } else { loopOverGlobals(next, total); } @@ -59,11 +59,11 @@ } InspectorTest.evaluateInConsole("a" + current); - InspectorTest.runAfterPendingDispatches(invokeConsoleLog); + InspectorTest.deprecatedRunAfterPendingDispatches(invokeConsoleLog); function invokeConsoleLog() { InspectorTest.evaluateInPage("log(a" + current + ")"); - InspectorTest.runAfterPendingDispatches(advance); + InspectorTest.deprecatedRunAfterPendingDispatches(advance); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html index df00955cad182f..8a39125cbfe09e 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html @@ -15,7 +15,7 @@ InspectorTest.evaluateInConsole("[obj]"); InspectorTest.evaluateInConsole("obj.foo"); InspectorTest.evaluateInConsole("[obj.foo]"); - InspectorTest.runAfterPendingDispatches(step1); + InspectorTest.deprecatedRunAfterPendingDispatches(step1); function step1() { diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.html index c7bfab2175dcf3..d91417902b23b9 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.html @@ -64,11 +64,11 @@ } InspectorTest.evaluateInPage("log(" + current + ")"); - InspectorTest.runAfterPendingDispatches(evalInConsole); + InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); function evalInConsole() { InspectorTest.evaluateInConsole("globals[" + current + "]"); - InspectorTest.runAfterPendingDispatches(advance); + InspectorTest.deprecatedRunAfterPendingDispatches(advance); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-es6.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-es6.html index 5afb4601570452..7ca8fe2582d499 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-format-es6.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-es6.html @@ -87,11 +87,11 @@ } InspectorTest.evaluateInPage("log(" + current + ")"); - InspectorTest.runAfterPendingDispatches(evalInConsole); + InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); function evalInConsole() { InspectorTest.evaluateInConsole("globals[" + current + "]"); - InspectorTest.runAfterPendingDispatches(advance); + InspectorTest.deprecatedRunAfterPendingDispatches(advance); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format.html b/third_party/WebKit/LayoutTests/inspector/console/console-format.html index 4e7ab5c13e4b31..0196ca94be0e8c 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-format.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-format.html @@ -124,11 +124,11 @@ } InspectorTest.evaluateInPage("log(" + current + ")"); - InspectorTest.runAfterPendingDispatches(evalInConsole); + InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); function evalInConsole() { InspectorTest.evaluateInConsole("globals[" + current + "]"); - InspectorTest.runAfterPendingDispatches(advance); + InspectorTest.deprecatedRunAfterPendingDispatches(advance); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-last-result.html b/third_party/WebKit/LayoutTests/inspector/console/console-last-result.html index 1934363b6bab10..da637c1081eec9 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-last-result.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-last-result.html @@ -24,7 +24,7 @@ function step1() { InspectorTest.consoleModel.requestClearMessages(); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); } function step2() diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-log-wrapped-in-framework.html b/third_party/WebKit/LayoutTests/inspector/console/console-log-wrapped-in-framework.html index a4bfe371d71e0e..2c5517cc59fee4 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-log-wrapped-in-framework.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-log-wrapped-in-framework.html @@ -17,7 +17,7 @@ WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString); InspectorTest.evaluateInPage("runLogs()"); - InspectorTest.runAfterPendingDispatches(callback); + InspectorTest.deprecatedRunAfterPendingDispatches(callback); function callback() { InspectorTest.dumpConsoleMessages(); diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals.html b/third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals.html index 29dc150122c5be..5c0ad399f39f5b 100644 --- a/third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals.html +++ b/third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals.html @@ -146,7 +146,7 @@ { var expr = expressions.shift(); if (!expr) { - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); return; } InspectorTest.evaluateInConsole(expr, iterate); diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-1.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-1.html index c168b7d764062e..b926927fa75796 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-1.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-1.html @@ -25,7 +25,7 @@ { var treeElement = InspectorTest.firstElementsTreeOutline().findTreeElement(node); treeElement.remove(); - InspectorTest.runAfterPendingDispatches(done); + InspectorTest.deprecatedRunAfterPendingDispatches(done); } }, diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-3.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-3.html index 4882b4ef0b0a04..e3effe0c51b09d 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-3.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-3.html @@ -39,7 +39,7 @@ var treeOutline = InspectorTest.firstElementsTreeOutline(); var treeElement = treeOutline.findTreeElement(node); treeOutline.toggleEditAsHTML(node); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { @@ -48,7 +48,7 @@ var event = InspectorTest.createKeyEvent("Enter"); event.isMetaOrCtrlForTest = true; treeElement._htmlEditElement.dispatchEvent(event); - InspectorTest.runAfterPendingDispatches(done); + InspectorTest.deprecatedRunAfterPendingDispatches(done); } } }, @@ -62,7 +62,7 @@ var treeOutline = InspectorTest.firstElementsTreeOutline(); var treeElement = treeOutline.findTreeElement(node); treeOutline.toggleEditAsHTML(node); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { @@ -71,7 +71,7 @@ var event = InspectorTest.createKeyEvent("Enter"); event.isMetaOrCtrlForTest = true; treeElement._htmlEditElement.dispatchEvent(event); - InspectorTest.runAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); } } }, diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html index 75f22755eac2cf..d699a1b51927dd 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html @@ -26,7 +26,7 @@ var treeOutline = InspectorTest.firstElementsTreeOutline(); var treeElement = treeOutline.findTreeElement(node); treeOutline.toggleEditAsHTML(node); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { @@ -36,7 +36,7 @@ var event = InspectorTest.createKeyEvent("Enter"); event.isMetaOrCtrlForTest = true; treeElement._htmlEditElement.dispatchEvent(event); - InspectorTest.runAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); } } }, @@ -60,7 +60,7 @@ var treeOutline = InspectorTest.firstElementsTreeOutline(); var treeElement = treeOutline.findTreeElement(node); treeOutline.toggleEditAsHTML(node); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { @@ -70,7 +70,7 @@ var event = InspectorTest.createKeyEvent("Enter"); event.isMetaOrCtrlForTest = true; treeElement._htmlEditElement.dispatchEvent(event); - InspectorTest.runAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-2.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-2.html index f82d64889be792..7cf0be27f28582 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-2.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-2.html @@ -28,7 +28,7 @@ var treeOutline = InspectorTest.firstElementsTreeOutline(); var treeElement = treeOutline.findTreeElement(node); treeOutline.toggleEditAsHTML(node); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { @@ -37,7 +37,7 @@ var event = InspectorTest.createKeyEvent("Enter"); event.isMetaOrCtrlForTest = true; treeElement._htmlEditElement.dispatchEvent(event); - InspectorTest.runAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done)); } } } diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js index 4c804547963c1b..df383dff63a8dd 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js @@ -13,7 +13,7 @@ InspectorTest.doAddAttribute = function(testName, dataNodeId, attributeText, nex var editorElement = InspectorTest.editNodePart(node, "webkit-html-attribute"); editorElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009")); // Tab - InspectorTest.runAfterPendingDispatches(testContinuation); + InspectorTest.deprecatedRunAfterPendingDispatches(testContinuation); function testContinuation() { @@ -44,7 +44,7 @@ InspectorTest.domActionTest = function(testName, dataNodeSelectionCallback, test function step0(node) { - InspectorTest.runAfterPendingDispatches(step1.bind(null, node)); + InspectorTest.deprecatedRunAfterPendingDispatches(step1.bind(null, node)); } function step1(node) @@ -78,7 +78,7 @@ InspectorTest.editNodePartAndRun = function(node, className, newValue, step2, us if (useSniffer) InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_updateModifiedNodes", step2); else - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); } } diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/insert-node-collapsed.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/insert-node-collapsed.html index eef301b64acb55..5ed3851982905d 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/edit/insert-node-collapsed.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/insert-node-collapsed.html @@ -34,7 +34,7 @@ function callback() { InspectorTest.firstElementsTreeOutline().runPendingUpdates(); - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { InspectorTest.addResult("======== Appended ========="); InspectorTest.dumpElementsTree(containerNode); next(); diff --git a/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html b/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html index 3a9ef5ae99e680..ed82b59e1aa9e6 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html @@ -42,7 +42,7 @@ function step2() { - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() @@ -58,7 +58,7 @@ function step4() { - InspectorTest.runAfterPendingDispatches(step5); + InspectorTest.deprecatedRunAfterPendingDispatches(step5); } function step5() @@ -68,7 +68,7 @@ function step6() { - InspectorTest.runAfterPendingDispatches(step7); + InspectorTest.deprecatedRunAfterPendingDispatches(step7); } function step7() diff --git a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-limited-children.html b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-limited-children.html index 4adda16421a366..1f26c8518020b9 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-limited-children.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-limited-children.html @@ -26,7 +26,7 @@ dataTreeElement._expandedChildrenLimit = 5; dataTreeElement.reveal(); dataTreeElement.expand(); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); } function step2() @@ -42,7 +42,7 @@ InspectorTest.addResult("=========== Modified children ==========="); dumpElementsTree(); dataTreeElement.expandAllButtonElement.button.click(); - InspectorTest.runAfterPendingDispatches(step4); + InspectorTest.deprecatedRunAfterPendingDispatches(step4); } function step4() diff --git a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-selection-on-refresh.html b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-selection-on-refresh.html index 04293180e68b0e..0a33c164e5a51c 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-selection-on-refresh.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-selection-on-refresh.html @@ -15,7 +15,7 @@ function step2() { - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() diff --git a/third_party/WebKit/LayoutTests/inspector/elements/expand-recursively.html b/third_party/WebKit/LayoutTests/inspector/elements/expand-recursively.html index 32d303552cabbc..1a41a6bdf76a6b 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/expand-recursively.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/expand-recursively.html @@ -16,7 +16,7 @@ var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1); topNode.expandRecursively(); - InspectorTest.runAfterPendingDispatches(secondStep); + InspectorTest.deprecatedRunAfterPendingDispatches(secondStep); }; function secondStep() diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-2/metrics-box-sizing.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-2/metrics-box-sizing.html index 2a94cf08762d84..ca95de05e22f21 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/styles-2/metrics-box-sizing.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-2/metrics-box-sizing.html @@ -96,7 +96,7 @@ contentWidthElement.dispatchEvent(createDoubleClickEvent()); contentWidthElement.textContent = "60"; contentWidthElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); }, function testModifiedBorderBoxMetrics(next) @@ -128,7 +128,7 @@ contentWidthElement.dispatchEvent(createDoubleClickEvent()); contentWidthElement.textContent = "60"; contentWidthElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); next(); }, diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-during-dom-traversal.html b/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-during-dom-traversal.html index 52fd4a0fc49c97..bcc970840afa21 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-during-dom-traversal.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-during-dom-traversal.html @@ -17,7 +17,7 @@ for (var i = 0; i < keydownCount; ++i) element.dispatchEvent(InspectorTest.createKeyEvent("Up")); - InspectorTest.runAfterPendingDispatches(completeCallback); + InspectorTest.deprecatedRunAfterPendingDispatches(completeCallback); } function completeCallback() diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-throttled.html b/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-throttled.html index cc37b6994748e0..c0549f805e3688 100644 --- a/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-throttled.html +++ b/third_party/WebKit/LayoutTests/inspector/elements/styles/updates-throttled.html @@ -17,7 +17,7 @@ for (var i = 0; i < UPDATE_COUNT; ++i) stylesPane.setNode(stylesPane.node()); - InspectorTest.runAfterPendingDispatches(completeCallback); + InspectorTest.deprecatedRunAfterPendingDispatches(completeCallback); } function completeCallback() diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-api.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-api.html index 603eb6dc95fdbd..0e4cb03a0dae44 100644 --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-api.html +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-api.html @@ -16,7 +16,7 @@ var node = results.createResult("Subtree"); dumpObject(node); // Make sure dumpObject() pushes stuff through before we continue. - evaluateOnFrontend("InspectorTest.runAfterPendingDispatches(reply)", function() { + evaluateOnFrontend("InspectorTest.deprecatedRunAfterPendingDispatches(reply)", function() { results.done(); }); } diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-events.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-events.html index 44f2d925b790fa..801bd923d22d8f 100644 --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-events.html +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-events.html @@ -11,7 +11,7 @@ InspectorTest.expandSidebar = function(callback) { var sidebar = InspectorTest._extensionSidebar(); - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { sidebar.expand(); callback(); }); diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel.html index 418b7ddcc2a5bd..68e642947df0ec 100644 --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel.html +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel.html @@ -69,7 +69,7 @@ function consoleMessageAdded() { WebInspector.multitargetConsoleModel.removeEventListener(WebInspector.ConsoleModel.Events.MessageAdded, wrappedConsoleMessageAdded); - InspectorTest.runAfterPendingDispatches(clickOnMessage) + InspectorTest.deprecatedRunAfterPendingDispatches(clickOnMessage) } function clickOnMessage() diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html index 758574455b6d04..117e22249723e6 100644 --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html @@ -135,7 +135,7 @@ resource.setContent("div.test { width: 140px; height: 42px; }", false); }); // The next step is going to produce a console message that will be logged, so synchronize the output now. - evaluateOnFrontend("InspectorTest.runAfterPendingDispatches(reply)", function() { + evaluateOnFrontend("InspectorTest.deprecatedRunAfterPendingDispatches(reply)", function() { extension_runWithResource(/abe\.png$/, function(resource) { resource.setContent("", true); }); diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-sidebar.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-sidebar.html index 4011149f4bf1e7..8a62da8103aace 100644 --- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-sidebar.html +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-sidebar.html @@ -9,7 +9,7 @@ InspectorTest.dumpSidebarContent = function(panelName, callback) { var sidebar = InspectorTest._extensionSidebar(panelName); - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { InspectorTest.addResult(panelName + " sidebar content: " + InspectorTest.textContentWithoutStyles(sidebar.element)); callback(); }); @@ -18,7 +18,7 @@ InspectorTest.expandSidebar = function(panelName, callback) { var sidebar = InspectorTest._extensionSidebar(panelName); - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { sidebar.expand(); callback(); }); diff --git a/third_party/WebKit/LayoutTests/inspector/load-file-resource-for-frontend.html b/third_party/WebKit/LayoutTests/inspector/load-file-resource-for-frontend.html index be3561fff3fc43..36e3c2ce19e910 100644 --- a/third_party/WebKit/LayoutTests/inspector/load-file-resource-for-frontend.html +++ b/third_party/WebKit/LayoutTests/inspector/load-file-resource-for-frontend.html @@ -21,7 +21,7 @@ else { InspectorTest.addResult("Content: " + content); } - InspectorTest.runAfterPendingDispatches(next); + InspectorTest.deprecatedRunAfterPendingDispatches(next); } } diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-after-suspension.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-after-suspension.html index a0d502c62ef8be..77bb60e5794765 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-after-suspension.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-after-suspension.html @@ -38,7 +38,7 @@ { InspectorTest.addResult("Suspend all targets"); WebInspector.targetManager.suspendAllTargets(); - InspectorTest.runAfterPendingDispatches(resumeAll); + InspectorTest.deprecatedRunAfterPendingDispatches(resumeAll); } function resumeAll() diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-xhr.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-xhr.html index 534697cbdea59e..67143891522756 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-xhr.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-xhr.html @@ -92,7 +92,7 @@ pane._removeBreakpoint("listener:loadend", xhrTargetNames); pane._removeBreakpoint("listener:progress", xhrTargetNames); pane._removeBreakpoint("listener:readystatechange", xhrTargetNames); - InspectorTest.runAfterPendingDispatches(InspectorTest.completeDebuggerTest.bind(InspectorTest)); + InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.completeDebuggerTest.bind(InspectorTest)); } } diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-change-variable.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-change-variable.html index b7680af9c4c67e..c182071c1fc3ea 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-change-variable.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-change-variable.html @@ -46,7 +46,7 @@ { var pane = WebInspector.panels.sources.sidebarPanes.callstack; pane._callFrameSelected(pane.callFrames[1]); - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe.html index c35dab21c82720..9577eff14c275f 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe.html @@ -78,7 +78,7 @@ { var pane = WebInspector.panels.sources.sidebarPanes.callstack; pane._callFrameSelected(pane.callFrames[1]); - InspectorTest.runAfterPendingDispatches(step4); + InspectorTest.deprecatedRunAfterPendingDispatches(step4); } function step4() diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused.html index d71968dc2e71dc..c8cb2c13314d20 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused.html @@ -38,7 +38,7 @@ InspectorTest.addResult("Evaluated script on the top frame: " + result); var pane = WebInspector.panels.sources.sidebarPanes.callstack; pane._callFrameSelected(pane.callFrames[1]); - InspectorTest.runAfterPendingDispatches(step4); + InspectorTest.deprecatedRunAfterPendingDispatches(step4); } function step4() diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/skip-pauses-until-reload.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/skip-pauses-until-reload.html index a8e25131ecdf13..812fc0da9835cb 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/skip-pauses-until-reload.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/skip-pauses-until-reload.html @@ -85,7 +85,7 @@ var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints; InspectorTest.addResult("Set up Event breakpoints."); pane._setBreakpoint("listener:click"); - InspectorTest.runAfterPendingDispatches(didSetUp); + InspectorTest.deprecatedRunAfterPendingDispatches(didSetUp); } function didSetUp() diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values.html index e6b8e196a5c669..01bc88237060c6 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values.html @@ -31,7 +31,7 @@ function onSetExecutionLocation(uiLocation) { - InspectorTest.runAfterPendingDispatches(dumpAndContinue.bind(null, this.textEditor, uiLocation.lineNumber)); + InspectorTest.deprecatedRunAfterPendingDispatches(dumpAndContinue.bind(null, this.textEditor, uiLocation.lineNumber)); } function dumpAndContinue(textEditor, lineNumber) diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/error-in-watch-expressions.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/error-in-watch-expressions.html index a5ae506db7fb7d..7cc0bdc8d305bf 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/error-in-watch-expressions.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/error-in-watch-expressions.html @@ -11,7 +11,7 @@ watchExpressionsPane.expand(); watchExpressionsPane.addExpression("#$%"); - InspectorTest.runAfterPendingDispatches(step1); + InspectorTest.deprecatedRunAfterPendingDispatches(step1); function step1() { diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-function-definition.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-function-definition.html index 2c6c59127350ae..afcff3c484f028 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-function-definition.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-function-definition.html @@ -44,7 +44,7 @@ function onConsoleMessagesReceived() { - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { var messages = []; InspectorTest.disableConsoleViewport(); var viewMessages = WebInspector.ConsoleView.instance()._visibleViewMessages; diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-preserve-expansion.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-preserve-expansion.html index 3006a6106f7324..94349a93733347 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-preserve-expansion.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-preserve-expansion.html @@ -32,7 +32,7 @@ watchExpressionsPane.addExpression("windowAlias"); watchExpressionsPane.addExpression("array"); watchExpressionsPane.addExpression("func"); - InspectorTest.runAfterPendingDispatches(step2); + InspectorTest.deprecatedRunAfterPendingDispatches(step2); function step2() { diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/dynamic-scripts.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/dynamic-scripts.html index 6b9d075fa09c0d..4477e9e157386f 100644 --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/dynamic-scripts.html +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/dynamic-scripts.html @@ -42,7 +42,7 @@ function step2() { - InspectorTest.runAfterPendingDispatches(step3); + InspectorTest.deprecatedRunAfterPendingDispatches(step3); } function step3() diff --git a/third_party/WebKit/LayoutTests/inspector/storage-panel-dom-storage.html b/third_party/WebKit/LayoutTests/inspector/storage-panel-dom-storage.html index af29f963a4681f..71801f953ef2d3 100644 --- a/third_party/WebKit/LayoutTests/inspector/storage-panel-dom-storage.html +++ b/third_party/WebKit/LayoutTests/inspector/storage-panel-dom-storage.html @@ -39,7 +39,7 @@ InspectorTest.addResult("KeyValue pairs: " + rows.join('')); } - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { var storages = InspectorTest.domStorageModel().storages(); if (storages) { for (var i = 0; i < storages.length; i++) { @@ -50,7 +50,7 @@ } else InspectorTest.addResult("FAIL: no DOM storages found."); - InspectorTest.runAfterPendingDispatches(function() { + InspectorTest.deprecatedRunAfterPendingDispatches(function() { var storages = InspectorTest.domStorageModel().storages(); for (var i = 0; i < storages.length; i++) { var storage = storages[i]; diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js index af9d033d9a1dc8..c2bddb498112e1 100644 --- a/third_party/WebKit/Source/devtools/front_end/Tests.js +++ b/third_party/WebKit/Source/devtools/front_end/Tests.js @@ -578,7 +578,7 @@ TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() function callback() { var target = WebInspector.targetManager.targetsWithJSContext()[0]; - target._connection.runAfterPendingDispatches(this.releaseControl.bind(this)); + target._connection.deprecatedRunAfterPendingDispatches(this.releaseControl.bind(this)); } }; diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js index 4af10793968d2f..7261054cf646cc 100644 --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js @@ -592,7 +592,7 @@ WebInspector.Main.prototype = { } } - this._mainConnection.runAfterPendingDispatches(invokeMethod); + this._mainConnection.deprecatedRunAfterPendingDispatches(invokeMethod); } } diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackend.js b/third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackend.js index 07f58c2dadba0e..158c1431216a2e 100644 --- a/third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackend.js +++ b/third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackend.js @@ -346,7 +346,7 @@ InspectorBackendClass.Connection.prototype = { console.log("time-stats: " + callback.methodName + " = " + (processingStartTime - callback.sendRequestTime) + " + " + (Date.now() - processingStartTime)); if (this._scripts && !this._pendingResponsesCount) - this.runAfterPendingDispatches(); + this.deprecatedRunAfterPendingDispatches(); return; } else { var method = messageObject.method.split("."); @@ -376,7 +376,7 @@ InspectorBackendClass.Connection.prototype = { /** * @param {function()=} script */ - runAfterPendingDispatches: function(script) + deprecatedRunAfterPendingDispatches: function(script) { if (!this._scripts) this._scripts = []; @@ -389,7 +389,7 @@ InspectorBackendClass.Connection.prototype = { if (!this._pendingResponsesCount) this._executeAfterPendingDispatches(); else - this.runAfterPendingDispatches(); + this.deprecatedRunAfterPendingDispatches(); }.bind(this), 0); },