Wait for page load during test

This commit is contained in:
krzystof 2015-10-30 12:58:31 +00:00
parent b76a53a1af
commit 058cd82df0

View File

@ -44,6 +44,7 @@ var packageName; // there seems to be no official way of finding out the name o
var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip'];
document.addEventListener('DOMContentLoaded', function() {
// test plugins
plugins.forEach(function (plugin) {
Tinytest.add('Plugin - ' + plugin, function (test) {
@ -101,3 +102,5 @@ Tinytest.addAsync('Visual check - Material Design', function (test, done) {
});
});
});