Commit Graph

260 Commits

Author SHA1 Message Date
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
Jonathan Frederic
b9e48b3d6c Use wait_for_widget in widgets and string widget tests 2014-02-02 22:40:33 -08:00
Min RK
003c5e8eda Merge pull request #4971 from ellisonbg/testjs-fd
Fixing issues with js tests
2014-01-31 20:38:32 -08:00
Jonathan Frederic
a2044fd463 Remove sleep from the following,
Button, float, int, multicontainer, selection widgets.
2014-01-31 11:48:51 -08:00
Brian E. Granger
aa71651468 Fixing issues with js tests.
* Closing old pages to prevent fd leaks.
* Making sure kernels are killed to prevent fd leaks.
* Moving towards deleting old notebooks (this is not done, but
  this should be merged as is).
2014-01-31 10:42:23 -08:00
Jonathan Frederic
d68112885b Use waitFor instead of sleeping. 2014-01-30 15:23:58 -08:00
Brian E. Granger
8445ab1899 Fixing tests from shift and ctrl enter swap. 2014-01-30 12:53:52 -08:00
MinRK
5142cc775d remove superfluous then 2014-01-29 18:06:50 -08:00
MinRK
a6ece94e32 add utils.wait_for_idle in js tests
and use it in execute_cell_then, since there is not always output.
2014-01-29 17:33:06 -08:00
Brian E. Granger
7c722d4b6c Merge pull request #4824 from minrk/sign-notebooks
sign notebooks
2014-01-29 16:38:08 -08:00
MinRK
ecfa10b3b3 update shutdown_notebook
now that get_output_cell raises if there is no such output
2014-01-29 14:37:00 -08:00
MinRK
5e60741e5c adjustments to nb_roundtrip.js
A few waits, little changes to get it running with recent changes
2014-01-29 14:37:00 -08:00
MinRK
d07e03b7c9 add wait_for_output(cell, index)
so you can wait for at least n outputs
2014-01-29 14:37:00 -08:00
Brian E. Granger
ffe92842fc Merge pull request #4853 from minrk/imgmd
fix setting image height/width from metadata
2014-01-29 10:56:50 -08:00
MinRK
3c2ff965ef get_output_cell fails with no such output
rather than returning null
2014-01-28 18:44:50 -08:00
Brian E. Granger
bc7b51d1b0 Merge pull request #4374 from jdfreder/widget-msg
IPEP 23: Backbone.js Widgets
2014-01-28 14:58:00 -08:00
Jonathan Frederic
8312534cac Fixed Accordion test broken by last commit 2014-01-28 12:53:23 -08:00
Jonathan Frederic
75b148d40b Renamed widgets...
TextWidget, TextareaWidget, CheckboxWidget, and SelectWidget
2014-01-28 12:51:24 -08:00
MinRK
63eb905a02 try assertType instead of NotEquals, null 2014-01-27 15:06:36 -08:00
MinRK
119052f75d first review pass on widget tests 2014-01-26 17:01:59 -08:00
Min RK
64421304c0 Merge pull request #4826 from Carreau/no-html
some $.html( -> $.text(
2014-01-24 12:25:34 -08:00
Matthias BUSSONNIER
e99756c6d5 mv kerneljs_test to kernel_test 2014-01-24 20:52:06 +01:00
MinRK
2cbb633cb4 test displaying images with shape metadata 2014-01-23 15:38:19 -08:00
Jonathan Frederic
dc9f81e75d Fixed bug in selection widget tests. 2014-01-23 10:58:52 -08:00
Matthias BUSSONNIER
25e68b3a75 typo 2014-01-23 19:58:09 +01:00
Matthias BUSSONNIER
03a2cb6535 fix js formatting 2014-01-23 19:31:35 +01:00
Matthias BUSSONNIER
4ecf5c8e5b add kernel test 2014-01-23 19:08:56 +01:00
Paul Ivanov
9b7c8b0473 make the JS test fail 2014-01-22 14:45:20 -08:00
Jonathan Frederic
9560b29beb Removed float widget bound tests,
once the int widget inherits from the float, or vise-versa, the tests
will be covered by the int
2014-01-22 12:12:08 -08:00
Matthias BUSSONNIER
cbe162297f XSS casper test 2014-01-22 08:34:47 +01:00
Jonathan Frederic
7ce9f37b17 Made tests reflect changes to widget naming scheme. 2014-01-21 16:52:37 -08:00
Jonathan Frederic
c39050e642 Fixed widget_manager instance test. 2014-01-17 16:32:58 +00:00
Matthias Bussonnier
0ec0534ce9 Merge pull request #4796 from minrk/update-components
update components

closes #4765
2014-01-16 09:53:07 -08:00
Jonathan Frederic
16d9fa92e8 Fix test for selection widgets 2014-01-16 10:57:19 +00:00
Jonathan Frederic
4017c7b27a Fixed *almost* all of the test-detected bugs 2014-01-16 10:57:19 +00:00
Jonathan Frederic
c085593e2a More fixes 2014-01-16 10:57:18 +00:00
Jonathan Frederic
d103c682c5 Many checks off the todo list, test fixes 2014-01-16 10:57:17 +00:00
Jonathan Frederic
0c8b6029a6 Remove debug print statements in container tests 2014-01-16 10:57:13 +00:00
Jonathan Frederic
d2afb9895b Output one more for debugging 2014-01-16 10:57:13 +00:00
Jonathan Frederic
7f430db3c8 Print cell output 2014-01-16 10:57:13 +00:00
Jonathan Frederic
12760ddbe5 deleted: wigets_container.js 2014-01-16 10:57:13 +00:00
Jonathan Frederic
74fccf47b3 Revert "Added line to dump page html casperjs"
This reverts commit 7091ce87f7a280dde7724d92fd542b834f764e61.
2014-01-16 10:57:13 +00:00
Jonathan Frederic
c7362cb524 Added line to dump page html casperjs 2014-01-16 10:57:12 +00:00
Jonathan Frederic
2e4abaa13d Removed console.log, unused 2014-01-16 10:57:12 +00:00
Jonathan Frederic
399f11e2b2 renamed: wigets_container.js -> widgets_container.js 2014-01-16 10:57:12 +00:00
Jonathan Frederic
c3189c1c93 Fixed JS tests to reflect Jason's changes 2014-01-16 10:57:12 +00:00
Jonathan Frederic
f1986755ec Removed button.close() test because it caused the test framework to hang 2014-01-16 10:57:08 +00:00
Jonathan Frederic
43bd3ae2ef Organized tests. 2014-01-16 10:57:08 +00:00
Jonathan Frederic
8853e40905 Added throttling test 2014-01-16 10:57:08 +00:00
Jonathan Frederic
aae6970944 Added StringWidget tests 2014-01-16 10:57:08 +00:00
Jonathan Frederic
a3a8a1efb1 Added list modification test to selection widget. 2014-01-16 10:57:08 +00:00
Jonathan Frederic
401997580e Added selection widget tests 2014-01-16 10:57:08 +00:00
Jonathan Frederic
df2c5d7d06 Removed js test utils commit and rebased with master.
Also add test to see if selection widgets are atleast displayed.
2014-01-16 10:57:08 +00:00
Jonathan Frederic
4ec03f00d9 Partially implemented selection widget tests 2014-01-16 10:57:08 +00:00
Jonathan Frederic
d398ab6720 Added multicontainer widget tests 2014-01-16 10:57:08 +00:00
Jonathan Frederic
35e74c41b8 Added int range and int widget tests. 2014-01-16 10:57:08 +00:00
Jonathan Frederic
2ae3e86b50 Added ImageWidget tests 2014-01-16 10:57:07 +00:00