##// END OF EJS Templates
Backport PR #5488: Added missing require and jquery from cdn....
Backport PR #5488: Added missing require and jquery from cdn. For some reason (I suppose some changes at the css level) the font size inside the input cells was fixed at 14 px... making the fonts really small in the reveal slideshows. This is really annoying... As a plus, I have also added the missing calls for require and jquery (as the full html template does). I think these fixes belong to 2.0, but I also know we are on the edge... so I hope to get it inside :wink: Cheers.

File last commit:

r15941:3ba9c75a
r16230:ba262623
Show More
interrupt.js
44 lines | 1.1 KiB | application/javascript | JavascriptLexer
Paul Ivanov
test kernel interrupt
r13289 //
// Test kernel interrupt
//
casper.notebook_test(function () {
this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
Paul Ivanov
yet another JS race condition fix...
r13463 cell.set_text(
'import time'+
'\nfor x in range(3):'+
'\n time.sleep(1)'
);
Paul Ivanov
test kernel interrupt
r13289 cell.execute();
});
Matthias BUSSONNIER
more subtle kernel indicator...
r15042 this.wait_for_busy();
Paul Ivanov
test keyboard interrupt shortcuts
r13297
// interrupt using menu item (Kernel -> Interrupt)
Paul Ivanov
test kernel interrupt
r13289 this.thenClick('li#int_kernel');
Paul Ivanov
use wait_for_output util function
r13295 this.wait_for_output(0);
Paul Ivanov
test kernel interrupt
r13289
this.then(function () {
Paul Ivanov
refactor of get_output_cell
r13299 var result = this.get_output_cell(0);
this.test.assertEquals(result.ename, 'KeyboardInterrupt', 'keyboard interrupt (mouseclick)');
Paul Ivanov
test keyboard interrupt shortcuts
r13297 });
// run cell 0 again, now interrupting using keyboard shortcut
this.thenEvaluate(function () {
cell.clear_output();
cell.execute();
});
// interrupt using Ctrl-M I keyboard shortcut
Jonathan Frederic
Final fixes?
r15941 this.then(function(){
this.trigger_keydown('i');
Paul Ivanov
test keyboard interrupt shortcuts
r13297 });
this.wait_for_output(0);
this.then(function () {
Paul Ivanov
refactor of get_output_cell
r13299 var result = this.get_output_cell(0);
this.test.assertEquals(result.ename, 'KeyboardInterrupt', 'keyboard interrupt (shortcut)');
Paul Ivanov
test kernel interrupt
r13289 });
});