A test app that does constant workspace switching.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23415 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -182,3 +182,4 @@ SubInclude HAIKU_TOP src tests servers app stress_test ;
|
|||||||
SubInclude HAIKU_TOP src tests servers app textview ;
|
SubInclude HAIKU_TOP src tests servers app textview ;
|
||||||
SubInclude HAIKU_TOP src tests servers app view_state ;
|
SubInclude HAIKU_TOP src tests servers app view_state ;
|
||||||
SubInclude HAIKU_TOP src tests servers app window_creation ;
|
SubInclude HAIKU_TOP src tests servers app window_creation ;
|
||||||
|
SubInclude HAIKU_TOP src tests servers app workspace_switcher ;
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
SubDir HAIKU_TOP src tests servers app workspace_switcher ;
|
||||||
|
|
||||||
|
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||||
|
AddSubDirSupportedPlatforms libbe_test ;
|
||||||
|
|
||||||
|
UseHeaders [ FDirName os app ] ;
|
||||||
|
UseHeaders [ FDirName os interface ] ;
|
||||||
|
|
||||||
|
Application workspace_switcher :
|
||||||
|
workspace_switcher.cpp
|
||||||
|
: be
|
||||||
|
;
|
||||||
|
|
||||||
|
if $(TARGET_PLATFORM) = libbe_test {
|
||||||
|
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : workspace_switcher
|
||||||
|
: tests!apps ;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2008, Haiku Inc.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
* Authors:
|
||||||
|
* Axel Dörfler, [email protected]
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <Application.h>
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
BApplication app("application/x-vnd.Haiku-test-wss");
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
activate_workspace(0);
|
||||||
|
snooze(3000);
|
||||||
|
activate_workspace(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user