|
|
|
|
@ -22,14 +22,18 @@ casper.notebook_test(function () {
|
|
|
|
|
this.test.assertEquals(result, output, "IPython.utils.fixConsole() handles [0m correctly");
|
|
|
|
|
|
|
|
|
|
this.thenEvaluate(function() {
|
|
|
|
|
define('a', [], function() { window.a = true; });
|
|
|
|
|
define('c', [], function() { window.c = true; });
|
|
|
|
|
define('nbextensions/a', [], function() { window.a = true; });
|
|
|
|
|
define('nbextensions/c', [], function() { window.c = true; });
|
|
|
|
|
require(['base/js/utils'], function(utils) {
|
|
|
|
|
utils.load_extensions('a', 'b', 'c');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.waitFor(function() {
|
|
|
|
|
return this.evaluate(function() { return window.a && window.c; });
|
|
|
|
|
}).then(function() {
|
|
|
|
|
this.waitFor(function() {
|
|
|
|
|
return this.evaluate(function() { return window.a; });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.waitFor(function() {
|
|
|
|
|
return this.evaluate(function() { return window.a; });
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|