diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs index f9b5a59..21e1d54 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs | |||
@@ -108,5 +108,36 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests | |||
108 | 108 | ||
109 | Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID)); | 109 | Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID)); |
110 | } | 110 | } |
111 | |||
112 | [Test] | ||
113 | public void TestRepeatDrawContainingImage() | ||
114 | { | ||
115 | TestHelpers.InMethod(); | ||
116 | |||
117 | string dtText | ||
118 | = "PenColour BLACK; MoveTo 40,220; FontSize 32; Text Hello World; Image http://localhost/shouldnotexist.png"; | ||
119 | |||
120 | SceneObjectGroup so = SceneHelpers.AddSceneObject(m_scene); | ||
121 | |||
122 | m_dtm.AddDynamicTextureData( | ||
123 | m_scene.RegionInfo.RegionID, | ||
124 | so.UUID, | ||
125 | m_vrm.GetContentType(), | ||
126 | dtText, | ||
127 | "", | ||
128 | 0); | ||
129 | |||
130 | UUID firstDynamicTextureID = so.RootPart.Shape.Textures.GetFace(0).TextureID; | ||
131 | |||
132 | m_dtm.AddDynamicTextureData( | ||
133 | m_scene.RegionInfo.RegionID, | ||
134 | so.UUID, | ||
135 | m_vrm.GetContentType(), | ||
136 | dtText, | ||
137 | "", | ||
138 | 0); | ||
139 | |||
140 | Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID)); | ||
141 | } | ||
111 | } | 142 | } |
112 | } \ No newline at end of file | 143 | } \ No newline at end of file |