Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caa31e3

Browse files
committed
Merge pull request #7211 from minrk/warning-test
fix widget-import-warning test
2 parents 9786eb0 + 573f284 commit caa31e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/html/tests/widgets/widget_button.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ casper.notebook_test(function () {
3939
this.wait_for_output(button_index, 1);
4040

4141
this.then(function () {
42-
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",
42+
var warning_text = this.get_output_cell(button_index, 1).text;
43+
this.test.assertNotEquals(warning_text.indexOf('Warning'), -1,
4344
'Importing widgets show a warning');
4445
this.test.assertEquals(this.get_output_cell(button_index, 2).data['text/plain'], "'Clicked'",
4546
'Button click event fires.');

0 commit comments

Comments
 (0)