Brian E. Granger
350705075b
Merge pull request #5012 from minrk/selection-dict
...
Make `SelectionWidget.values` a dict
12 years ago
MinRK
cc791f2a56
update selection test with null selection being invalid
12 years ago
Min RK
978a5c1bc2
Merge pull request #4952 from jdfreder/widget-tests
...
Widget test inconsistencies
add wait_for_widget
12 years ago
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
12 years ago
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.
12 years ago
Jonathan Frederic
b9e48b3d6c
Use wait_for_widget in widgets and string widget tests
12 years ago
Min RK
003c5e8eda
Merge pull request #4971 from ellisonbg/testjs-fd
...
Fixing issues with js tests
12 years ago
Jonathan Frederic
a2044fd463
Remove sleep from the following,
...
Button, float, int, multicontainer, selection widgets.
12 years ago
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).
12 years ago
Jonathan Frederic
d68112885b
Use waitFor instead of sleeping.
12 years ago
Brian E. Granger
8445ab1899
Fixing tests from shift and ctrl enter swap.
12 years ago
MinRK
5142cc775d
remove superfluous then
12 years ago
MinRK
a6ece94e32
add utils.wait_for_idle in js tests
...
and use it in execute_cell_then, since there is not always output.
12 years ago
Brian E. Granger
7c722d4b6c
Merge pull request #4824 from minrk/sign-notebooks
...
sign notebooks
12 years ago
MinRK
ecfa10b3b3
update shutdown_notebook
...
now that get_output_cell raises if there is no such output
12 years ago
MinRK
5e60741e5c
adjustments to nb_roundtrip.js
...
A few waits, little changes to get it running with recent changes
12 years ago
MinRK
d07e03b7c9
add wait_for_output(cell, index)
...
so you can wait for at least n outputs
12 years ago
Brian E. Granger
ffe92842fc
Merge pull request #4853 from minrk/imgmd
...
fix setting image height/width from metadata
12 years ago
MinRK
3c2ff965ef
get_output_cell fails with no such output
...
rather than returning null
12 years ago
Brian E. Granger
bc7b51d1b0
Merge pull request #4374 from jdfreder/widget-msg
...
IPEP 23: Backbone.js Widgets
12 years ago
Jonathan Frederic
8312534cac
Fixed Accordion test broken by last commit
12 years ago
Jonathan Frederic
75b148d40b
Renamed widgets...
...
TextWidget, TextareaWidget, CheckboxWidget, and SelectWidget
12 years ago
MinRK
63eb905a02
try assertType instead of NotEquals, null
12 years ago
MinRK
119052f75d
first review pass on widget tests
12 years ago
Min RK
64421304c0
Merge pull request #4826 from Carreau/no-html
...
some $.html( -> $.text(
12 years ago
Matthias BUSSONNIER
e99756c6d5
mv kerneljs_test to kernel_test
12 years ago
MinRK
2cbb633cb4
test displaying images with shape metadata
12 years ago
Jonathan Frederic
dc9f81e75d
Fixed bug in selection widget tests.
12 years ago
Matthias BUSSONNIER
25e68b3a75
typo
12 years ago
Matthias BUSSONNIER
03a2cb6535
fix js formatting
12 years ago
Matthias BUSSONNIER
4ecf5c8e5b
add kernel test
12 years ago
Paul Ivanov
9b7c8b0473
make the JS test fail
12 years ago
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
12 years ago
Matthias BUSSONNIER
cbe162297f
XSS casper test
12 years ago
Jonathan Frederic
7ce9f37b17
Made tests reflect changes to widget naming scheme.
12 years ago
Jonathan Frederic
c39050e642
Fixed widget_manager instance test.
12 years ago
Matthias Bussonnier
0ec0534ce9
Merge pull request #4796 from minrk/update-components
...
update components
closes #4765
12 years ago
Jonathan Frederic
16d9fa92e8
Fix test for selection widgets
12 years ago
Jonathan Frederic
4017c7b27a
Fixed *almost* all of the test-detected bugs
12 years ago
Jonathan Frederic
c085593e2a
More fixes
12 years ago
Jonathan Frederic
d103c682c5
Many checks off the todo list, test fixes
12 years ago
Jonathan Frederic
0c8b6029a6
Remove debug print statements in container tests
12 years ago
Jonathan Frederic
d2afb9895b
Output one more for debugging
12 years ago
Jonathan Frederic
7f430db3c8
Print cell output
12 years ago
Jonathan Frederic
12760ddbe5
deleted: wigets_container.js
12 years ago
Jonathan Frederic
74fccf47b3
Revert "Added line to dump page html casperjs"
...
This reverts commit 7091ce87f7a280dde7724d92fd542b834f764e61.
12 years ago
Jonathan Frederic
c7362cb524
Added line to dump page html casperjs
12 years ago
Jonathan Frederic
2e4abaa13d
Removed console.log, unused
12 years ago
Jonathan Frederic
399f11e2b2
renamed: wigets_container.js -> widgets_container.js
12 years ago
Jonathan Frederic
c3189c1c93
Fixed JS tests to reflect Jason's changes
12 years ago
Jonathan Frederic
f1986755ec
Removed button.close() test because it caused the test framework to hang
12 years ago
Jonathan Frederic
43bd3ae2ef
Organized tests.
12 years ago
Jonathan Frederic
8853e40905
Added throttling test
12 years ago
Jonathan Frederic
aae6970944
Added StringWidget tests
12 years ago
Jonathan Frederic
a3a8a1efb1
Added list modification test to selection widget.
12 years ago
Jonathan Frederic
401997580e
Added selection widget tests
12 years ago
Jonathan Frederic
df2c5d7d06
Removed js test utils commit and rebased with master.
...
Also add test to see if selection widgets are atleast displayed.
12 years ago
Jonathan Frederic
4ec03f00d9
Partially implemented selection widget tests
12 years ago
Jonathan Frederic
d398ab6720
Added multicontainer widget tests
12 years ago
Jonathan Frederic
35e74c41b8
Added int range and int widget tests.
12 years ago
Jonathan Frederic
2ae3e86b50
Added ImageWidget tests
12 years ago
Jonathan Frederic
b66bd65e75
Added float widget tests
12 years ago
Jonathan Frederic
a880181297
Added float range widget tests
12 years ago
Jonathan Frederic
5e01a6bb1e
Uncommented parent/child test that was failing
12 years ago
Jonathan Frederic
b020a0b129
Add container tests
12 years ago
Jonathan Frederic
1865d07928
Added bool widget value toggle tests
12 years ago
Jonathan Frederic
9a15dca291
Added test to check initial states of bool views
12 years ago
Jonathan Frederic
e2143d5a8f
Added basic bool widget tests
12 years ago
Jonathan Frederic
0b580b9f9a
Make widget tests use new casper util functions
12 years ago
Jonathan Frederic
ced0de342d
Cleaned up utilities in widget casper js tests
12 years ago
Jonathan Frederic
b53802472b
Added button tests
12 years ago
Jonathan Frederic
9d8a0f62f1
Basic test widget button.
12 years ago
Jonathan Frederic
8daa879087
Fixed casperjs widget tests
...
to match WidgetManager requirejs load changes
12 years ago
Jonathan Frederic
e169e97409
Add basic widget.js tests
12 years ago
Min RK
dc2fd94d4e
Merge pull request #4799 from ivanov/minor-jstest
...
minor js test fix
12 years ago
Paul Ivanov
03eedd52e2
minor js test fix
12 years ago
Min RK
ec77ad18b7
Merge pull request #4772 from takluyver/nbserver-files
...
Notebook server info files
12 years ago
MinRK
5e3d463dca
marked now adds ids to header tags
12 years ago
Thomas Kluyver
e932429762
Command line entry point to list running notebook servers
12 years ago
MinRK
4d03df98fc
b64 unicode literals for images
12 years ago
MinRK
38dabf49ad
test append_output with invalid data
12 years ago
Paul Ivanov
5423613ef3
add test for custom mimetypes
12 years ago
Paul Ivanov
8ab7162c07
added svg to/fromJSON tests
12 years ago
Paul Ivanov
dfb21543c6
added jpeg mimetype tests
12 years ago
Paul Ivanov
6976eac897
adding png mimetype tests
12 years ago
Paul Ivanov
9c32f78efe
tests for HTML mimetype
12 years ago
Paul Ivanov
369220042a
add test for latex to/fromJSON
12 years ago
Paul Ivanov
9be3013d31
refactor clearing and executing first cell in test
12 years ago
Paul Ivanov
f93b47ac37
more refactoring - test to/fromJSON for mimetypes
12 years ago
Paul Ivanov
744178de32
minor formatting
12 years ago
Paul Ivanov
11eabc2e40
refactor tests with more concise assertion checks
12 years ago
Paul Ivanov
25a4bb0c26
plain text and json display_data and pyout tests
12 years ago
Paul Ivanov
07823deda3
minor formatting
12 years ago
Paul Ivanov
7c262155f7
add (failling) roundtrip test case
12 years ago
Paul Ivanov
e0aab910da
minimal notebook rountrip test
12 years ago
Paul Ivanov
509f88534c
distinguish display_svg() and display() tests
12 years ago
Paul Ivanov
93831f0dfc
clear output in-between test runs
12 years ago
Paul Ivanov
2e72ab3cd6
make output code not drop non-mimetype-keyed json
12 years ago
Paul Ivanov
5fefd65d72
added test for display() calls with metadata
...
this test is currently failing
12 years ago
Brian E. Granger
d8db72564a
Merge pull request #3605 from ellisonbg/newux
...
Modal UI - a whole new world of fun....its like vim, but not!
12 years ago
Brian E. Granger
8d73a3ac05
Fixing more JS tests.
12 years ago
Paul Ivanov
e3053b0a58
Clarify waiting for notebook server to launch
12 years ago
Thomas Kluyver
9363dd1087
Simplify waiting for notebook server to die.
12 years ago
Thomas Kluyver
b0afd36408
Don't wait forever for notebook server to launch/die for tests
...
Should turn occasional hangs into straightforward errors.
12 years ago
Thomas Kluyver
3fc26c1886
Test for writing and removing server info files
12 years ago
Min RK
556627a637
Merge pull request #4656 from takluyver/nbconvert-service
...
Nbconvert HTTP service
12 years ago
Min RK
8be6c4b617
Merge pull request #4575 from minrk/encode_paths
...
make sure to encode URL components for API requests
12 years ago
MinRK
a73f00f62a
test save_notebook with escaped name
12 years ago
Thomas Kluyver
eb680ddaa6
Fix notebook tests w/ new stream capturing API.
12 years ago
Thomas Kluyver
c2644a20be
Capture server logs when running notebook tests
12 years ago
Jonathan Frederic
81af3b1781
Fixed bug where cell was not getting inserted because index is optional.
12 years ago
Jonathan Frederic
c38ee4700d
Added new utility functions to the casper.js testing utils.
12 years ago
MinRK
157f501c60
use request.text for Python 3 (content is always bytes)
12 years ago
MinRK
a657ddd78f
test 'files/' redirects
...
1.0 notebooks with links should work in 2.0
12 years ago
Paul Ivanov
73fd15ae36
Merge pull request #4250 from pablooliveira/wrap-svg-in-iframes
...
outputarea.js: Wrap inline SVGs inside an iframe
12 years ago
MinRK
35fcbbd96f
fix js test print statement on python 3
12 years ago
Paul Ivanov
a54e50514d
added test of IPython.version to js test suite
12 years ago
Paul Ivanov
2ab51dc1a5
yet another JS race condition fix
...
this should greatly reduce the number of timeouts seen in the JS tests
12 years ago
Paul Ivanov
4901f5fc16
don't delete casper instance on shutdown test
...
a lunch conversation with @minrk and @takluyver lead me to just make a
popup and have it be closed, instead of having to reorder the test suite
so that this test always runs last. Now it doesn't matter what order the
test suite runs in, and gives us a pattern for testing window closing
behavior should we need it elsewhere.
12 years ago
Pablo de Oliveira
b1eba452c9
Fix typo.
12 years ago
Pablo de Oliveira
bbfcbf40eb
Add casperjs test for isolated SVGs
12 years ago
Paul Ivanov
e608c6d07a
fix: allow JS test to run after shutdown test
...
shutdown notebook test closes casper browser, here we re-instatiate it
after the test
12 years ago
Paul Ivanov
80ac24683f
give travis 10 seconds to start server
12 years ago
Paul Ivanov
26b5a76841
don't use test.begin
...
the PPA we use on Travis CI doesn't have CasperJS 1.1.0-DEV yet, so
we're better off not using it for now.
12 years ago
Paul Ivanov
217b43cf87
use test.begin to give test group a name
12 years ago
Paul Ivanov
641f157fd9
add test for shutdown notebook
12 years ago
Paul Ivanov
e971d051ed
created a kernel_running method
12 years ago
Paul Ivanov
755565019d
adds test of clicking the play button
12 years ago
Paul Ivanov
baf90fd755
add checks for new cell added using shift-enter
12 years ago
Paul Ivanov
89f2ed95f9
refactor of get_output_cell
12 years ago
Paul Ivanov
047f3d76cc
minor shortening
12 years ago
Paul Ivanov
1703b289c9
test keyboard interrupt shortcuts
12 years ago
Paul Ivanov
605573e110
use wait_for_output util function
12 years ago
Paul Ivanov
df2118297b
wait_for_output utility function
12 years ago
Paul Ivanov
65810a49e4
utility functions + tests for shift- & ctrl-enter
12 years ago
Paul Ivanov
34c9ad36a2
repeat test with keyboard shortcut
12 years ago
Paul Ivanov
23a7eb325d
make sure kernel started running
12 years ago
Paul Ivanov
fe60519410
test kernel interrupt
12 years ago
Paul Ivanov
e8fba5dd6d
try to shutdown at the end of every notebook run
...
this line causes noise in the test suite, but if we just ignore it,
we'll never get to the bottom of it. It seems to only happen when
running 'iptest js', and *not* when running the 'casperjs test' command
directly, with a notebookserver that was launched manually.
12 years ago
Paul Ivanov
7e7ac7ec9e
don't shutdown kernel after every test
12 years ago
Paul Ivanov
ebf1320e64
use dashboard to simulate clicking new notebook
12 years ago
Paul Ivanov
c956f28894
make confusing code snippet more readable
12 years ago
Paul Ivanov
a093b4b8ff
use new press_up and press_down utils functions
12 years ago
Thomas Kluyver
f8a36e785d
Use Python 3 compatible syntax in tests
12 years ago
Paul Ivanov
6b2692aa4a
eliminate hardcoded wait, now wait on outputs
...
Note: this test still sometimes fails, though I don't understand why.
Increasing the wait time to 30 seconds does not help, which leads me to
believe that there's some race condition, or that we're genuinely
dropping outputs sometimes (saved notebooks on these timeouts *do*
contain an In[] number, but don't have any outputs attached). @ellisonbg
and @minrk might now what's going on with that.
To run just this test, fire up a notebook server on port 8888 and run:
while true; do casperjs test --includes=util.js test_cases/execute_code_cell.js ; done
12 years ago
Paul Ivanov
f2e0315152
pep8 style function names
12 years ago
Paul Ivanov
0ea7d1e394
more informative message on server timeout
12 years ago
Paul Ivanov
3725218069
updated js tests README, --port= now optional
12 years ago
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
12 years ago
Paul Ivanov
5f4c695aab
start and use notebook server for js test suite
12 years ago
Paul Ivanov
031811225e
consistently get the first cell
12 years ago
Paul Ivanov
b75cd967d7
less convoluted way of grabbing output
12 years ago
Paul Ivanov
6d7758271e
make casperjs test suite pass again
12 years ago
Paul Ivanov
928e846ea8
jstest moved to new place, closes #3125
12 years ago
MinRK
40cce4d7e3
s/os.path.sep/os.sep/
12 years ago
MinRK
112a694c5c
py3k bytes, for crying out loud
12 years ago
MinRK
2b54e36ab7
send ignored output to devnull
...
rather than PIPE, since Windows pipes can fill up.
12 years ago
MinRK
dfb538d881
Windows testing fixes
12 years ago
MinRK
1f90f4d7bb
test /files/ gives 403 on hidden files
12 years ago
Thomas Kluyver
06fa301908
Refactor tests for kernels REST API
12 years ago
Thomas Kluyver
18f88d020f
Add failing test for listing nonexistant directory
12 years ago
MinRK
fe59217989
move url_[un]escape to utils from nbm
12 years ago
MinRK
b0468580f7
don't start new notebook server for each test *method*
...
it takes much too long.
This change starts a new notebook server for each test class.
Even that is probably too much, but the module organization makes it troublesome
to start a single notebook server for all services tests.
12 years ago
Zachary Sailer
04c6a3cfac
refactoring of nbmanager and filenbmanager
...
major clean up of the two managers. We make sure to follow
the standard models described in IPEP 16
12 years ago
Zachary Sailer
050a3098a8
review fixes on tests, add extra kernel api test
12 years ago
Zachary Sailer
e9ac1c2d37
add tests for session api
12 years ago
Zachary Sailer
95b505d602
Added notebooks API tests.
12 years ago
Brian E. Granger
136a19e5eb
Added base class for Notebook API tests.
12 years ago
MinRK
80d2d15620
only test `--help-all`
...
help-all is a superset of `-h`, so no need to do both,
since these tests are slow.
13 years ago
MinRK
50b31960b3
test that `-h` and `--help-all` work for various IPython entry points
...
should help catch when we break these things.
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago