diff --git a/intro.js/intro.js-tests.ts b/intro.js/intro.js-tests.ts index 0ec5938f5..2f342996e 100644 --- a/intro.js/intro.js-tests.ts +++ b/intro.js/intro.js-tests.ts @@ -1,6 +1,8 @@ /// var intro = introJs(); +var introWithElement = introJs(document.body); +var introWithQuerySelector = introJs('body'); intro.setOption('doneLabel', 'Next page'); intro.setOption('overlayOpacity', 50); @@ -53,4 +55,18 @@ intro.start() }) .oncomplete(function () { alert('Done'); - }); + }) + .onexit(function () { + alert('Exiting'); + }) + .onhintsadded(function () { + alert('Hints added'); + }) + .onhintclick(function (hintElement, item, stepId) { + element.getAttribute('class'); + }) + .onhintclose(function (stepId) { + alert('Hint close for Step ID ' + stepId); + }) + .addHints() + .clone();