Updated tests to test type union in content

This commit is contained in:
VorobeY1326
2016-05-20 20:26:56 +05:00
parent ccb835b2b4
commit da38d0569a
@@ -2,7 +2,7 @@
// Type definition tests for jQuery Tooltipster 3.0.5
// Project: https://github.com/iamceege/tooltipster
// Definitions by: Patrick Magee <https://github.com/pjmagee/>
// Definitions by: Patrick Magee <https://github.com/pjmagee/>, Dmitry Pesterev <https://github.com/VorobeY1326/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Tests taken from the getting started section of the Tooltipster website
@@ -13,6 +13,10 @@ $(document).ready(function () {
$('#my-tooltip').tooltipster({
content: $('<span><img src="my-image.png" /> <strong>This text is in bold case !</strong></span>')
});
$('#my-tooltip').tooltipster({
content: 'string test'
});
});
@@ -191,4 +195,4 @@ $(document).ready(function () {
});
});
$('#my-special-tooltip').tooltipster('content', 'My new content');
$('#my-special-tooltip').tooltipster('content', 'My new content');