| 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
|
| deleted file mode 100644
|
| index ef50f846d5f5a8f7c7e2da7748362475935b404c..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html
|
| +++ /dev/null
|
| @@ -1,38 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<base href="/inspector-debug/"></base>
|
| -<script src="/inspector-debug/Runtime.js"></script>
|
| -<script src="/inspector-unit/inspector-unit-test.js"></script>
|
| -<script>
|
| -function test() {
|
| - var suggestions = ["heyoo", "hey it's a suggestion", "hey another suggestion"].map(s => ({title: s}));
|
| - var prompt = new UI.TextPrompt();
|
| - prompt.initialize(() => Promise.resolve(suggestions));
|
| - var div = document.createElement("div");
|
| - UI.inspectorView.element.appendChild(div);
|
| - prompt.attachAndStartEditing(div);
|
| - prompt.setText("hey");
|
| - UnitTest.addSniffer(prompt, "_completionsReady").then(step2);
|
| - prompt.complete();
|
| - function step2() {
|
| - UnitTest.addResult("Text:" + prompt.text());
|
| - UnitTest.addResult("TextWithCurrentSuggestion:" + prompt.textWithCurrentSuggestion());
|
| -
|
| - UnitTest.addResult("Test with inexact match:");
|
| - prompt.clearAutocomplete();
|
| - prompt.setText("inexactmatch");
|
| - UnitTest.addSniffer(prompt, "_completionsReady").then(step3);
|
| - prompt.complete();
|
| - }
|
| - function step3() {
|
| - UnitTest.addResult("Text:" + prompt.text());
|
| - UnitTest.addResult("TextWithCurrentSuggestion:" + prompt.textWithCurrentSuggestion());
|
| - UnitTest.completeTest();
|
| - }
|
| -}
|
| -</script>
|
| -</head>
|
| -<body>
|
| -This tests if the TextPrompt autocomplete works properly.
|
| -</body>
|
| -</html>
|
|
|