From d4962719c6e69fc42840e1cb36ccbeead8a0180c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 26 Aug 2006 14:13:51 +0000 Subject: [PATCH] * updated script * added test for copy bits when the view has children git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18642 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/app/copy_bits/main.cpp | 13 +++++++++++-- src/tests/servers/app/copy_bits/run | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) 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