making AttachmentViewer testable

This commit is contained in:
El RIDO
2017-11-28 06:38:10 +01:00
parent 9f973edb7d
commit dac86eb363
4 changed files with 5 additions and 7 deletions

View File

@@ -1444,7 +1444,7 @@ describe('PasteViewer', function () {
'sanitizes XSS',
jsc.elements(['plaintext', 'markdown', 'syntaxhighlighting']),
'string',
// https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
// @see {@link https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet}
jsc.elements([
'<PLAINTEXT>',
'></SCRIPT>">\'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>',