From bcc2eec9227882c077f3c2c60717b563bb5130da Mon Sep 17 00:00:00 2001 From: Ashish Shubham Date: Tue, 23 May 2017 02:07:40 -0700 Subject: [PATCH] Update rangy-tests.ts --- types/rangy/rangy-tests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/rangy/rangy-tests.ts b/types/rangy/rangy-tests.ts index fac44c868c..5febe59cf0 100644 --- a/types/rangy/rangy-tests.ts +++ b/types/rangy/rangy-tests.ts @@ -94,4 +94,8 @@ function testSelection() { selection.setRanges(ranges); selection.setSingleRange(getRangyRange()); assertString(selection.toHtml()); + var node:Node = new Node(); + object = selection.saveCharacterRanges(node); + selection.restoreCharacterRanges(node, object); + assertString(selection.toHtml()); }