Commit Graph

416 Commits

Author SHA1 Message Date
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
Jonathan Frederic
d88daf1bb7 Ran jdfreder/bootstrap2to3 2014-06-09 12:05:37 -07:00
jon
19cf386a20 Address comments 2014-06-06 11:12:46 -07:00
Jonathan Frederic
55cf33605f Fixed typo in util.js,
resulted from moving is_cell_rendered into util.js
2014-06-04 13:15:55 -07:00
Jonathan Frederic
f6e7312b5b Add slimerjs flag to test engine. 2014-06-04 13:12:20 -07:00
Jonathan Frederic
edbaff8400 Moved is_cell_rendered into base 2014-06-04 13:12:20 -07:00
Jonathan Frederic
359d7342d2 Make a nice assert function for properly testing locale specific colors. 2014-06-04 13:12:20 -07:00
Jonathan Frederic
7dfa8fbe79 Some cleanup 2014-06-04 13:12:20 -07:00
Jonathan Frederic
04c66666e9 Fix for xvfb SlimerJS environment. 2014-06-04 13:12:20 -07:00
Jonathan Frederic
f23f970e4c Make int widget tests play nicely with slimer 2014-06-04 12:10:29 -07:00
Jonathan Frederic
fb6bb02b26 Make notebook tests play nicely with SlimerJS
- notebook/dualmode_markdown.js
- notebook/safe_append_output.js
2014-06-04 12:10:29 -07:00
Jonathan Frederic
85e1dafe6c Fix isolated svg color tests so 'rgb()' colors are accepted 2014-06-04 12:10:29 -07:00
Jonathan Frederic
578e3c562a Fixed image test for slimerjs 2014-06-04 12:10:29 -07:00
Jonathan Frederic
99a0013525 Adde slimerjs support to JS tests
This commit contains 16 more, squashed commits:

Added slimerjs flag

Fixed some bugs with flag code

Figured out how to add arg correctly

Cleanup

Improvements to the test framework for FF

Log to see if slimmer is actually running

Added print in controller to debug

Added full logging to casperjs

Remove the special logging logic since it was caussing a failure

remove notebook.dirty = false line in favor of
overwritting onbeforeunload.

Capture output for slimerjs

Fixed iptestcontroller rebase issues

Fixed rebase issues.

Wait for notebook to load completely before testing

Fixed stdout capture for slimerjs tests.

Clean-up comments in util.js

Added slimerjs to Travis

Fixed indent .travis.yml

Comment out slimerjslauncher env var.

Removed zmq flag which doesn't work there anyways,
it was added by me in a recent commit

Fixed travis yaml,

