assert.deepEqual(surface.getFragment(tableSelection).getAnnotations().getHashes(),[ve.dm.example.boldHash,ve.dm.example.strongHash],'Non-comparable in first cell: [B,I] ∩ [Strong] = [B,Strong]');
assert.deepEqual(surface.getFragment(tableSelection).getAnnotations(true).getHashes(),[ve.dm.example.boldHash,ve.dm.example.strongHash,ve.dm.example.italicHash],'Get all annotations');
});
QUnit.test('hasAnnotations',(assert)=>{
constdoc=ve.dm.example.createExampleDocument(),
surface=newve.dm.Surface(doc);
assert.false(surface.getLinearFragment(newve.Range(1,2)).hasAnnotations(),'Plain text has none');
assert.true(surface.getLinearFragment(newve.Range(2,3)).hasAnnotations(),'Bold text has some');