0
Fork 0
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:
Andy Kauffman 2016-07-07 10:20:49 -04:00
parent daec81d03f
commit f5a816be76

View file

@ -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');
});