failing tests for #637

pull/803/head
Rich Harris 7 years ago
parent 835a48bec5
commit a197c18523

@ -0,0 +1,10 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(!span.previousSibling);
}
};

@ -0,0 +1 @@
<div>{{{raw}}}{{#if maybe}}after{{/if}}</div>

@ -0,0 +1,11 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(!span.previousSibling);
assert.equal(!span.nextSibling);
}
};

@ -0,0 +1,10 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(!span.nextSibling);
}
};

@ -0,0 +1 @@
<div>{{#if maybe}}after{{/if}}{{{raw}}}</div>

@ -0,0 +1,11 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(span.previousSibling.nodeName, 'BR');
assert.equal(span.nextSibling.nodeName, 'BR');
}
};

@ -0,0 +1,10 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(span.previousSibling.nodeName, 'BR');
}
};

@ -0,0 +1 @@
before<br>{{{raw}}}{{#if maybe}}after{{/if}}

@ -0,0 +1,10 @@
export default {
data: {
raw: `<span>foo</span>`
},
test ( assert, component, target ) {
const span = target.querySelector('span');
assert.equal(span.previousSibling.nodeName, 'BR');
}
};

@ -0,0 +1 @@
before<br>{{{raw}}}{{#if maybe}}after{{/if}}
Loading…
Cancel
Save