aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-08-27 22:58:20 +0100
committerJustin Clark-Casey (justincc)2012-08-27 22:58:20 +0100
commit3082fdd0f6d73fa07fe2266170fcd3e5e572f2a2 (patch)
treee1112b484492209a27366d57137b06e5d1192d66 /OpenSim/Region
parentAdd VectorRenderModuleTests.TestRepeatDraw() (diff)
downloadopensim-SC-3082fdd0f6d73fa07fe2266170fcd3e5e572f2a2.zip
opensim-SC-3082fdd0f6d73fa07fe2266170fcd3e5e572f2a2.tar.gz
opensim-SC-3082fdd0f6d73fa07fe2266170fcd3e5e572f2a2.tar.bz2
opensim-SC-3082fdd0f6d73fa07fe2266170fcd3e5e572f2a2.tar.xz
Add VectorRenderModuleTests.TestRepeatDrawContainingImage()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs31
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