Add VectorRenderModule.TestRepeatSameDrawDifferentExtraParams()

integration
Justin Clark-Casey (justincc) 2012-08-27 23:03:21 +01:00
parent 3082fdd0f6
commit 4e26d039d6
1 changed files with 32 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests
} }
[Test] [Test]
public void TestRepeatDraw() public void TestRepeatSameDraw()
{ {
TestHelpers.InMethod(); TestHelpers.InMethod();
@ -110,7 +110,37 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests
} }
[Test] [Test]
public void TestRepeatDrawContainingImage() public void TestRepeatSameDrawDifferentExtraParams()
{
TestHelpers.InMethod();
string dtText = "PenColour BLACK; MoveTo 40,220; FontSize 32; Text Hello World;";
SceneObjectGroup so = SceneHelpers.AddSceneObject(m_scene);
m_dtm.AddDynamicTextureData(
m_scene.RegionInfo.RegionID,
so.UUID,
m_vrm.GetContentType(),
dtText,
"",
0);
UUID firstDynamicTextureID = so.RootPart.Shape.Textures.GetFace(0).TextureID;
m_dtm.AddDynamicTextureData(
m_scene.RegionInfo.RegionID,
so.UUID,
m_vrm.GetContentType(),
dtText,
"alpha:250",
0);
Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID));
}
[Test]
public void TestRepeatSameDrawContainingImage()
{ {
TestHelpers.InMethod(); TestHelpers.InMethod();