From 09fb173b0b90748278010c084c85f2866c4edd91 Mon Sep 17 00:00:00 2001 From: Steve Mayes Date: Sat, 27 Feb 2016 15:37:20 -0500 Subject: [PATCH] Updated intro.js tests per definition updates Added and updated tests per the latest intro.js definition updates --- intro.js/intro.js-tests.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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();