Added test case related to https://github.com/marko-js/htmljs-parser/issues/50 - Escaped placeholder not handled correctly in PARSED_TEXT_CONTENT state

This commit is contained in:
Patrick Steele-Idem 2016-12-29 13:28:56 -07:00
parent c4564b3db2
commit c5c015e2ec
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<script type="application/json">
{
"event": "${base}=${track}"
}
</script>

View File

@ -0,0 +1,5 @@
<script type="application/json">
{
"event": "\${base}=\${track}"
}
</script>

View File

@ -0,0 +1,3 @@
<script type="application/json">
{"requests":{"base":"/abc","pageview":"${base}=${ping}","event":"${base}=${track}"}}
</script>

View File

@ -0,0 +1,11 @@
var basePath='/abc';
<script type="application/json">
${JSON.stringify({
"requests": {
"base": basePath,
"pageview": "\${base}=\${ping}",
"event": "\${base}=\${track}"
}
})}
</script>