mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
27 lines
622 B
JavaScript
27 lines
622 B
JavaScript
|
'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);
|
||
|
});
|
||
|
});
|