From 7dfa8fbe792cd5c65a6c11bb4236d45a489ff8b1 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Tue, 8 Apr 2014 16:37:38 -0700 Subject: [PATCH] Some cleanup --- IPython/html/tests/notebook/dualmode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPython/html/tests/notebook/dualmode.js b/IPython/html/tests/notebook/dualmode.js index c540cfef4..8d232a11c 100644 --- a/IPython/html/tests/notebook/dualmode.js +++ b/IPython/html/tests/notebook/dualmode.js @@ -15,8 +15,13 @@ casper.notebook_test(function () { this.execute_cell_then(index); this.then(function () { + // When running in xvfb, the Slimer window doesn't always have focus + // immediately. By clicking on a new element on the page we ccan force + // it to gain focus. this.click_cell_editor(1); this.click_cell_editor(0); + + this.validate_notebook_state('initial state', 'edit', 0); this.trigger_keydown('esc'); this.validate_notebook_state('esc', 'command', 0); this.trigger_keydown('down');