diff --git a/test/qtismtest/runtime/rendering/markup/goldilocks/GoldilocksRenderingEngineTest.php b/test/qtismtest/runtime/rendering/markup/goldilocks/GoldilocksRenderingEngineTest.php index bbcde5d19..068e6c896 100644 --- a/test/qtismtest/runtime/rendering/markup/goldilocks/GoldilocksRenderingEngineTest.php +++ b/test/qtismtest/runtime/rendering/markup/goldilocks/GoldilocksRenderingEngineTest.php @@ -258,6 +258,15 @@ public function testRenderingProvider() GoldilocksRenderingEngine::STYLESHEET_INLINE, GoldilocksRenderingEngine::CSSCLASS_CONCRETE ), + // mediaInteraction-2 + array( + self::samplesDir() . 'custom/items/media_image.xml', + self::samplesDir() . 'rendering/goldilocks/rendered/mediaInteraction-2.html', + GoldilocksRenderingEngine::CONTEXT_STATIC, + GoldilocksRenderingEngine::XMLBASE_IGNORE, + GoldilocksRenderingEngine::STYLESHEET_INLINE, + GoldilocksRenderingEngine::CSSCLASS_CONCRETE + ), ); } @@ -277,10 +286,10 @@ public function testRenderingProvider() $engine->setCssClassPolicy($cssClassPolicy); $doc = new XmlDocument(); - $doc->load(self::samplesDir() . 'custom/items/media_video.xml'); + $doc->load(self::samplesDir() . 'custom/items/media_image.xml'); $rendered = $engine->render($doc->getDocumentComponent()); $strRendered = $rendered->saveXML($rendered->documentElement); - file_put_contents(self::samplesDir() . 'rendering/goldilocks/rendered/mediaInteraction-1.html', $strRendered . "\n"); + file_put_contents(self::samplesDir() . 'rendering/goldilocks/rendered/mediaInteraction-2.html', $strRendered . "\n"); }*/ } diff --git a/test/samples/custom/items/media_image.xml b/test/samples/custom/items/media_image.xml new file mode 100644 index 000000000..8826a3a2c --- /dev/null +++ b/test/samples/custom/items/media_image.xml @@ -0,0 +1,13 @@ + + + + +

A Media Interaction with some images.

+ + + + + diff --git a/test/samples/rendering/goldilocks/rendered/mediaInteraction-2.html b/test/samples/rendering/goldilocks/rendered/mediaInteraction-2.html new file mode 100644 index 000000000..e44951680 --- /dev/null +++ b/test/samples/rendering/goldilocks/rendered/mediaInteraction-2.html @@ -0,0 +1 @@ +

A Media Interaction with some images.