Update the test to cover a wider width range now that truncating doesn't crash
anymore. Also make that test string a bit more complicated. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35386 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7f2f5e05b0
commit
e33d4e74c2
@ -23,14 +23,13 @@ public:
|
||||
const uint32 kTruncateModeCount
|
||||
= sizeof(kTruncateModes) / sizeof(kTruncateModes[0]);
|
||||
|
||||
BString theString("ö-ä-ü");
|
||||
BString theString("ö&ä|ü-é#");
|
||||
BPoint point(10, kTopOffset);
|
||||
BString truncated;
|
||||
|
||||
for (float length = 25; length < 50; length += 5) {
|
||||
for (float length = 5; length < 65; length += 3) {
|
||||
SetHighColor(255, 0, 0);
|
||||
StrokeRect(BRect(point.x, point.y - kSpacing, point.x + length,
|
||||
point.y + kSpacing * (kTruncateModeCount - 1)));
|
||||
point.y + kSpacing * kTruncateModeCount));
|
||||
SetHighColor(0, 0, 0);
|
||||
|
||||
for (uint32 i = 0; i < kTruncateModeCount; i++) {
|
||||
@ -52,7 +51,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
BApplication app("application/x-vnd.Haiku-TruncateString");
|
||||
|
||||
BRect frame(200, 200, 600, 400);
|
||||
BRect frame(100, 200, 1200, 300);
|
||||
BWindow *window = new BWindow(frame, "TruncateString", B_TITLED_WINDOW,
|
||||
B_QUIT_ON_WINDOW_CLOSE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user