mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Fix MockTerminalOutput to implement all methods
This commit is contained in:
@@ -19,6 +19,7 @@ public abstract class TerminalTestCase extends TestCase {
|
||||
public final List<ChangedTitle> titleChanges = new ArrayList<>();
|
||||
public final List<String> clipboardPuts = new ArrayList<>();
|
||||
public int bellsRung = 0;
|
||||
public int colorsChanged = 0;
|
||||
|
||||
@Override
|
||||
public void write(byte[] data, int offset, int count) {
|
||||
@@ -49,7 +50,12 @@ public abstract class TerminalTestCase extends TestCase {
|
||||
public void onBell() {
|
||||
bellsRung++;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onColorsChanged() {
|
||||
colorsChanged++;
|
||||
}
|
||||
}
|
||||
|
||||
public TerminalEmulator mTerminal;
|
||||
public MockTerminalOutput mOutput;
|
||||
|
Reference in New Issue
Block a user