aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-22 00:29:13 +0000
committerJustin Clark-Casey (justincc)2014-03-22 00:29:13 +0000
commita5800f479e7b784a3b1cbba51fdab0a5b872a9d2 (patch)
tree6c91b191128b24a2dd830086f704e1ad68f0389a /OpenSim/Region/Framework/Scenes/Tests
parentrename prefix of scene-inventory.<scene-name>.ProcessedFetchInventoryRequests... (diff)
downloadopensim-SC_OLD-a5800f479e7b784a3b1cbba51fdab0a5b872a9d2.zip
opensim-SC_OLD-a5800f479e7b784a3b1cbba51fdab0a5b872a9d2.tar.gz
opensim-SC_OLD-a5800f479e7b784a3b1cbba51fdab0a5b872a9d2.tar.bz2
opensim-SC_OLD-a5800f479e7b784a3b1cbba51fdab0a5b872a9d2.tar.xz
If an object has it's temporary flag unset after being set, put it back in the persistence list.
Effectively uses the patch in http://opensimulator.org/mantis/view.php?id=7060 But also adds a regression test and exposes the necessary property to allow this to work.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
index 8eb3191..6985766 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
@@ -58,6 +58,25 @@ namespace OpenSim.Region.Framework.Scenes.Tests
58 } 58 }
59 59
60 [Test] 60 [Test]
61 public void TestSetTemporary()
62 {
63 TestHelpers.InMethod();
64
65 m_scene.AddSceneObject(m_so1);
66 m_so1.ScriptSetTemporaryStatus(true);
67
68 // Is this really the correct flag?
69 Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.TemporaryOnRez));
70 Assert.That(m_so1.Backup, Is.False);
71
72 // Test setting back to non-temporary
73 m_so1.ScriptSetTemporaryStatus(false);
74
75 Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None));
76 Assert.That(m_so1.Backup, Is.True);
77 }
78
79 [Test]
61 public void TestSetPhantomSinglePrim() 80 public void TestSetPhantomSinglePrim()
62 { 81 {
63 TestHelpers.InMethod(); 82 TestHelpers.InMethod();