Allow following <summary> elements

This commit is contained in:
Magnus Bergmark 2018-07-16 13:04:26 +02:00
parent 84a9655bb3
commit b45ffea6a4
No known key found for this signature in database
GPG key ID: DB2D6BB84D8E0309
3 changed files with 14 additions and 3 deletions

View file

@ -8,5 +8,10 @@
<div id='editable_div_1' contenteditable>link</div>
<div id='editable_div_2' contenteditable='true'>link</div>
<div id='x' contenteditable='false'>link</div>
<details>
<summary id='summary_1'>summary link</summary>
Some details
<a href='#'>not visible</a>
</details>
</body>
</html>

View file

@ -11,10 +11,15 @@ describe('FollowComponent', () => {
window,
{ width: window.innerWidth, height: window.innerHeight },
{ x: 0, y: 0 });
expect(targets).to.have.lengthOf(3);
expect(targets).to.have.lengthOf(4);
let ids = Array.prototype.map.call(targets, (e) => e.id);
expect(ids).to.include.members(['visible_a', 'editable_div_1', 'editable_div_2']);
expect(ids).to.include.members([
'visible_a',
'editable_div_1',
'editable_div_2',
'summary_1',
]);
});
});
});