Skip to content

Commit

Permalink
Cover test typing urls with - character
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopol06 authored and azotova committed Jan 7, 2017
1 parent 3b87a93 commit a034462
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/plugins/test/autolink.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@
keyCode: KEY_SPACE
});

testLink.call(this, {
expected: '<p>link <a href="http://www.alloy-editor.com">http://www.alloy-editor.com</a></p>',
html: '<p>link http://www.alloy-editor.com { }</p>',
keyCode: KEY_SPACE
});

testLink.call(this, {
expected: '<p>invalid link ww.liferay.com</p>',
html: '<p>invalid link ww.liferay.com { }</p>',
Expand All @@ -192,6 +198,8 @@
html: '<p>invalid link liferay.com { }</p>',
keyCode: KEY_SPACE
});


});

it('should create a link at the end of the content when pressing SPACE', function() {
Expand Down

0 comments on commit a034462

Please sign in to comment.