From 5f9ccd486f9f8317cce3badcb62d646766c5642c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 28 Nov 2008 20:58:12 +0000
Subject: * test: Extend take object test to finally check that the object made
it into user inventory and that it was removed from the scene
---
.../Region/Environment/Scenes/Tests/SceneTestUtils.cs | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs')
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
index b169d9a..985c8a3 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
@@ -111,17 +111,32 @@ namespace OpenSim.Region.Environment.Scenes.Tests
return client;
}
+
+ ///
+ /// Add a test object
+ ///
+ ///
+ ///
+ public static SceneObjectPart AddSceneObject(Scene scene)
+ {
+ return AddSceneObject(scene, null);
+ }
///
/// Add a test object
///
///
+ ///
///
- public static SceneObjectPart AddSceneObject(Scene scene)
+ public static SceneObjectPart AddSceneObject(Scene scene, string name)
{
SceneObjectGroup sceneObject = new SceneObjectGroup();
SceneObjectPart part
= new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero);
+
+ if (name != null)
+ part.Name = name;
+
//part.UpdatePrimFlags(false, false, true);
part.ObjectFlags |= (uint)PrimFlags.Phantom;
sceneObject.SetRootPart(part);
--
cgit v1.1