diff --git a/src/tests/servers/app/copy_bits/main.cpp b/src/tests/servers/app/copy_bits/main.cpp index d7eb0dd9f4..56c162a3d2 100644 --- a/src/tests/servers/app/copy_bits/main.cpp +++ b/src/tests/servers/app/copy_bits/main.cpp @@ -243,10 +243,19 @@ show_window(BRect frame, const char* name) b.OffsetTo(5.0, view->Bounds().bottom - (b.Height() + 15.0)); BButton* control = new BButton(b, "button", "Copy", new BMessage(MSG_COPY_BITS)); view->AddChild(control); -printf("button frame:\n"); -control->Frame().PrintToStream(); control->SetTarget(view); + // test CopyBits() on top of children + b = BRect(80, 130, 130, 160); + BView* child = new BView(b, "some child", B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM, 0); + child->SetViewColor(255, 0, 0); + view->AddChild(child); + + b = BRect(136, 127, 158, 140); + child = new BView(b, "some other child", B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM, 0); + child->SetViewColor(255, 255, 0); + view->AddChild(child); + window->Show(); } diff --git a/src/tests/servers/app/copy_bits/run b/src/tests/servers/app/copy_bits/run index 354b406b21..2325ce4964 100755 --- a/src/tests/servers/app/copy_bits/run +++ b/src/tests/servers/app/copy_bits/run @@ -5,7 +5,7 @@ if test -f ../../../../../generated/tests/apps/haiku_app_server; then ../../../../../generated/tests/apps/haiku_app_server & else - echo "You need to \"TARGET_PLATFORM=r5 jam install-test-apps\" first." + echo "You need to \"TARGET_PLATFORM=libbe_test jam install-test-apps\" first." fi sleep 1s @@ -13,5 +13,5 @@ sleep 1s if test -f ../../../../../generated/tests/apps/CopyBits; then ../../../../../generated/tests/apps/CopyBits else - echo "You need to \"TARGET_PLATFORM=r5 jam install-test-apps\" first." + echo "You need to \"TARGET_PLATFORM=libbe_test jam install-test-apps\" first." fi