diff --git a/test/parser/samples/attribute-style-directive-shorthand.solo/input.svelte b/test/parser/samples/attribute-style-directive-shorthand.solo/input.svelte new file mode 100644 index 0000000000..3e2c66f218 --- /dev/null +++ b/test/parser/samples/attribute-style-directive-shorthand.solo/input.svelte @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/test/parser/samples/attribute-style-directive-shorthand.solo/output.json b/test/parser/samples/attribute-style-directive-shorthand.solo/output.json new file mode 100644 index 0000000000..d4e81b6e4b --- /dev/null +++ b/test/parser/samples/attribute-style-directive-shorthand.solo/output.json @@ -0,0 +1,31 @@ +{ + "html": { + "start": 0, + "end": 23, + "type": "Fragment", + "children": [ + { + "start": 0, + "end": 23, + "type": "Element", + "name": "div", + "attributes": [ + { + "start": 5, + "end": 16, + "type": "Style", + "name": "color", + "modifiers": [], + "expression": { + "start": 11, + "end": 16, + "name": "color", + "type": "Identifier" + } + } + ], + "children": [] + } + ] + } +} diff --git a/test/parser/samples/attribute-style-directive-string.solo/input.svelte b/test/parser/samples/attribute-style-directive-string.solo/input.svelte new file mode 100644 index 0000000000..b2eb6bfef8 --- /dev/null +++ b/test/parser/samples/attribute-style-directive-string.solo/input.svelte @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/parser/samples/attribute-style-directive-string.solo/output.json b/test/parser/samples/attribute-style-directive-string.solo/output.json new file mode 100644 index 0000000000..2e5e678e93 --- /dev/null +++ b/test/parser/samples/attribute-style-directive-string.solo/output.json @@ -0,0 +1,32 @@ +{ + "html": { + "start": 0, + "end": 29, + "type": "Fragment", + "children": [ + { + "start": 0, + "end": 29, + "type": "Element", + "name": "div", + "attributes": [ + { + "start": 5, + "end": 22, + "type": "Style", + "name": "color", + "modifiers": [], + "expression": { + "end": 22, + "name": "color", + "start": 11, + "type": "Identifier" + }, + "text": "red" + } + ], + "children": [] + } + ] + } +}