diff options
author | Justin Clark-Casey (justincc) | 2011-08-24 22:25:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-24 22:25:23 +0100 |
commit | 21f1b68fdf62779419bf03c522a502428a55d2d9 (patch) | |
tree | c43f34a1988f396b36f87f50c0cc538995b60ed4 | |
parent | Make objects attached from the ground phantom (diff) | |
download | opensim-SC-21f1b68fdf62779419bf03c522a502428a55d2d9.zip opensim-SC-21f1b68fdf62779419bf03c522a502428a55d2d9.tar.gz opensim-SC-21f1b68fdf62779419bf03c522a502428a55d2d9.tar.bz2 opensim-SC-21f1b68fdf62779419bf03c522a502428a55d2d9.tar.xz |
extend initial rez regression test to check that attachment is phantom
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs index 9ea6a16..2954933 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | |||
@@ -95,18 +95,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
95 | 95 | ||
96 | m_attMod.AttachObject(presence.ControllingClient, so, (uint)AttachmentPoint.Chest, false); | 96 | m_attMod.AttachObject(presence.ControllingClient, so, (uint)AttachmentPoint.Chest, false); |
97 | 97 | ||
98 | SceneObjectGroup attSo = scene.GetSceneObjectGroup(so.UUID); | ||
99 | Assert.That(attSo.IsAttachment); | ||
100 | Assert.That(attSo.IsPhantom); | ||
101 | Assert.That(attSo.UsesPhysics, Is.False); | ||
102 | Assert.That(attSo.IsTemporary, Is.False); | ||
103 | |||
104 | // Check status on scene presence | 98 | // Check status on scene presence |
105 | Assert.That(presence.HasAttachments(), Is.True); | 99 | Assert.That(presence.HasAttachments(), Is.True); |
106 | List<SceneObjectGroup> attachments = presence.Attachments; | 100 | List<SceneObjectGroup> attachments = presence.Attachments; |
107 | Assert.That(attachments.Count, Is.EqualTo(1)); | 101 | Assert.That(attachments.Count, Is.EqualTo(1)); |
108 | Assert.That(attachments[0].Name, Is.EqualTo(attName)); | 102 | SceneObjectGroup attSo = attachments[0]; |
109 | Assert.That(attachments[0].GetAttachmentPoint(), Is.EqualTo((byte)AttachmentPoint.Chest)); | 103 | Assert.That(attSo.Name, Is.EqualTo(attName)); |
104 | Assert.That(attSo.GetAttachmentPoint(), Is.EqualTo((byte)AttachmentPoint.Chest)); | ||
105 | Assert.That(attSo.IsAttachment); | ||
106 | Assert.That(attSo.IsPhantom); | ||
107 | Assert.That(attSo.UsesPhysics, Is.False); | ||
108 | Assert.That(attSo.IsTemporary, Is.False); | ||
110 | 109 | ||
111 | // Check item status | 110 | // Check item status |
112 | Assert.That(presence.Appearance.GetAttachpoint( | 111 | Assert.That(presence.Appearance.GetAttachpoint( |
@@ -204,7 +203,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
204 | List<SceneObjectGroup> attachments = presence.Attachments; | 203 | List<SceneObjectGroup> attachments = presence.Attachments; |
205 | 204 | ||
206 | Assert.That(attachments.Count, Is.EqualTo(1)); | 205 | Assert.That(attachments.Count, Is.EqualTo(1)); |
207 | Assert.That(attachments[0].Name, Is.EqualTo(attName)); | 206 | SceneObjectGroup attSo = attachments[0]; |
207 | Assert.That(attSo.Name, Is.EqualTo(attName)); | ||
208 | Assert.That(attSo.GetAttachmentPoint(), Is.EqualTo((byte)AttachmentPoint.Chest)); | ||
209 | Assert.That(attSo.IsAttachment); | ||
210 | Assert.That(attSo.IsPhantom); | ||
211 | Assert.That(attSo.UsesPhysics, Is.False); | ||
212 | Assert.That(attSo.IsTemporary, Is.False); | ||
208 | } | 213 | } |
209 | 214 | ||
210 | // I'm commenting this test because scene setup NEEDS InventoryService to | 215 | // I'm commenting this test because scene setup NEEDS InventoryService to |