mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -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 () {
|
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');
|
expect(editor.getPath(), 'to be', 'DIV>B');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue