Commit Graph

427 Commits

Author SHA1 Message Date
MinRK
dd95b1ef5f remove heading cells in v4 2014-11-01 16:41:07 -07:00
MinRK
6ca260e611 output[mime/type] -> output.data[mime/type] in javascript 2014-11-01 16:41:05 -07:00
MinRK
14cfb2efc1 s/prompt_number/execution_count in nbformat 4 2014-11-01 16:41:03 -07:00
MinRK
07079095a8 update html/js to nbformat 4 2014-11-01 16:41:02 -07:00
Min RK
1d7f8803e0 use ?download=1 to trigger download in /files/
sets `Content-Disposition: attachment...`

- master sets this unconditionally
- 2.x sets this iff file is a notebook
2014-10-31 15:45:30 -07:00
Jonathan Frederic
ba77877c18 Rebase fixes 2014-10-28 17:55:36 -07:00
Jonathan Frederic
04d0874a80 JS test fix 2014-10-28 16:49:46 -07:00
Jonathan Frederic
cb2c76999c Address some more review comments... 2014-10-28 16:49:46 -07:00
Jonathan Frederic
3cb5ac6fbb Clarified API for the create_model function,
Also added a test!
2014-10-28 16:49:46 -07:00
Jonathan Frederic
5366cef17d Fix an issue in the kernel_running function of the JS tests,
This fix allows the JS test to be ran against a remote server
with a higher than LAN latency.  This bug in our testing
framework was exposed when running `iptest js/widgets --url`
against tmpnb.
2014-10-21 16:43:30 -07:00
Thomas Kluyver
5ede5318d5 Merge pull request #6751 from jdfreder/iptestgun
Added --url option to iptest
2014-10-21 15:18:34 -07:00
Jonathan Frederic
fc3178e13e Make order of operations more explicit. 2014-10-21 14:28:28 -07:00
Jonathan Frederic
c3b1bf795e Add --url option to iptest 2014-10-20 20:29:01 -07:00
Thomas Kluyver
c39939869f Merge pull request #6653 from mattpap/fix_ansispan
Fix IPython.utils.ansispan() to ignore stray [0m
2014-10-20 09:19:00 -07:00
Mateusz Paprocki
439098a9d5 IPython.{util->utils}.fixConsole() in html/tests/base 2014-10-20 11:12:10 +02:00
Matthias Bussonnier
d269912958 Merge pull request #6110 from minrk/binarycomm
support binary buffers in comm messages
2014-10-19 11:03:24 +02:00
Matthias Bussonnier
f8fe41dd67 add test warning shadow 2014-10-17 16:57:40 +02:00
Matthias Bussonnier
7ae250bbeb Merge pull request #6693 from minrk/please-no-jsonp
set contentType='application/json'
2014-10-17 14:17:20 +02:00
MinRK
95355e6ff2 Merge pull request #6624
closes #6656
closes #6399
2014-10-16 10:18:21 -07:00
MinRK
7c2083aa60 test saving with problematic cell contents 2014-10-15 16:57:18 -07:00
Jessica B. Hamrick
8896b538b5 Add regression tests for live notebook 2014-10-15 12:46:23 -07:00
MinRK
9e425bf94b move binary msg test to services/serialize 2014-10-15 12:23:33 -07:00
MinRK
11f5775103 test binary websocket messages
only runs on slimerjs for now
2014-10-15 12:23:33 -07:00
MinRK
3de7e9bd74 test websocket-friendly binary message roundtrip
Python-side
2014-10-15 12:23:33 -07:00
Jessica B. Hamrick
37c2419c5e Rename all status_event to kernel_event 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
e5a5bdcdd3 Handle and test for failed restart in session.js 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
29e6885b60 Test for autorestart and failed autorestart 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
f2ad4fc176 Better way to wait inbetween tests 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
fe2402f99d Increase wait time between tests 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
7f8b95a661 Add status_ready.Kernel event and rename status_started to status_created 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
c43e06bbc4 Add test for kernel_dead.Session 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
42e863db8c Remove debugging statements 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
01ba501b88 Fix event tests 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
8d4c9e7f30 Add tests for events 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
b9cf034d51 Add some more kernel tests 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
befe8eb720 Update session tests 2014-10-08 11:30:29 -07:00
Jessica B. Hamrick
99f686918b Fix kernel and session tests 2014-10-08 11:30:29 -07:00
Jessica B. Hamrick
9f1574eb6c User correct check for whether kernel is running in tests 2014-10-08 11:30:29 -07:00
Mateusz Paprocki
ff5b4c6874 Test IPython.utils.fixConsole() (really ansispan()) 2014-10-08 14:15:07 +02:00
Jonathan Frederic
d2df98ce1a Fix conflict with d1305d7510cc3 2014-10-07 23:14:00 -07:00
Manuel Riel
a490488f62 remove commented-out code 2014-10-08 01:51:12 +02:00
Manuel Riel
67f2322a8c simplify bin-file test 2014-10-08 01:29:53 +02:00
Manuel Riel
0e95bd9eda remove unused import in test_files.py 2014-10-08 01:25:31 +02:00
Thomas Kluyver
95b857b679 Merge pull request #6637 from minrk/notice-python-error
Check for Python errors in js tests
2014-10-07 15:21:40 -07:00
Jonathan Frederic
60531c917f Merge pull request #6481 from jdfreder/intvalidatefix
Fix bug in bounded int/float logic.
2014-10-07 10:50:02 -07:00
MinRK
845c7b4700 Check for Python errors in js tests
When running a cell in the js tests,
this checks for any errors and treats them as a failure.

Helps avoid confusion caused by silently ignoring failures in Python code.
2014-10-06 16:04:44 -07:00
Manuel Riel
28d4444def 2 checks for python2 and python3) 2014-10-06 14:48:36 +02:00
Manuel Riel
bb8e33d70d fix bin-file test in ipython3 2014-10-06 14:25:50 +02:00
Manuel Riel
775ea55206 another shot at bin-tests on python3 2014-10-06 13:26:11 +02:00
Manuel Riel
c6d548fbeb correctly handle base64 and json, improve bin-file test 2014-10-06 12:29:33 +02:00
Manuel Riel
dc352a334b Use \xFF in bin file test 2014-10-06 01:21:34 +02:00
Manuel Riel
2268268a9d add tests for file download via ContentsManager 2014-10-06 01:00:18 +02:00
Matthias Bussonnier
0d9db64180 Merge pull request #6582 from jdfreder/symmetric_state
Symmetric widget get/set_state
2014-10-03 09:10:56 +02:00
Min RK
28edb94897 Merge pull request #6488 from jhamrick/lock-cells
Proof of concept for preventing cell deletion via metadata
2014-10-02 15:55:07 -07:00
Jessica B. Hamrick
60b18ad23e Fix ReferenceError in js tests, fixes #6542 2014-10-01 00:04:33 -07:00
Jonathan Frederic
852ec2ab69 s/_handle_receive_state/set_state in tests too 2014-09-30 15:59:26 -04:00
Jessica B. Hamrick
6f49f4b78e Add tests for notification area and widgets 2014-09-25 16:33:05 -07:00
Jessica B. Hamrick
756d4063c3 Fix tests 2014-09-25 16:32:15 -07:00
Jessica B. Hamrick
a018cb4299 Add tests for undeletable cells 2014-09-25 16:32:14 -07:00
Jonathan Frederic
aec576a5f2 Fix infinite loop typo 2014-09-24 15:48:19 -07:00
Brian E. Granger
4ec1a3b41e Merge pull request #6235 from jdfreder/addclass
Remove add/remove_class and set/get_css.
2014-09-23 16:28:50 -07:00
Jonathan Frederic
aa04d40a8d Added test 2014-09-23 08:40:43 -07:00
Jonathan Frederic
02d7039a00 Cleaned up hbox and vbox widget div styles,
removed 5px margin
2014-09-22 16:23:26 -07:00
Matthias Bussonnier
97e99d0661 Merge pull request #6412 from takluyver/sessions-rest-api-fix
Sessions rest api fix
2014-09-06 15:04:13 -07:00
MinRK
6cee444630 make default cell type configurable
- adds IPython.notebook.default_cell_type
- default is 'code' (matching IPython 2.0)
- special heuristic values include:
  - 'selected': default to selected cell (current master behavior)
  - 'above': default to cell above
  - 'below': default to cell below