broken because of rebase
2014-06-04 12:10:29 -07:00
Jonathan Frederic
f6da79e1e1 Update JS markdown tests. 2014-06-04 10:35:58 -07:00
Paul Ivanov
9631028c1e add tests for cell_type preserving insertion 2014-05-20 18:53:32 -07:00
MinRK
378223e791 fix safe_append_output test 2014-05-06 22:41:24 -07:00
MinRK
de0b7f140c move pyout/execute_result and pyerr/error transforms to to/fromJSON
like the mime-type maps
2014-05-06 22:41:24 -07:00
MinRK
38c76aa913 pyout -> execute_result
nbformat and nbconvert are not affected
2014-05-06 22:39:01 -07:00
MinRK
f530562929 wait until dead *before* cleaning up the temp dir 2014-05-02 11:00:39 -07:00
Jessica B. Hamrick
2ce77e945f Add javascript tests for placeholder feature 2014-04-17 16:51:02 -04:00
Thomas Kluyver
982aab67ba Merge pull request #5290 from jdfreder/dual_tests
Add dual mode JS tests
2014-03-27 15:03:14 -07:00
Min RK
b294bf7059 Merge pull request #5404 from jdfreder/accordion
Fix broken accordion widget
2014-03-24 18:08:17 -07:00
Jonathan Frederic
db2e16f2e1 Added a test 2014-03-24 17:00:43 -07:00
Jonathan Frederic
e235b47472 Make test name match actually file name 2014-03-24 15:32:38 -07:00
Jonathan Frederic
744f057cab get_text() before returning results 2014-03-20 16:22:54 -07:00
Jonathan Frederic
af03114ef6 s/set_cell_text/set_cells_text 2014-03-20 16:15:24 -07:00
Jonathan Frederic
42fa583172 Fix split shortcut 2014-03-20 16:12:42 -07:00
Jonathan Frederic
b80e11d3ce Plus to minus shortcuts rebase fixes 2014-03-20 16:11:02 -07:00
Jonathan Frederic
9c6d904f71 Set cursor pos in edit mode before attempting to jump cells. 2014-03-20 16:11:02 -07:00
Jonathan Frederic
ca71afc5ea Note to self 2014-03-20 16:11:02 -07:00
Jonathan Frederic
1754e3291a Call trigger_keydown in merge_cells_api test 2014-03-20 16:11:01 -07:00
Jonathan Frederic
7c6c0b22b8 Pythonize me captin'
Made the method comments more pythonic by moving them
within the method definitions.
2014-03-20 16:11:01 -07:00
Jonathan Frederic
baa28a0b81 Final fixes? 2014-03-20 16:11:01 -07:00
Jonathan Frederic
ae2b0800cf Partial fix of problems b/c keydown move 2014-03-20 16:11:01 -07:00
Jonathan Frederic
147f35d899 demsemicolons 2014-03-20 16:11:01 -07:00
Jonathan Frederic
a8783c45cb Add comments 2014-03-20 16:11:01 -07:00
Jonathan Frederic
1b46a777fb Removed trigger keydown from keyboard.js,
also added a bunch of missing semicolons (jshint)
2014-03-20 16:11:01 -07:00
Jonathan Frederic
1f4db77aec Cleaned up test names and locations. 2014-03-20 16:11:01 -07:00
Jonathan Frederic
0262b724fc Move validate notebook state into utils 2014-03-20 16:11:01 -07:00
Jonathan Frederic
b9872db82b HUGE speed improvements to dual mode tests 2014-03-20 16:11:01 -07:00
Jonathan Frederic
a7dcdddd54 Fixed problem with split tests,
added new function that sets the codemirror instance cursor coords
2014-03-20 16:11:01 -07:00
Jonathan Frederic
daf40e9ec5 Moved util functions into util.js 2014-03-20 16:11:01 -07:00
Jonathan Frederic
c73bef017d Added split merge tests 2014-03-20 16:11:00 -07:00
Jonathan Frederic
23ca387dd7 cutcopyandpaste 2014-03-20 16:11:00 -07:00
Jonathan Frederic
6efa0a4dae Added get_cell_text 2014-03-20 16:11:00 -07:00
Jonathan Frederic
ddc2161817 Added ctrl+(j&k), a, and b tests 2014-03-20 16:11:00 -07:00
Jonathan Frederic
26e3d14f81 Fixed state type for new markdown cell 2014-03-20 16:11:00 -07:00
Jonathan Frederic
1094299934 Added up/down and markdown tests 2014-03-20 16:11:00 -07:00
Jonathan Frederic
13908b60a4 Fixed typo in dd test 2014-03-20 16:11:00 -07:00
Jonathan Frederic
e647e13162 Add dd tests 2014-03-20 16:11:00 -07:00
Jonathan Frederic
4f6884f985 Add test for cell type modifier keyboard shortcuts 2014-03-20 16:11:00 -07:00
Jonathan Frederic
55773dd95a Made *+enter tests more complicated. 2014-03-20 16:11:00 -07:00
Jonathan Frederic
9bd0ac19bf sep. fucntions to move to util.js 2014-03-20 16:11:00 -07:00
Jonathan Frederic
2b800d3360 Add '_only' to only cell methods 2014-03-20 16:11:00 -07:00
Jonathan Frederic
241b62a37a Move code into is_cell_editor_focused 2014-03-20 16:11:00 -07:00
Jonathan Frederic
86fef90a8c Make a few more methods public,
in preparation to move them into the base utils.js
2014-03-20 16:11:00 -07:00
Jonathan Frederic
c43044d514 s/_is_cell_on/is_cell_on 2014-03-20 16:10:59 -07:00
Jonathan Frederic
6a834223da s/_is_cell_editor_focused/is_cell_editor_focused 2014-03-20 16:10:59 -07:00
Jonathan Frederic
45bbcc949e s/key_press/trigger_keydown 2014-03-20 16:10:59 -07:00
Jonathan Frederic
0f5f3a27f5 Add dual mode JS tests 2014-03-20 16:10:59 -07:00
Paul Ivanov
4cf1717980 use - for shortcut separators 2014-03-19 15:58:59 -07:00
MinRK
d4780c2cfc remove security.is_safe 2014-03-03 16:10:20 -08:00
MinRK
4d35660f3c sanitize CSS
rather than removing it entirely
2014-03-03 16:10:19 -08:00
MinRK
d7b1e8b45b test style 2014-03-03 16:10:19 -08:00
MinRK
a7dc526b2b testing for sanitize 2014-03-03 16:10:18 -08:00
MinRK
4b01948200 check trust of data-attributes in sanitization 2014-03-03 16:10:18 -08:00
MinRK
0da66543a0 move security js test 2014-03-03 16:10:17 -08:00
Brian E. Granger
07cdb1e195 Adding first round of security tests of is_safe. 2014-03-03 16:06:41 -08:00
Thomas Kluyver
9c5f9e3a35 Merge pull request #5265 from ellisonbg/timeout-error
Missing class def for TimeoutError
2014-03-03 15:16:21 -08:00
Brian E. Granger
b1c87debde Adding comment about this fix. 2014-03-03 14:50:06 -08:00
Brian E. Granger
dd55efc45d Missing class def for TimeoutError. 2014-03-03 13:55:00 -08:00
Brian E. Granger
af7dd15181 Removing old keyboard handling from IPython.utils. 2014-03-03 13:13:50 -08:00
Brian E. Granger
929f5bc8ea Fixing references to IPython.keycodes. 2014-03-03 13:10:18 -08:00
Brian E. Granger
c76ab1d836 Adding basic tests for keyboard.js 2014-03-03 13:10:17 -08:00
MinRK
e02308e436 capture logging in a few tests
this could probably be made more general,
but these were the two places I noticed log output.
2014-02-22 21:12:19 -08:00
MinRK
386274488d don't create notebook_dir if it doesn't exist 2014-02-21 13:22:57 -08:00
MinRK
cb25736a24 reorganize who knows what about paths
- add NotebookApp.notebook_dir
- add KernelManager.root_dir
- remove NotebookManager.notebook_dir, move to FileNBM.notebook_dir

