From 4e93079fe3e3c6134cc28c4323efdd8cb4bfb29c Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Sat, 11 Jul 2015 11:36:33 -0500 Subject: [PATCH] Add test :pen: --- notebook/tests/base/utils.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/notebook/tests/base/utils.js b/notebook/tests/base/utils.js index fe5c878fe..7e7fdbfba 100644 --- a/notebook/tests/base/utils.js +++ b/notebook/tests/base/utils.js @@ -20,4 +20,16 @@ casper.notebook_test(function () { }, input); 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; }); + require(['base/js/utils'], function(utils) { + utils.load_extensions('a', 'b', 'c'); + }); + }); + + this.waitFor(function() { + return this.evaluate(function() { return window.a && window.c; }); + }); });