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

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

Issue 2489403002: DevTools: Ghost text shouldn't affect textWithCurrentSuggestion (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html
index 5f5a197c9d4e59f1d3d9bdd01785f013e24c8e37..c2588cfea1dc25a234797cf31496d36028c5c635 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html
@@ -16,6 +16,13 @@ function test() {
prompt.complete();
UnitTest.addResult("Text:" + prompt.text());
UnitTest.addResult("TextWithCurrentSuggestion:" + prompt.textWithCurrentSuggestion());
+
+ UnitTest.addResult("Test with inexact match:");
+ prompt.clearAutocomplete();
+ prompt.setText("inexactmatch");
+ prompt.complete();
+ UnitTest.addResult("Text:" + prompt.text());
+ UnitTest.addResult("TextWithCurrentSuggestion:" + prompt.textWithCurrentSuggestion());
UnitTest.completeTest();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698