-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
336 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-and-ctrl.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" ctrl="MyCtrl as c" args="foo,bar"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" ctrl="MyCtrl as c" args="foo,bar">', | ||
"suberrors" : [ | ||
"a template can not have both 'args' and 'ctrl' attributes" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args="foo,bar,#"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args="foo,bar,#">', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: foo,bar,#" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args="foo,bar,33"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args="foo,bar,33">', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: foo,bar,33" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-3.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args="foo,bar,"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args="foo,bar,">', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: foo,bar," | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-4.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args="foo;bar"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args="foo;bar">', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: foo;bar" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-5.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args>', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: [empty value]" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-args-syntax-6.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" args=""> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" args="">', | ||
"suberrors" : [ | ||
"invalid value of 'args' attribute: [empty string]" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" very#weird$Att#="xx"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" very#weird$Att#="xx">', | ||
"suberrors" : [ | ||
"invalid attribute name: unexpected character(s) found in 'very#weird$Att#'" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-ctrl-syntax-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" ctrl="this is not a good value"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id=\"id\" ctrl=\"this is not a good value\">', | ||
"suberrors" : [ | ||
"invalid value of 'ctrl' attribute: this is not a good value" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-ctrl-syntax-2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" ctrl=""> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" ctrl="">', | ||
"suberrors" : [ | ||
"invalid value of 'ctrl' attribute: [empty string]" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-ctrl-syntax-3.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="id" ctrl> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="id" ctrl>', | ||
"suberrors" : [ | ||
"invalid value of 'ctrl' attribute: [empty value]" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="test1" id="test2"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="test1" id="test2">', | ||
"suberrors" : [ | ||
"duplicated template attribute: id" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-export-module-and-export.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="test" export export-module> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="test" export export-module>', | ||
"suberrors" : [ | ||
"a template can not have both 'export' and 'export-module' attributes" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-export-module-withvalue-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="test" export-module=""> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="test" export-module="">', | ||
"suberrors" : [ | ||
"the 'export-module' attribute must not have a value" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/compiler/errsamples/template-attribs-export-module-withvalue-2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##### Template: | ||
<template id="test" export-module="bar"> | ||
test | ||
</template> | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "Invalid template declaration", | ||
"line": 1, | ||
"column": 1, | ||
"code": '<template id="test" export-module="bar">', | ||
"suberrors" : [ | ||
"the 'export-module' attribute must not have a value" | ||
] | ||
} | ||
] |
Oops, something went wrong.