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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js

Issue 2837083003: DevTools: create test infrastructure so devtools drives the test (Closed)
Patch Set: rebaseline Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js
index 292eadca66eebd607e16dffa47c40f0337994a70..5401792fb13fcfa0cfbb2cc69305948f230a0ed3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js
@@ -7,7 +7,7 @@ var div = document.createElement("div");
UI.inspectorView.element.appendChild(div);
prompt.attachAndStartEditing(div);
prompt.setText("hey");
-TestRunner.addSniffer(prompt, "_completionsReady").then(step2);
+TestRunner.addSnifferPromise(prompt, "_completionsReady").then(step2);
prompt.complete();
function step2() {
TestRunner.addResult("Text:" + prompt.text());
@@ -16,7 +16,7 @@ function step2() {
TestRunner.addResult("Test with inexact match:");
prompt.clearAutocomplete();
prompt.setText("inexactmatch");
- TestRunner.addSniffer(prompt, "_completionsReady").then(step3);
+ TestRunner.addSnifferPromise(prompt, "_completionsReady").then(step3);
prompt.complete();
}
function step3() {

Powered by Google App Engine
This is Rietveld 408576698