|
|
|
|
@ -2,14 +2,12 @@ export default {
|
|
|
|
|
props: {
|
|
|
|
|
propTag: 'hr'
|
|
|
|
|
},
|
|
|
|
|
html: '<h1></h1><h2></h2><h3></h3><hr><input><br>',
|
|
|
|
|
html: '<h1></h1><col><img><hr><input><br>',
|
|
|
|
|
ssrHtml: '<h1></h1><col><img><hr><input><br>',
|
|
|
|
|
|
|
|
|
|
test({ assert, component, target, ssrHtml }) {
|
|
|
|
|
assert.htmlEqual(target.innerHTML, '<h1></h1><h2></h2><h3></h3><hr><input><br>');
|
|
|
|
|
if (ssrHtml) {
|
|
|
|
|
assert.equal(ssrHtml, '<h1></h1>\n<h2></h2>\n<h3></h3>\n<hr>\n<input>\n<br>');
|
|
|
|
|
}
|
|
|
|
|
test({ assert, component, target }) {
|
|
|
|
|
assert.htmlEqual(target.innerHTML, '<h1></h1><col><img><hr><input><br>');
|
|
|
|
|
component.propTag = 'link';
|
|
|
|
|
assert.htmlEqual(target.innerHTML, '<h1></h1><h2></h2><h3></h3><link><input><br>');
|
|
|
|
|
assert.htmlEqual(target.innerHTML, '<h1></h1><col><img><link><input><br>');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|