mirror of
https://github.com/hanzoai/DOMPurify.git
synced 2026-09-24 16:55:05 +00:00
17 lines
352 B
JavaScript
17 lines
352 B
JavaScript
window.alert = function () {
|
|
window.xssed = true;
|
|
};
|
|
|
|
QUnit.assert.contains = function (actual, expected, message) {
|
|
const result = expected.indexOf(actual) > -1;
|
|
// Ref: https://api.qunitjs.com/assert/pushResult/
|
|
this.pushResult(
|
|
{
|
|
result: result,
|
|
actual: actual,
|
|
expected: expected,
|
|
message: message
|
|
}
|
|
);
|
|
};
|