mirror of
https://github.com/hanzoai/DOMPurify.git
synced 2026-10-30 14:45:59 +00:00
* fix: attempting to fix an issue with nodeName checks on happy-dom * test: added happy-dom tests but just so we have them, too broken still * fix: implemented better handling of Trusted Type policy wipes via config * fix: further hardened the TT-related attack surface and added tests * fix: hardened IN_PLACE a bit further against exotic elements test: added test-coverage for IN_PLACE and DOM clobbering
25 lines
480 B
JavaScript
25 lines
480 B
JavaScript
/* jshint node: true, esnext: true */
|
|
/* global QUnit */
|
|
'use strict';
|
|
|
|
global.QUnit = require('qunit');
|
|
|
|
const qunitTap = require('qunit-tap');
|
|
const argument = process.argv[2];
|
|
|
|
qunitTap(QUnit, (line) => {
|
|
if (/^not ok/.test(line)) {
|
|
process.exitCode = 1;
|
|
return console.log('\n', line);
|
|
}
|
|
|
|
if (argument === '--dot') {
|
|
return process.stdout.write('.');
|
|
}
|
|
|
|
console.log(line);
|
|
});
|
|
|
|
const startQUnit = require('./happydom-node');
|
|
startQUnit().then(() => {});
|