blob: 3359c7791fc89f064439ce37c1f10b033a87a780 (
plain) (
tree)
|
|
package dotty.tools
package dottydoc
package staticsite
import org.junit.Test
import org.junit.Assert._
class TemplateErrorTests extends DottyDocTest with SourceFileOps {
@Test def unclosedTag: Unit = {
htmlPage(
"""|Yo dawg:
|{% include "stuff"
|I heard you like to include stuff""".stripMargin
).html
}
@Test def missingEndif: Unit = {
htmlPage(
"""|{% if someStuff %}
|Dude
|""".stripMargin
).html
}
@Test def nonExistingTag: Unit = {
htmlPage(
"""|{% someStuff 'ofDude' %}
|Dude
|""".stripMargin
).html
}
}
|