Skip to content

Commit

Permalink
添加测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
leizongmin committed Dec 24, 2013
1 parent 0b237d5 commit 01953d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_xss.js
Expand Up @@ -214,6 +214,7 @@ describe('test XSS', function () {
assert.equal(xss('<a href="javascript&colonalert(/xss/)">'), '<a href="#">');
assert.equal(xss('<a href="a&NewLine;b">'), '<a href="a b">');
assert.equal(xss('<a href="a&NewLineb">'), '<a href="a b">');
assert.equal(xss('<a href="javasc&NewLine;ript&colon;alert(1)">'), '<a href="#">');
});

});

0 comments on commit 01953d3

Please sign in to comment.