mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
23 lines
559 B
JavaScript
23 lines
559 B
JavaScript
'use strict';
|
|
describe(
|
|
'mark with acrossElements and regular expression with infinite matches',
|
|
function() {
|
|
var $ctx;
|
|
beforeEach(function(done) {
|
|
loadFixtures('across-elements/regexp/infinite.html');
|
|
|
|
$ctx = $('.across-elements-regexp-infinite');
|
|
new Mark($ctx[0]).markRegExp(/(|)/gmi, {
|
|
'acrossElements': true,
|
|
'done': done
|
|
});
|
|
});
|
|
|
|
it(
|
|
'should not mark regular expressions with infinite matches',
|
|
function() {
|
|
expect($ctx.find('mark')).toHaveLength(0);
|
|
}
|
|
);
|
|
}
|
|
);
|