devstar插件
This commit is contained in:
23
node_modules/mark.js/test/specs/across-elements/regexp/infinite.js
generated
vendored
Normal file
23
node_modules/mark.js/test/specs/across-elements/regexp/infinite.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'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);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user