From e83d490a8986092968ea3874b3227fcc443643dd Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 29 Jun 2016 11:49:26 +0100 Subject: [PATCH] Fix silly Javascript --- notebook/tests/base/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notebook/tests/base/utils.js b/notebook/tests/base/utils.js index 20f8d1c91..0038e58cd 100644 --- a/notebook/tests/base/utils.js +++ b/notebook/tests/base/utils.js @@ -40,11 +40,12 @@ casper.notebook_test(function () { {input: "\b456", result: "\b456"} ]; + var that = this; overwriting_test_cases.forEach(function(testcase){ - var result = this.evaluate(function (input) { + var result = that.evaluate(function (input) { return IPython.utils.fixOverwrittenChars(input); }, testcase.input); - this.test.assertEquals(result, testcase.result, "Overwriting characters processed") + that.test.assertEquals(result, testcase.result, "Overwriting characters processed"); }); // Test load_extensions