Preserve attributes order for element node (#10958)

* Preserve attributes order for element node

* Add CHANGELOG

* Add ...arguments in the test

* Apply fisker suggestions

* Simplify further
This commit is contained in:
Cyrille David authored and GitHub committed 2021-06-04 13:54:02 +03:00
1 parent c3c300dd8f
commit 3cd28ca80d
4 files changed
+111 -14

No files matched your search

@@ -131,6 +131,41 @@ weirdly formatted
================================================================================
`;
exports[`order.hbs format 1`] = `
====================================options=====================================
parsers: ["glimmer"]
printWidth: 80
| printWidth
=====================================input======================================
<MyComponent
{{! this is a comment for arg 1}}
@arg1="hello"
{{on "clik" this.modify}}
@arg2="hello"
{{! this is a comment for arg 3}}
@arg3="hello"
@arg4="hello"
{{! this is a comment for arg 5}}
@arg5="hello"
...arguments
/>
=====================================output=====================================
<MyComponent
{{! this is a comment for arg 1}}
@arg1="hello"
{{on "clik" this.modify}}
@arg2="hello"
{{! this is a comment for arg 3}}
@arg3="hello"
@arg4="hello"
{{! this is a comment for arg 5}}
@arg5="hello"
...arguments
/>
================================================================================
`;
exports[`quotes.hbs format 1`] = `
====================================options=====================================
parsers: ["glimmer"]
@@ -0,0 +1,12 @@
<MyComponent
{{! this is a comment for arg 1}}
@arg1="hello"
{{on "clik" this.modify}}
@arg2="hello"
{{! this is a comment for arg 3}}
@arg3="hello"
@arg4="hello"
{{! this is a comment for arg 5}}
@arg5="hello"
...arguments
/>