Default value for KM.root_dir and fNBM.notebook_dir is NotebookApp.notebook_dir, but they can be configured separately.

SessionManager passes the API path to KernelManager,
which is responsible for turning it into the kernel's cwd.
2014-02-21 13:22:56 -08:00
Jonathan Frederic
82bbcf166d Fixed .. typo 2014-02-20 13:14:37 -08:00
Jonathan Frederic
cecf7cf06f Fixed radio button selector for new radio button class 2014-02-19 14:48:21 -08:00
Thomas Kluyver
d6986cf4ec Merge pull request #4778 from minrk/install-nbextensions
add APIs for installing notebook extensions
2014-02-14 15:21:15 -08:00
MinRK
1ed5b184fb test installing nbextensions with symlink 2014-02-14 15:02:02 -08:00
MinRK
8353e85e48 test check_nbextension 2014-02-13 19:46:36 -08:00
Jonathan Frederic
3d408f5241 Added a test to make sure full state was not getting sent. 2014-02-10 15:46:05 -08:00
Jonathan Frederic
fbf700e5d2 Fixed typo in new test 2014-02-10 14:50:49 -08:00
Jonathan Frederic
a173e684c6 Added test that shows the problem. 2014-02-10 14:50:49 -08:00
Brian E. Granger
38c369c0d8 Updating JS tests README.md. 2014-02-09 14:15:54 -08:00
Brian E. Granger
89c1aa2010 Merge pull request #5062 from minrk/js-test-races
adjust some events in nb_roundtrip
2014-02-08 23:20:09 -08:00
MinRK
e14172d851 adjust some events in nb_roundtrip
hopefully should address some intermittent failures due to race conditions
2014-02-08 23:12:05 -08:00
MinRK
7cb4321bfe test unicode path in dashboard_nav 2014-02-08 23:09:23 -08:00
MinRK
f3664e1beb support URLs and zip/tarballs in install_extension 2014-02-08 20:08:15 -08:00
MinRK
704b349302 add IPython.html.nbextensions.install_nbextension
for installing files into IPYTHONDIR/nbextensions
2014-02-08 20:02:56 -08:00
Jonathan Frederic
94a7a7fd3a Whoops, put kernel.js in the wrong folder 2014-02-07 21:18:54 -08:00
Jonathan Frederic
23f2bdf734 Made the folders map 1-to-1 with those in static 2014-02-07 21:13:33 -08:00
Jonathan Frederic
2da92d4d13 Moved files out of casperjs folder 2014-02-07 21:06:58 -08:00
Jonathan Frederic
a07d24adb9 Move tests out into parent directories 2014-02-07 10:09:04 -08:00
Jonathan Frederic
063656343b Moved notebook tests around. 2014-02-06 16:45:54 -08:00
Min RK
cd7c1e6fae Merge pull request #5001 from ellisonbg/dashboard-dirs
Add directory navigation to dashboard
2014-02-05 17:21:43 -08:00
Brian E. Granger
eb9e0be218 Small refactoring of is_hidden to take root as default kwarg. 2014-02-05 16:43:11 -08:00
Brian E. Granger
009367666a Fixing test_files tests. 2014-02-05 15:41:28 -08:00
Brian E. Granger
243392d810 Creating and testing IPython.html.utils.is_hidden. 2014-02-05 13:09:55 -08:00
Brian E. Granger
e765f894b6 Merge pull request #5023 from jdfreder/widget-arrays
Widgets- add ability to pack and unpack arrays on JS side.
2014-02-04 16:43:50 -08:00
Jonathan Frederic
4b9cb92247 Added support for RuntimeArray 2014-02-04 16:29:48 -08:00
Jonathan Frederic
74b2f5c542 Added debug log to see what is happening... 2014-02-04 16:18:04 -08:00
Jonathan Frederic
836742dc59 Added test for pack and unpack Model functions 2014-02-04 16:03:37 -08:00
Brian E. Granger
6ac7f6c2b4 Fixing casperjs tests to run on casperjs 1.0.x. 2014-02-04 15:53:28 -08:00
Brian E. Granger
717f031e01 Adding dashboard navigation tests for dir browsing. 2014-02-04 15:53:28 -08:00
Brian E. Granger
350705075b Merge pull request #5012 from minrk/selection-dict
Make `SelectionWidget.values` a dict
2014-02-04 15:27:23 -08:00
MinRK
cc791f2a56 update selection test with null selection being invalid 2014-02-04 14:40:10 -08:00
Min RK
978a5c1bc2 Merge pull request #4952 from jdfreder/widget-tests
Widget test inconsistencies

add wait_for_widget
2014-02-04 12:14:31 -08:00
Matthias BUSSONNIER
bb27cd0de5 more subtle kernel indicator
add casper.wait_for_busy
like wait_for_idle, but busy

restore kernel notification widget
it's still used for interrupt / restart

use wait_for_busy in check_interrupt test
2014-02-04 11:40:39 +01:00
MinRK
3e1f2e22f8 Make SelectionWidget.values a dict
rename 'labels' and '_value' to 'value_names' and 'value_name'.

To specify a mapping of value names and values, use a dict.
If you specify `values=[list]`, then an OrderedDict will be used.

Assignment after construction only supports a dict.
2014-02-03 17:15:06 -08:00