aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-08 23:20:27 +0100
committerJustin Clark-Casey (justincc)2012-05-08 23:20:27 +0100
commit6406d5a5b9c1c4ef261254e7d4446603b496d1fd (patch)
treedde37d6079f7c1679985f02add6fd6cf52410b00 /OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
parentInstead of constantly looking up unchanging self item in script code, pass in... (diff)
downloadopensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.zip
opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.gz
opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.bz2
opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.xz
refactor: Eliminate local id parameter from api initialize.
This is always available from m_host.LocalId
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
index f480e1d..c73e22f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiInventoryTests.cs
@@ -88,11 +88,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
88 88
89 // Create an object embedded inside the first 89 // Create an object embedded inside the first
90 UUID itemId = TestHelpers.ParseTail(0x20); 90 UUID itemId = TestHelpers.ParseTail(0x20);
91 TaskInventoryItem item 91 TaskInventoryHelpers.AddSceneObject(m_scene, so1.RootPart, inventoryItemName, itemId, userId);
92 = TaskInventoryHelpers.AddSceneObject(m_scene, so1.RootPart, inventoryItemName, itemId, userId);
93 92
94 LSL_Api api = new LSL_Api(); 93 LSL_Api api = new LSL_Api();
95 api.Initialize(m_engine, so1.RootPart, so1.RootPart.LocalId, null); 94 api.Initialize(m_engine, so1.RootPart, null);
96 95
97 // Create a second object 96 // Create a second object
98 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, userId, "so2", 0x100); 97 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, userId, "so2", 0x100);
@@ -125,7 +124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
125 SceneObjectGroup so1 = SceneHelpers.CreateSceneObject(1, user1Id, "so1", 0x10); 124 SceneObjectGroup so1 = SceneHelpers.CreateSceneObject(1, user1Id, "so1", 0x10);
126 m_scene.AddSceneObject(so1); 125 m_scene.AddSceneObject(so1);
127 LSL_Api api = new LSL_Api(); 126 LSL_Api api = new LSL_Api();
128 api.Initialize(m_engine, so1.RootPart, so1.RootPart.LocalId, null); 127 api.Initialize(m_engine, so1.RootPart, null);
129 128
130 // Create an object embedded inside the first 129 // Create an object embedded inside the first
131 UUID itemId = TestHelpers.ParseTail(0x20); 130 UUID itemId = TestHelpers.ParseTail(0x20);
@@ -135,7 +134,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
135 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, user2Id, "so2", 0x100); 134 SceneObjectGroup so2 = SceneHelpers.CreateSceneObject(1, user2Id, "so2", 0x100);
136 m_scene.AddSceneObject(so2); 135 m_scene.AddSceneObject(so2);
137 LSL_Api api2 = new LSL_Api(); 136 LSL_Api api2 = new LSL_Api();
138 api2.Initialize(m_engine, so2.RootPart, so2.RootPart.LocalId, null); 137 api2.Initialize(m_engine, so2.RootPart, null);
139 138
140 // *** Firstly, we test where llAllowInventoryDrop() has not been called. *** 139 // *** Firstly, we test where llAllowInventoryDrop() has not been called. ***
141 api.llGiveInventory(so2.UUID.ToString(), inventoryItemName); 140 api.llGiveInventory(so2.UUID.ToString(), inventoryItemName);