Updated intro.js tests per definition updates

Added and updated tests per the latest intro.js definition updates
This commit is contained in:
Steve Mayes
2016-02-27 15:37:20 -05:00
parent b5376ef459
commit 09fb173b0b
+17 -1
View File
@@ -1,6 +1,8 @@
/// <reference path="intro.js.d.ts" />
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();