From c5c015e2ecbff3f63b87d7b735fcfd6279083d44 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Thu, 29 Dec 2016 13:28:56 -0700 Subject: [PATCH] Added test case related to https://github.com/marko-js/htmljs-parser/issues/50 - Escaped placeholder not handled correctly in PARSED_TEXT_CONTENT state --- .../render/script-escaped-placeholder/expected.html | 5 +++++ .../render/script-escaped-placeholder/template.marko | 5 +++++ .../render/script-json-stringify/expected.html | 3 +++ .../render/script-json-stringify/template.marko | 11 +++++++++++ 4 files changed, 24 insertions(+) create mode 100644 test/autotests/render/script-escaped-placeholder/expected.html create mode 100644 test/autotests/render/script-escaped-placeholder/template.marko create mode 100644 test/autotests/render/script-json-stringify/expected.html create mode 100644 test/autotests/render/script-json-stringify/template.marko diff --git a/test/autotests/render/script-escaped-placeholder/expected.html b/test/autotests/render/script-escaped-placeholder/expected.html new file mode 100644 index 000000000..81aacbee9 --- /dev/null +++ b/test/autotests/render/script-escaped-placeholder/expected.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/test/autotests/render/script-escaped-placeholder/template.marko b/test/autotests/render/script-escaped-placeholder/template.marko new file mode 100644 index 000000000..83b47046a --- /dev/null +++ b/test/autotests/render/script-escaped-placeholder/template.marko @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/test/autotests/render/script-json-stringify/expected.html b/test/autotests/render/script-json-stringify/expected.html new file mode 100644 index 000000000..cd810ad24 --- /dev/null +++ b/test/autotests/render/script-json-stringify/expected.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/test/autotests/render/script-json-stringify/template.marko b/test/autotests/render/script-json-stringify/template.marko new file mode 100644 index 000000000..7ada0f269 --- /dev/null +++ b/test/autotests/render/script-json-stringify/template.marko @@ -0,0 +1,11 @@ +var basePath='/abc'; + + \ No newline at end of file