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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html

Issue 2570263002: DevTools: introduce API for the Common.FormatterWorkerPool. (Closed)
Patch Set: address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html
index 45728a7ec1fa9192b297975ce8ab346fc221bce9..e110c67fc3d4231d4a1b7e2461dc0366e0480c92 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers.html
@@ -56,14 +56,13 @@ function test()
{
InspectorTest.addResult("Text:");
InspectorTest.addResult(" " + text + "\n");
- Common.formatterWorkerPool.runTask("javaScriptIdentifiers", {content: text})
+ Common.formatterWorkerPool.javaScriptIdentifiers(text)
.then(onIdentifiers)
.then(next);
}
- function onIdentifiers(event)
+ function onIdentifiers(ids)
{
- var ids = event ? event.data : [];
InspectorTest.addResult("Identifiers:");
for (var id of ids)
InspectorTest.addResult(` id: ${id.name} offset: ${id.offset}`);

Powered by Google App Engine
This is Rietveld 408576698