OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |