mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Update failing test after merge
This commit is contained in:
parent
daec81d03f
commit
f5a816be76
1 changed files with 7 additions and 1 deletions
|
@ -208,7 +208,13 @@ describe('Squire RTE', function () {
|
|||
});
|
||||
|
||||
it('returns the path to the selection', function () {
|
||||
editor.insertHTML('<b>Bold Text</b>');
|
||||
var range = doc.createRange();
|
||||
range.setStart(doc.body.childNodes.item(0).childNodes.item(1), 0);
|
||||
range.setEnd(doc.body.childNodes.item(0).childNodes.item(1), 0);
|
||||
editor.setSelection(range);
|
||||
|
||||
//Manually tell it to update the path
|
||||
editor._updatePath(range);
|
||||
expect(editor.getPath(), 'to be', 'DIV>B');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue