- Rid the world of mutated types and signatures
- Accounted for incorporation of R5 suffixes in app sigs into the kRecentAppsTestSigs array git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1799 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -84,10 +84,8 @@ const int32 kNonQualifyingFlags[] = {
|
|||||||
const char *kTempDirRoot = "/tmp";
|
const char *kTempDirRoot = "/tmp";
|
||||||
const char *kTempDir = "/tmp/obos-recent-tests";
|
const char *kTempDir = "/tmp/obos-recent-tests";
|
||||||
|
|
||||||
//const char *kTestType1 = "text/x-vnd.obos-recent-docs-test-type-1";
|
const char *kTestType1 = "text/x-vnd.obos-recent-docs-test-type-1";
|
||||||
//const char *kTestType2 = "text/x-vnd.obos-recent-docs-test-type-2";
|
const char *kTestType2 = "text/x-vnd.obos-recent-docs-test-type-2";
|
||||||
const char *kTestType1 = "text/x-vnd.obos-recent-docs-teste-1-thsdfkj";
|
|
||||||
const char *kTestType2 = "text/x-vnd.obos-recent-doce-2-sdlkfjls";
|
|
||||||
|
|
||||||
const char *test_types[] = {
|
const char *test_types[] = {
|
||||||
kTestType1,
|
kTestType1,
|
||||||
@@ -121,10 +119,10 @@ const char *test_folders[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const char *test_sigs[] = {
|
const char *test_sigs[] = {
|
||||||
"application/x-vnd.obos-recent-tests-1-tdfhingo",
|
"application/x-vnd.obos-recent-tests-1",
|
||||||
"imposter/this-is-not-an-app-sig-now?",
|
"imposter/this-is-not-an-app-sig-now-is-it?",
|
||||||
"application/x-vnd.obos-recent-tests-a3sdfs-thingo",
|
"application/x-vnd.obos-recent-tests-3",
|
||||||
"application/x-vnd.obos-recent-tests-app-sig-4a",
|
"application/x-vnd.obos-recent-tests-app-sig-4",
|
||||||
};
|
};
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -237,18 +235,13 @@ launch_test_app(RecentAppsTestAppId id, const int32 *flags)
|
|||||||
std::string sig;
|
std::string sig;
|
||||||
// Set the attributes
|
// Set the attributes
|
||||||
if (!err) {
|
if (!err) {
|
||||||
#ifdef TEST_R5
|
err = set_test_app_attributes(&ref, kRecentAppsTestAppSigs[id], flags);
|
||||||
sig = std::string(kRecentAppsTestAppSigs[id]) + "-r5";
|
|
||||||
#else
|
|
||||||
sig = kRecentAppsTestAppSigs[id];
|
|
||||||
#endif
|
|
||||||
err = set_test_app_attributes(&ref, sig.c_str(), flags);
|
|
||||||
}
|
}
|
||||||
// Launch the app
|
// Launch the app
|
||||||
if (!err) {
|
if (!err) {
|
||||||
BRoster roster;
|
BRoster roster;
|
||||||
err = roster.Launch(&ref);
|
err = roster.Launch(&ref);
|
||||||
// err = roster.Launch(sig.c_str());
|
// err = roster.Launch(kRecentAppsTestAppSigs[id]);
|
||||||
}
|
}
|
||||||
// Give it time to do its thing
|
// Give it time to do its thing
|
||||||
if (!err)
|
if (!err)
|
||||||
|
|||||||
Reference in New Issue
Block a user