mirror of
https://github.com/marktext/marktext.git
synced 2025-05-11 06:20:22 +08:00
22 lines
707 B
JavaScript
22 lines
707 B
JavaScript
import utils from '../utils'
|
|
|
|
describe('Cross-site Scripting Test', function () {
|
|
beforeEach(utils.beforeXss)
|
|
afterEach(utils.afterEach)
|
|
|
|
it('Load malicious document', function (done) {
|
|
setTimeout(() => {
|
|
// If a test fails, an exception is thrown.
|
|
|
|
// TODO: The process is not terminated if a test fails because the connection to Electron is lost (spectron bug?).
|
|
// I think thats not a problem as long as you kill the process.
|
|
// Message:
|
|
// chrome not reachable
|
|
// Error: Request timed out after the element was still found on the page.
|
|
// at execute(<Function>, "require") - api.js:63:26
|
|
|
|
done()
|
|
}, 3000)
|
|
})
|
|
})
|