Index: lib/src/prism/tests/languages/jade/script_feature.test |
diff --git a/lib/src/prism/tests/languages/jade/script_feature.test b/lib/src/prism/tests/languages/jade/script_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..649fbf39e73bb881aff1d31dc9f16bdcf2ded3aa |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/jade/script_feature.test |
@@ -0,0 +1,38 @@ |
+script alert(42); |
+ script(type='text/javascript') alert(42); |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["tag", [ |
+ "script" |
+ ]], |
+ ["script", [ |
+ ["function", "alert"], |
+ ["punctuation", "("], |
+ ["number", "42"], |
+ ["punctuation", ")"], |
+ ["punctuation", ";"] |
+ ]], |
+ ["tag", [ |
+ "script", |
+ ["attributes", [ |
+ ["punctuation", "("], |
+ ["attr-name", "type"], |
+ ["punctuation", "="], |
+ ["attr-value", [["string", "'text/javascript'"]]], |
+ ["punctuation", ")"] |
+ ]] |
+ ]], |
+ ["script", [ |
+ ["function", "alert"], |
+ ["punctuation", "("], |
+ ["number", "42"], |
+ ["punctuation", ")"], |
+ ["punctuation", ";"] |
+ ]] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for single-line scripts. |