mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
adds test of clicking the play button
This commit is contained in:
parent
baf90fd755
commit
755565019d
@ -50,4 +50,20 @@ casper.notebook_test(function () {
|
||||
this.test.assertEquals(result.text, '12\n', 'cell execute (using shift-enter)');
|
||||
this.test.assertEquals(num_cells, 2, ' ^--- adds a new cell')
|
||||
});
|
||||
|
||||
// press the "play" triangle button in the toolbar
|
||||
this.thenEvaluate(function () {
|
||||
var cell = IPython.notebook.get_cell(0);
|
||||
IPython.notebook.select(0);
|
||||
cell.clear_output();
|
||||
cell.set_text('a=13; print(a)');
|
||||
$('#run_b').click();
|
||||
});
|
||||
|
||||
this.wait_for_output(0);
|
||||
|
||||
this.then(function () {
|
||||
var result = this.get_output_cell(0);
|
||||
this.test.assertEquals(result.text, '13\n', 'cell execute (using "play" toolbar button)')
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user