From 7c8f2fd0f56daec0fb2beedd6066e16b91c907b7 Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 13 Dec 2014 16:03:03 -0800 Subject: [PATCH] fix widget-import-warning test wasn't updated with warning changes --- IPython/html/tests/widgets/widget_button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/html/tests/widgets/widget_button.js b/IPython/html/tests/widgets/widget_button.js index 673ad3bab..e98da48d0 100644 --- a/IPython/html/tests/widgets/widget_button.js +++ b/IPython/html/tests/widgets/widget_button.js @@ -39,7 +39,8 @@ casper.notebook_test(function () { this.wait_for_output(button_index, 1); this.then(function () { - this.test.assertEquals(this.get_output_cell(button_index, 1).text, "WARNING: The widget API is still considered experimental and \n may change by the next major release of IPython.\n", + var warning_text = this.get_output_cell(button_index, 1).text; + this.test.assertNotEquals(warning_text.indexOf('Warning'), -1, 'Importing widgets show a warning'); this.test.assertEquals(this.get_output_cell(button_index, 2).data['text/plain'], "'Clicked'", 'Button click event fires.');