first-commit
Some checks failed
CI Pipeline / build (push) Failing after 3m23s

This commit is contained in:
2025-08-27 14:05:33 +08:00
commit 9e1b8bdc9d
5159 changed files with 1081326 additions and 0 deletions

29
node_modules/mark.js/test/specs/iframes/nested.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
'use strict';
describe('mark in nested iframes', function() {
var $ctx, $elements, errCall;
beforeEach(function(done) {
loadFixtures('iframes/nested.html');
$elements = $();
$ctx = $('.iframes-nested');
errCall = 0;
try {
new Mark($ctx[0]).mark('lorem', {
'diacritics': false,
'separateWordSearch': false,
'iframes': true,
'each': function($m) {
$elements = $elements.add($($m));
},
'done': done
});
} catch (e) {
errCall++;
}
}, 30000); // 30 sec timeout
it('should wrap matches inside iframes recursively', function() {
expect(errCall).toBe(0);
expect($elements).toHaveLength(12);
});
});