Last active
December 22, 2015 01:08
-
-
Save ipeychev/6393994 to your computer and use it in GitHub Desktop.
Test USE after instantiation in ContentEditable (YUI Editor)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'test use after instantiation': function () { | |
editor.destroy(); | |
var ce = new Y.Plugin.ContentEditable({ | |
container: '#editor', | |
designMode: true, | |
content: 'This is a test.' | |
}); | |
ce.render(); | |
this.wait(function() { | |
ce.use('paginator'); | |
this.wait(function () { | |
var inst = ce.getInstance(); | |
Y.Assert.isInstanceOf(YUI, inst, 'Internal instance not created'); | |
Y.Assert.isObject(inst.Paginator, 'Paginator Not loaded inside the frame'); | |
}, 1500); | |
}, | |
1500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment