mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-03 10:07:47 +01:00
Tests/ASN1: add additional unit test inspired by #1151
This commit is contained in:
parent
c5a73e948f
commit
0b34a8e543
@ -28,4 +28,20 @@ class Unit_File_ANSITest extends PhpseclibTestCase
|
||||
|
||||
$this->assertSame($ansi->getScreen(), $expected);
|
||||
}
|
||||
|
||||
public function testCaseJ()
|
||||
{
|
||||
$str = "\x1B[H"; // Move cursor to upper left corner
|
||||
$str.= "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
||||
$str.= "\x1B[H"; // Move cursor to upper left corner
|
||||
$str.= "\x1B[J"; // Clear screen from cursor down
|
||||
|
||||
$ansi = new ANSI();
|
||||
$ansi->appendString($str);
|
||||
|
||||
$expected = '<pre width="80" style="color: white; background: black">';
|
||||
$expected.= '</pre>';
|
||||
|
||||
$this->assertSame($ansi->getScreen(), $expected);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user