()
| 1090 | |
| 1091 | #[test] |
| 1092 | fn test_tab_existing_content() { |
| 1093 | let mut cb = MockConsole::default(); |
| 1094 | cb.set_size_chars(yx(10, 40)); |
| 1095 | let mut ob = OutputBuilder::new(yx(10, 40)); |
| 1096 | ob = ob.refresh(linecol(0, 0), &["."], yx(0, 0)); |
| 1097 | |
| 1098 | cb.add_input_keys(&[Key::Tab]); |
| 1099 | ob = ob.set_dirty(); |
| 1100 | ob = ob.refresh_line(linecol(0, 4), " .", yx(0, 4)); |
| 1101 | |
| 1102 | cb.add_input_keys(&[Key::Tab]); |
| 1103 | ob = ob.refresh_line(linecol(0, 8), " .", yx(0, 8)); |
| 1104 | |
| 1105 | run_editor(".", " .\n", cb, ob); |
| 1106 | } |
| 1107 | |
| 1108 | #[test] |
| 1109 | fn test_tab_remove_empty_line() { |
nothing calls this directly
no test coverage detected