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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html

Issue 2385273004: DevTools: fix text editor autocompletion (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../sources/debugger/resources/edit-me.js"></script> 3 <script src="../sources/debugger/resources/edit-me.js"></script>
4 <script src="../editor/editor-test.js"></script> 4 <script src="../editor/editor-test.js"></script>
5 <script src="../../http/tests/inspector/inspector-test.js"></script> 5 <script src="../../http/tests/inspector/inspector-test.js"></script>
6 <script src="../../http/tests/inspector/debugger-test.js"></script> 6 <script src="../../http/tests/inspector/debugger-test.js"></script>
7 <script> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.showScriptSource("edit-me.js", onSourceFrame); 10 InspectorTest.showScriptSource("edit-me.js", onSourceFrame);
(...skipping 27 matching lines...) Expand all
38 textEditor.setText("one two three3_\nfour five\na_b\nsix\n123foo\n13 2\nseven"); 38 textEditor.setText("one two three3_\nfour five\na_b\nsix\n123foo\n13 2\nseven");
39 dumpDictionary(next); 39 dumpDictionary(next);
40 }, 40 },
41 41
42 function testAlphaNumericWords(next) 42 function testAlphaNumericWords(next)
43 { 43 {
44 textEditor.setText("2 2foo foo2 2foo4 foo3bar"); 44 textEditor.setText("2 2foo foo2 2foo4 foo3bar");
45 dumpDictionary(next); 45 dumpDictionary(next);
46 }, 46 },
47 47
48 function testRemoveDuplicate(next)
49 {
50 textEditor.setText("one\none");
51 textEditor.setSelection(new WebInspector.TextRange(0, 0, 0, 3));
52 InspectorTest.typeIn(textEditor, "\b", dumpDictionary.bind(null, nex t));
53 },
54
48 function testSetText(next) 55 function testSetText(next)
49 { 56 {
50 textEditor.setText("dog cat 'mouse';dog bird"); 57 textEditor.setText("dog cat 'mouse';dog bird");
51 dumpDictionary(next); 58 dumpDictionary(next);
52 }, 59 },
53 60
54 function testSimpleEdit(next) 61 function testSimpleEdit(next)
55 { 62 {
56 textEditor.setSelection(WebInspector.TextRange.createFromLocation(0, 3)); 63 textEditor.setSelection(WebInspector.TextRange.createFromLocation(0, 3));
57 InspectorTest.typeIn(textEditor, "\b", dumpDictionary.bind(null, nex t)); 64 InspectorTest.typeIn(textEditor, "\b", dumpDictionary.bind(null, nex t));
(...skipping 20 matching lines...) Expand all
78 </script> 85 </script>
79 </head> 86 </head>
80 87
81 <body onload="runTest();"> 88 <body onload="runTest();">
82 <p> 89 <p>
83 This test checks how text editor updates autocompletion dictionary in a response 90 This test checks how text editor updates autocompletion dictionary in a response
84 to user input. 91 to user input.
85 </p> 92 </p>
86 </body> 93 </body>
87 </html> 94 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698