aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-08-27 22:58:20 +0100
committerJustin Clark-Casey (justincc)2012-08-31 16:29:16 +0100
commit9395f12584ba9a3798a71d270dd57b4a302399b7 (patch)
tree712eb29793bf82d845a060b6fe7beb0cb3c39260
parentAdd VectorRenderModuleTests.TestRepeatDraw() (diff)
downloadopensim-SC_OLD-9395f12584ba9a3798a71d270dd57b4a302399b7.zip
opensim-SC_OLD-9395f12584ba9a3798a71d270dd57b4a302399b7.tar.gz
opensim-SC_OLD-9395f12584ba9a3798a71d270dd57b4a302399b7.tar.bz2
opensim-SC_OLD-9395f12584ba9a3798a71d270dd57b4a302399b7.tar.xz
Add VectorRenderModuleTests.TestRepeatDrawContainingImage()
-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