()
| 1067 | |
| 1068 | #[test] |
| 1069 | fn test_tab_append() { |
| 1070 | let mut cb = MockConsole::default(); |
| 1071 | cb.set_size_chars(yx(10, 40)); |
| 1072 | let mut ob = OutputBuilder::new(yx(10, 40)); |
| 1073 | ob = ob.refresh(linecol(0, 0), &[""], yx(0, 0)); |
| 1074 | |
| 1075 | cb.add_input_keys(&[Key::Tab]); |
| 1076 | ob = ob.set_dirty(); |
| 1077 | ob = ob.add(CapturedOut::Write(" ".to_string())); |
| 1078 | ob = ob.quick_refresh(linecol(0, 4), yx(0, 4)); |
| 1079 | |
| 1080 | cb.add_input_chars("x"); |
| 1081 | ob = ob.add(CapturedOut::Write("x".to_string())); |
| 1082 | ob = ob.quick_refresh(linecol(0, 5), yx(0, 5)); |
| 1083 | |
| 1084 | cb.add_input_keys(&[Key::Tab]); |
| 1085 | ob = ob.add(CapturedOut::Write(" ".to_string())); |
| 1086 | ob = ob.quick_refresh(linecol(0, 8), yx(0, 8)); |
| 1087 | |
| 1088 | run_editor("", " x \n", cb, ob); |
| 1089 | } |
| 1090 | |
| 1091 | #[test] |
| 1092 | fn test_tab_existing_content() { |
nothing calls this directly
no test coverage detected