* 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
This commit is contained in:
Stephan Aßmus 2006-08-26 14:13:51 +00:00
parent 778e3c640d
commit d4962719c6
2 changed files with 13 additions and 4 deletions

View File

@ -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();
}

View File

@ -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