Paul Ivanov
d46a7d6b75
include js tests in package_data
2013-10-23 11:04:56 -07:00
Paul Ivanov
f2e0315152
pep8 style function names
2013-10-23 11:04:56 -07:00
Paul Ivanov
0ea7d1e394
more informative message on server timeout
2013-10-23 11:03:12 -07:00
Paul Ivanov
3725218069
updated js tests README, --port= now optional
2013-10-23 11:03:12 -07:00
Paul Ivanov
5fbfc30a08
quieter notebook server output for js test suite
2013-10-23 11:03:12 -07:00
Paul Ivanov
3fdbeb5cae
use a temporary directory for js tests
2013-10-23 11:03:12 -07:00
Paul Ivanov
c6c5066162
don't try to delete notebooks
...
this method wasn't currently working, and though we should put a working
method there as a utility, it isn't strictly necessary, since the whole
directory will be deleted
2013-10-23 11:03:12 -07:00
Paul Ivanov
49770da5ea
--no-browser flag to js tests notebook server
2013-10-23 11:03:12 -07:00
Paul Ivanov
5f4c695aab
start and use notebook server for js test suite
2013-10-23 11:03:12 -07:00
Paul Ivanov
aaae8fd200
JSController working, iptest js
runs casperjs
2013-10-23 11:03:12 -07:00
Paul Ivanov
66972d69bf
added javascript section with casperjs requirement
2013-10-23 11:03:11 -07:00
Paul Ivanov
8338f9ae90
simplify prepare_controllers logic
2013-10-23 11:03:11 -07:00
Paul Ivanov
641fdc77a7
include the # of active kernels in server info
2013-10-23 11:03:11 -07:00
Paul Ivanov
031811225e
consistently get the first cell
2013-10-23 11:03:11 -07:00
Paul Ivanov
b75cd967d7
less convoluted way of grabbing output
2013-10-23 11:03:11 -07:00
Paul Ivanov
6d7758271e
make casperjs test suite pass again
2013-10-23 11:03:11 -07:00
Paul Ivanov
928e846ea8
jstest moved to new place, closes #3125
2013-10-23 11:03:11 -07:00
David Wyde
9f4e9345a3
Add CasperJS tests for merge_cell_above()
and merge_cell_below()
.
2013-10-23 11:03:11 -07:00
David Wyde
dead20b1bd
Use existing IPython method to kill kernels.
2013-10-23 11:03:11 -07:00
David Wyde
b566c71dfd
Add tests for Markdown toolbar and menubar entries.
2013-10-23 11:03:11 -07:00
David Wyde
95873c65da
Wrap CasperJS tests in a helper function to reduce boilerplate.
2013-10-23 11:03:11 -07:00
David Wyde
fce51827e0
Use keycode constants from jQuery UI and improve message in test.
2013-10-23 11:03:11 -07:00
David Wyde
6e7cd60cb5
Add a test to demonstrate errors when up/down arrow keys are
...
pressed in an empty notebook.
2013-10-23 11:03:11 -07:00
David Wyde
7f9aecc2d9
Add a README for CasperJS tests.
2013-10-23 11:03:11 -07:00
David Wyde
f5000f416e
Add CasperJS utility functions, and tests for code and
...
Markdown cell execution.
Code cell test is based on https://gist.github.com/ellisonbg/3329929 .
2013-10-23 11:03:11 -07:00
Thomas Kluyver
7570c8b00f
Merge pull request #4426 from minrk/kernel-cwd
...
set kernel cwd to notebook's directory
2013-10-23 10:40:30 -07:00
MinRK
6bc2c65c83
notebooks should always have one checkpoint
...
closes #4396
2013-10-23 10:37:49 -07:00
MinRK
3a4d719033
fix checkpoint filename
2013-10-23 10:37:08 -07:00
Thomas Kluyver
ab357f190b
Merge pull request #4393 from takluyver/tests-subproc-stream-capture
...
Capture output from subprocs during test, and display on failure
2013-10-23 10:28:16 -07:00
MinRK
922f458d6a
set kernel cwd to notebook's directory
...
closes #4424
2013-10-23 10:15:55 -07:00
MinRK
4a3978ec28
don't expose comm_id arg via new_comm
2013-10-22 20:25:04 -07:00
MinRK
b666345633
allow callbacks on status messages
2013-10-22 20:11:38 -07:00
MinRK
34efd17408
catch errors in comm callbacks
2013-10-22 19:45:39 -07:00
MinRK
938dc589dd
Add CommManager.new_comm
...
Javascript-side version for creating and connecting Comms in one call
Without a `get_ipython()`-like global handle,
Comm constructor can't do the same magic as the IPython one.
2013-10-22 19:45:39 -07:00
MinRK
0a89edc641
log exceptions in Comm handlers
2013-10-22 19:45:38 -07:00
MinRK
8bcf95404d
add unregister_target to CommManagers
2013-10-22 19:45:38 -07:00
MinRK
90f67d3bbe
add CodeCell.get_callbacks
...
for reusing default execute callbacks
2013-10-22 19:45:36 -07:00
MinRK
9e198d2bd6
attach comm_manager to kernel
2013-10-22 19:44:46 -07:00
MinRK
5c83cd3e52
move comm.js to kernel service
2013-10-22 19:44:44 -07:00
MinRK
04adce96af
add message metadata to comm and kernel.send_shell_message
2013-10-22 19:43:56 -07:00
MinRK
99680e21bd
move comm.js to base
2013-10-22 19:43:56 -07:00
MinRK
0e7f2831e4
test clear_output callback
2013-10-22 19:43:56 -07:00
MinRK
4fdc4bb3fc
get clear_output callback properly
2013-10-22 19:43:56 -07:00
MinRK
76994d2ff8
update callback structure in js commands
2013-10-22 19:43:55 -07:00
MinRK
aa388570d3
jshint on codecell
2013-10-22 19:43:55 -07:00
MinRK
7f9832fb73
add output callbacks test notebook
...
This should be converted to js tests after the testing framework has been merged.
2013-10-22 19:43:55 -07:00
MinRK
f7e6435256
only pass shell.reply callback to oinfo / complete
...
These should not have side effects, so no need to expose full callback structure.
Also, object_info method shouldn't have `_request` in its name.
2013-10-22 19:43:52 -07:00
MinRK
d99e25f245
refactor js callbacks
...
all callbacks get the whole message
2013-10-22 19:43:01 -07:00
MinRK
9206d1e87f
add utils.always_new
...
wrapper allows passing constructors as callbacks, where `new` is required.
2013-10-22 19:41:06 -07:00
MinRK
111fccc8ab
open is not an event
...
target callback receives comm and open message, not just comm.
2013-10-22 19:40:36 -07:00