diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs index 21e1d54..180ea9f 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests | |||
80 | } | 80 | } |
81 | 81 | ||
82 | [Test] | 82 | [Test] |
83 | public void TestRepeatDraw() | 83 | public void TestRepeatSameDraw() |
84 | { | 84 | { |
85 | TestHelpers.InMethod(); | 85 | TestHelpers.InMethod(); |
86 | 86 | ||
@@ -110,7 +110,37 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests | |||
110 | } | 110 | } |
111 | 111 | ||
112 | [Test] | 112 | [Test] |
113 | public void TestRepeatDrawContainingImage() | 113 | public void TestRepeatSameDrawDifferentExtraParams() |
114 | { | ||
115 | TestHelpers.InMethod(); | ||
116 | |||
117 | string dtText = "PenColour BLACK; MoveTo 40,220; FontSize 32; Text Hello World;"; | ||
118 | |||
119 | SceneObjectGroup so = SceneHelpers.AddSceneObject(m_scene); | ||
120 | |||
121 | m_dtm.AddDynamicTextureData( | ||
122 | m_scene.RegionInfo.RegionID, | ||
123 | so.UUID, | ||
124 | m_vrm.GetContentType(), | ||
125 | dtText, | ||
126 | "", | ||
127 | 0); | ||
128 | |||
129 | UUID firstDynamicTextureID = so.RootPart.Shape.Textures.GetFace(0).TextureID; | ||
130 | |||
131 | m_dtm.AddDynamicTextureData( | ||
132 | m_scene.RegionInfo.RegionID, | ||
133 | so.UUID, | ||
134 | m_vrm.GetContentType(), | ||
135 | dtText, | ||
136 | "alpha:250", | ||
137 | 0); | ||
138 | |||
139 | Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID)); | ||
140 | } | ||
141 | |||
142 | [Test] | ||
143 | public void TestRepeatSameDrawContainingImage() | ||
114 | { | 144 | { |
115 | TestHelpers.InMethod(); | 145 | TestHelpers.InMethod(); |
116 | 146 | ||