diff --git a/test/validator/samples/properties-computed-cannot-be-reserved/errors.json b/test/validator/samples/properties-computed-cannot-be-reserved/errors.json new file mode 100644 index 0000000000..39c4039743 --- /dev/null +++ b/test/validator/samples/properties-computed-cannot-be-reserved/errors.json @@ -0,0 +1,9 @@ +[{ + "message": + "Computed property name 'new' is invalid — cannot be a JavaScript reserved word", + "loc": { + "line": 9, + "column": 3 + }, + "pos": 87 +}] diff --git a/test/validator/samples/properties-computed-cannot-be-reserved/input.html b/test/validator/samples/properties-computed-cannot-be-reserved/input.html new file mode 100644 index 0000000000..06bd2bf694 --- /dev/null +++ b/test/validator/samples/properties-computed-cannot-be-reserved/input.html @@ -0,0 +1,12 @@ + diff --git a/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json b/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json index 2b6a36ecd1..ebaac56a8f 100644 --- a/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json +++ b/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json @@ -1,8 +1,8 @@ [{ - "message": "Computed property name 'hours-hyphen' is invalid — must be a valid identifier such as hours_hyphen", + "message": "Computed property name 'with-hyphen' is invalid — must be a valid identifier such as with_hyphen", "loc": { - "line": 14, + "line": 9, "column": 3 }, - "pos": 150 + "pos": 87 }] diff --git a/test/validator/samples/properties-computed-must-be-valid-function-names/input.html b/test/validator/samples/properties-computed-must-be-valid-function-names/input.html index 92da829133..1c9173f523 100644 --- a/test/validator/samples/properties-computed-must-be-valid-function-names/input.html +++ b/test/validator/samples/properties-computed-must-be-valid-function-names/input.html @@ -1,17 +1,12 @@ -
- The hour is - {{hours}} -
-