UNPKG

pdfmark.js

Version:

Highlight keywords in pdfjs svg output. Based on mark.js.

27 lines (24 loc) 622 B
'use strict'; describe('mark with iframes and exclude', function() { var $ctx, $elements; beforeEach(function(done) { loadFixtures('iframes/exclude.html'); $elements = $(); $ctx = $('.iframes-exclude'); new Mark($ctx[0]).mark('lorem', { 'diacritics': false, 'separateWordSearch': false, 'iframes': true, 'exclude': [ '.ignore' ], 'each': function($m) { $elements = $elements.add($($m)); }, 'done': done }); }); it('should ignore iframes matching exclude selectors', function() { expect($elements).toHaveLength(4); }); });