2014-09-05 11:28:00 -07:00
Thomas Kluyver
4c4af25734 Fix failure message for tests 2014-09-04 15:13:59 -07:00
MinRK
58ecfc2376 catch any exception while waiting to connect
requests 2.4 changed the exception type for a failed connection
2014-08-31 21:50:16 -07:00
Jonathan Frederic
cb9014e42c Fixed rebase bugs and other bugs. 2014-08-28 11:15:35 -07:00
Jonathan Frederic
1797243f7a Fix tests 2014-08-28 11:09:55 -07:00
MinRK
fb0421107c minor fixes in dashboard tests
events and regular expressions weren't quite right, which could cause occasional test failures.
2014-08-27 13:51:49 -07:00
Brian E. Granger
4b22230896 Merge pull request #6305 from minrk/switch-kernel-close-ws
JS: close WebSockets when killing kernels
2014-08-20 17:38:46 -04:00
Jonathan Frederic
a12b302597 renamed: widget_container.js -> widget_box.js 2014-08-15 10:37:46 -07:00
Jonathan Frederic
0aca365718 Address Sylvain's comments. 2014-08-14 15:51:41 -07:00
MinRK
e3696996be JS: close WebSockets when killing kernels
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
2014-08-13 14:21:14 -07:00
Jonathan Frederic
d985ee86c6 s/Container/Box 2014-08-13 13:19:27 -07:00
Jonathan Frederic
ba3033971e Renamed *Widget to *,
depracted old names.
2014-08-08 14:56:11 -07:00
Jonathan Frederic
ba0a805404 Merge pull request #6226 from jasongrout/css-top-default
Remove $el_to_style from the widget javascript code; '' now defaults to this.$el
2014-08-04 13:46:01 -07:00
MinRK
6cce477e07 rename notebooks service to contents service
minimal functional changes, committing because tests are passing.
2014-07-31 11:57:36 -07:00
Paul Ivanov
fd53a306c4 Merge pull request #6197 from ivanov/set-text-rendered
changing text of cell should reset rendered status
2014-07-30 17:39:59 -07:00
Jonathan Frederic
083671a572 Fix js-tests for new default selector logic. 2014-07-30 12:10:56 -07:00
Jonathan Frederic
ee64b60e69 Don't screenshot in the ImageWidget test,
instead verify that the base64 makes it to the page and
assume that the browser knows how render it correctly.
2014-07-25 11:21:52 -07:00
Paul Ivanov
b67aac5aef Merge pull request #6119 from minrk/global-events
return global events from require(['base/js/events']).
2014-07-24 12:23:14 -07:00
Paul Ivanov
781702febf test: changing text of cell resets rendered status 2014-07-23 21:09:40 -07:00
Thomas Kluyver
d9850e1ab4 Merge pull request #6144 from minrk/show-js-errors
add some debugging output to js tests
2014-07-23 16:20:01 -07:00
MinRK
41e482d47a fix interrupt test revealed by new output
the shortcut test wasn’t running at all,
due to a ReferenceError.

