mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +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<ChangedTitle> titleChanges = new ArrayList<>();
|
||||||
public final List<String> clipboardPuts = new ArrayList<>();
|
public final List<String> clipboardPuts = new ArrayList<>();
|
||||||
public int bellsRung = 0;
|
public int bellsRung = 0;
|
||||||
|
public int colorsChanged = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(byte[] data, int offset, int count) {
|
public void write(byte[] data, int offset, int count) {
|
||||||
@@ -49,7 +50,12 @@ public abstract class TerminalTestCase extends TestCase {
|
|||||||
public void onBell() {
|
public void onBell() {
|
||||||
bellsRung++;
|
bellsRung++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@Override
|
||||||
|
public void onColorsChanged() {
|
||||||
|
colorsChanged++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public TerminalEmulator mTerminal;
|
public TerminalEmulator mTerminal;
|
||||||
public MockTerminalOutput mOutput;
|
public MockTerminalOutput mOutput;
|
||||||
|
Reference in New Issue
Block a user