* 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:
@@ -243,10 +243,19 @@ show_window(BRect frame, const char* name)
|
|||||||
b.OffsetTo(5.0, view->Bounds().bottom - (b.Height() + 15.0));
|
b.OffsetTo(5.0, view->Bounds().bottom - (b.Height() + 15.0));
|
||||||
BButton* control = new BButton(b, "button", "Copy", new BMessage(MSG_COPY_BITS));
|
BButton* control = new BButton(b, "button", "Copy", new BMessage(MSG_COPY_BITS));
|
||||||
view->AddChild(control);
|
view->AddChild(control);
|
||||||
printf("button frame:\n");
|
|
||||||
control->Frame().PrintToStream();
|
|
||||||
control->SetTarget(view);
|
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();
|
window->Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
if test -f ../../../../../generated/tests/apps/haiku_app_server; then
|
if test -f ../../../../../generated/tests/apps/haiku_app_server; then
|
||||||
../../../../../generated/tests/apps/haiku_app_server &
|
../../../../../generated/tests/apps/haiku_app_server &
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
sleep 1s
|
sleep 1s
|
||||||
@@ -13,5 +13,5 @@ sleep 1s
|
|||||||
if test -f ../../../../../generated/tests/apps/CopyBits; then
|
if test -f ../../../../../generated/tests/apps/CopyBits; then
|
||||||
../../../../../generated/tests/apps/CopyBits
|
../../../../../generated/tests/apps/CopyBits
|
||||||
else
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user