mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added test for autocomplete info added to tag and attr
This commit is contained in:
parent
49b86ffad1
commit
847b2b4098
1
test/autotests/render/autocomplete/expected.html
Normal file
1
test/autotests/render/autocomplete/expected.html
Normal file
@ -0,0 +1 @@
|
||||
Hello Frank!
|
||||
3
test/autotests/render/autocomplete/marko.json
Normal file
3
test/autotests/render/autocomplete/marko.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"tags-dir": "./tags"
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"renderer": "./renderer.js",
|
||||
"@name": "string",
|
||||
"@foo": {
|
||||
"type": "number",
|
||||
"autocomplete": [
|
||||
{
|
||||
"snippet": "foo=abc"
|
||||
},
|
||||
{
|
||||
"snippet": "foo=def"
|
||||
}
|
||||
]
|
||||
},
|
||||
"autocomplete": [
|
||||
{
|
||||
"displayText": "test-hello foo=${1:bar}",
|
||||
"snippet": "test-hello foo=$1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
exports.render = function(input, out) {
|
||||
out.write('Hello ' + input.name + '!');
|
||||
};
|
||||
1
test/autotests/render/autocomplete/template.marko
Normal file
1
test/autotests/render/autocomplete/template.marko
Normal file
@ -0,0 +1 @@
|
||||
<test-hello name="Frank"></test-hello>
|
||||
1
test/autotests/render/autocomplete/test.js
Normal file
1
test/autotests/render/autocomplete/test.js
Normal file
@ -0,0 +1 @@
|
||||
exports.templateData = {};
|
||||
Loading…
x
Reference in New Issue
Block a user