1 // This file is generated from VSCode model tests by the testgen tool.
2 // DO NOT EDIT THIS FILE BY HAND; your changes will be overwritten!
8 func TestAuto1(t *testing.T) {
49 func TestAuto2(t *testing.T) {
98 func TestAuto3(t *testing.T) {
137 func TestAuto4(t *testing.T) {
202 func TestBug19872UndoIsFunky(t *testing.T) {
237 func TestBug19872UndoIsFunky_2(t *testing.T) {
273 func TestInsertEmptyText(t *testing.T) {
278 "\t\tMy Second Line",
294 "\t\tMy Second Line",
302 func TestLastOpIsNoOp(t *testing.T) {
307 "\t\tMy Second Line",
330 "\t\tMy Second Line",
338 func TestInsertTextWithoutNewline1(t *testing.T) {
343 "\t\tMy Second Line",
359 "\t\tMy Second Line",
367 func TestInsertTextWithoutNewline2(t *testing.T) {
372 "\t\tMy Second Line",
388 "\t\tMy Second Line",
396 func TestInsertOneNewline(t *testing.T) {
401 "\t\tMy Second Line",
419 "\t\tMy Second Line",
427 func TestInsertTextWithOneNewline(t *testing.T) {
432 "\t\tMy Second Line",
449 "No longer First Line",
450 "\t\tMy Second Line",
458 func TestInsertTextWithTwoNewlines(t *testing.T) {
463 "\t\tMy Second Line",
474 "One more line in the middle",
481 "One more line in the middle",
482 "No longer First Line",
483 "\t\tMy Second Line",
491 func TestInsertTextWithManyNewlines(t *testing.T) {
496 "\t\tMy Second Line",
520 "\t\tMy Second Line",
528 func TestInsertMultipleNewlines(t *testing.T) {
533 "\t\tMy Second Line",
565 "\t\tMy Second Line",
574 func TestDeleteEmptyText(t *testing.T) {
579 "\t\tMy Second Line",
595 "\t\tMy Second Line",
603 func TestDeleteTextFromOneLine(t *testing.T) {
608 "\t\tMy Second Line",
624 "\t\tMy Second Line",
632 func TestDeleteTextFromOneLine2(t *testing.T) {
637 "\t\tMy Second Line",
653 "\t\tMy Second Line",
661 func TestDeleteAllTextFromALine(t *testing.T) {
666 "\t\tMy Second Line",
682 "\t\tMy Second Line",
690 func TestDeleteTextFromTwoLines(t *testing.T) {
695 "\t\tMy Second Line",
718 func TestDeleteTextFromManyLines(t *testing.T) {
723 "\t\tMy Second Line",
745 func TestDeleteEverything(t *testing.T) {
750 "\t\tMy Second Line",
770 func TestTwoUnrelatedEdits(t *testing.T) {
775 "\t\tMy Second Line",
806 func TestTwoEditsOnOneLine(t *testing.T) {
814 "\t\t<!@#fifth#@!>\t\t",
842 func TestManyEdits(t *testing.T) {
879 func TestManyEditsReversed(t *testing.T) {
916 func TestReplacingNewlines1(t *testing.T) {
953 func TestReplacingNewlines2(t *testing.T) {
959 "now comes an empty line",
1005 "some more textno more lines",
1017 func TestAdvanced1(t *testing.T) {
1024 " ,\"e\": /*comment*/ [null] }",
1103 " \"e\": /*comment*/ [",
1111 func TestAdvancedSimplified(t *testing.T) {
1149 func TestIssue144(t *testing.T) {
1156 "\tfmt.Println(\"Hello World! :)\")",
1170 "\tfmt.Println(\"Hello World! :)\")",
1182 "\tfmt.Println(\"Hello World! :)\")",
1189 func TestIssue2586ReplacingSelectedEndOfLineWithNewlineLocksUpTheDocument(t *testing.T) {
1213 func TestIssue3980(t *testing.T) {
1218 " someProperty = false;",
1220 " this.someMethod();",
1259 " someProperty = false;",
1262 " this.someMethod();",
1269 func TestTouchingEditsTwoInsertsAtTheSamePosition(t *testing.T) {
1297 func TestTouchingEditsInsertAndReplaceTouching(t *testing.T) {
1325 func TestTouchingEditsTwoTouchingReplaces(t *testing.T) {
1353 func TestTouchingEditsTwoTouchingDeletes(t *testing.T) {
1381 func TestTouchingEditsInsertAndReplace(t *testing.T) {
1409 func TestTouchingEditsReplaceAndInsert(t *testing.T) {
1437 func TestSingleDelete1(t *testing.T) {
1458 func TestSingleDelete2(t *testing.T) {
1479 func TestSingleDelete3(t *testing.T) {
1500 func TestSingleDelete4(t *testing.T) {
1521 func TestSingleDelete5(t *testing.T) {
1542 func TestMultiDelete6(t *testing.T) {
1565 func TestMultiDelete7(t *testing.T) {
1588 func TestMultiDelete8(t *testing.T) {
1611 func TestMultiDelete9(t *testing.T) {
1629 "hello worldhello world",
1634 func TestSingleInsert1(t *testing.T) {
1655 func TestSingleInsert2(t *testing.T) {
1676 func TestSingleInsert3(t *testing.T) {
1697 func TestSingleInsert4(t *testing.T) {
1718 func TestSingleInsert5(t *testing.T) {
1739 func TestMultiInsert6(t *testing.T) {
1761 func TestMultiInsert7(t *testing.T) {
1783 func TestMultiInsert8(t *testing.T) {
1805 func TestMultiInsert9(t *testing.T) {
1829 func BenchmarkBuffer(b *testing.B) {
1830 for i := 0; i < b.N; i++ {
1835 TestBug19872UndoIsFunky(nil)
1836 TestBug19872UndoIsFunky_2(nil)
1837 TestInsertEmptyText(nil)
1838 TestLastOpIsNoOp(nil)
1839 TestInsertTextWithoutNewline1(nil)
1840 TestInsertTextWithoutNewline2(nil)
1841 TestInsertOneNewline(nil)
1842 TestInsertTextWithOneNewline(nil)
1843 TestInsertTextWithTwoNewlines(nil)
1844 TestInsertTextWithManyNewlines(nil)
1845 TestInsertMultipleNewlines(nil)
1846 TestDeleteEmptyText(nil)
1847 TestDeleteTextFromOneLine(nil)
1848 TestDeleteTextFromOneLine2(nil)
1849 TestDeleteAllTextFromALine(nil)
1850 TestDeleteTextFromTwoLines(nil)
1851 TestDeleteTextFromManyLines(nil)
1852 TestDeleteEverything(nil)
1853 TestTwoUnrelatedEdits(nil)
1854 TestTwoEditsOnOneLine(nil)
1856 TestManyEditsReversed(nil)
1857 TestReplacingNewlines1(nil)
1858 TestReplacingNewlines2(nil)
1860 TestAdvancedSimplified(nil)
1862 TestIssue2586ReplacingSelectedEndOfLineWithNewlineLocksUpTheDocument(nil)
1864 TestTouchingEditsTwoInsertsAtTheSamePosition(nil)
1865 TestTouchingEditsInsertAndReplaceTouching(nil)
1866 TestTouchingEditsTwoTouchingReplaces(nil)
1867 TestTouchingEditsTwoTouchingDeletes(nil)
1868 TestTouchingEditsInsertAndReplace(nil)
1869 TestTouchingEditsReplaceAndInsert(nil)
1870 TestSingleDelete1(nil)
1871 TestSingleDelete2(nil)
1872 TestSingleDelete3(nil)
1873 TestSingleDelete4(nil)
1874 TestSingleDelete5(nil)
1875 TestMultiDelete6(nil)
1876 TestMultiDelete7(nil)
1877 TestMultiDelete8(nil)
1878 TestMultiDelete9(nil)
1879 TestSingleInsert1(nil)
1880 TestSingleInsert2(nil)
1881 TestSingleInsert3(nil)
1882 TestSingleInsert4(nil)
1883 TestSingleInsert5(nil)
1884 TestMultiInsert6(nil)
1885 TestMultiInsert7(nil)
1886 TestMultiInsert8(nil)
1887 TestMultiInsert9(nil)