There was no indication of this fact
because javascript is awesome like that.
2014-07-23 15:51:03 -07:00
MinRK
1f0646f893 add some debugging output to js tests
- display errors in evaluate / browser code
- capture and display console.log if a test fails (like nose)
2014-07-23 15:51:03 -07:00
MinRK
957fb42680 use global events in js tests 2014-07-23 11:06:03 -07:00
MinRK
374518c583 don’t use events !== undefined to signal page ready
it will always be defined
2014-07-23 11:05:06 -07:00
MinRK
a643de41d8 test coalesced output in js 2014-07-22 15:21:15 -07:00
Thomas Kluyver
97c24d2920 Delete session rather than killing kernel in test cleanup 2014-07-10 23:54:32 -05:00
Thomas Kluyver
6efbe46b73 Update JS for kernels and sessions APIs 2014-07-10 23:54:31 -05:00
Jonathan Frederic
2478fac032 More requirejs fixes 2014-07-10 15:47:23 -05:00
Jonathan Frederic
669db572f2 Fix some dialog keyboard_manager problems 2014-07-10 15:47:23 -05:00
Jonathan Frederic
2d7a4a7879 Some JS test fixes 2014-07-10 15:47:23 -05:00
Jonathan Frederic
63f136af2b Fixed test to reflect new Bootstrap3 toggle button behavior. 2014-06-10 17:32:17 -07:00
Jonathan Frederic
22812d36b3 Use waits instead of sleeps. 2014-06-10 17:23:21 -07:00
Jonathan Frederic
5acb525c43 Wait for keyboard help fadein and fadeout. 2014-06-10 16:36:02 -07:00
Brian E. Granger
eab07229ef Merge pull request #5617 from jdfreder/bootstrap3
Migrate from Bootstrap 2 to Bootstrap 3
2014-06-10 10:51:50 -07:00
Thomas Kluyver
82e2ea7e47 Merge pull request #5323 from jdfreder/slimerjs
Add support for Firefox JS testing
2014-06-09 15:02:14 -07:00
Jonathan Frederic
329a387f4f Fix automation errors. 2014-06-09 12:05:37 -07:00