Commit graph

217 commits

Author SHA1 Message Date
Takafumi Arakaki
2c722fbf61 Fix failing tests in test-ein-cell-notebook.el 2012-08-31 00:11:04 +02:00
Takafumi Arakaki
af989a377b Add two failing tests for ein:notebook-kill-kernel-then-close 2012-08-30 17:49:42 +02:00
Takafumi Arakaki
94967849f6 Rename to ein:notebook-scratchsheet-render-new
s/ein:notebook-scratchsheet-new/ein:notebook-scratchsheet-render-new/
2012-08-30 03:22:31 +02:00
Takafumi Arakaki
2c8b8cce31 Add a failing test for notebook-to-json 2012-08-30 01:47:43 +02:00
Takafumi Arakaki
1674fcbc3e Add test for ein:worksheet-to-json with metadata 2012-08-30 00:39:19 +02:00
Takafumi Arakaki
0bf9cce4b7 Fix ein:worksheet-to-json
When there is no metadata, do not include it in JSON data to avoid
converting nil to JSON (which yields null).
2012-08-30 00:36:44 +02:00
Takafumi Arakaki
f1f94d772d Fix ein:testing-worksheet-to-json
The argument was not used.
2012-08-30 00:30:31 +02:00
Takafumi Arakaki
b56644d9b6 Include scratch sheet in ein:notebook-buffer
Now it is possible to have worksheet buffer closed but scratchsheet
buffer opened.  In this case, ein:notebook-live-p should return t
and ein:notebook-buffer should return the scratchsheet buffer.
This is because notebook commands can such as save or rename can be
executed from the scratchsheet buffer.

ein:notebook-to-json-after-closing-a-worksheet is modified also
this test fails without the change in ein:notebook-buffer.
2012-08-29 21:04:24 +02:00
Takafumi Arakaki
271bb24b3e Naming fix on ein:testing-notebook-close-scratchsheet-open-and-close
s/ws-list/ss-list/g
2012-08-29 21:04:23 +02:00
Takafumi Arakaki
135ab1969b Fix failing tests for ein:notebook-close-worksheet
Actually the tests was wrong.  But as it should work if I test it
against scratch sheet instead of worksheet, I modified it to do so.
2012-08-29 21:04:21 +02:00
Takafumi Arakaki
6c6fa65ec6 Add a failing test for ein:notebook-to-json 2012-08-29 21:03:27 +02:00
Takafumi Arakaki
5699ff84e1 Add tests for `:saved-cells' slot 2012-08-29 21:03:17 +02:00
Takafumi Arakaki
c7f604fcf9 Fix obsolete warning in test-ein-notebook.el 2012-08-28 16:44:08 +02:00
Takafumi Arakaki
1f7e6ec857 s/\(maybe_reset_undo\).Notebook/\1.Worksheet/g 2012-08-28 16:42:07 +02:00
Takafumi Arakaki
5d9d37a8de Fix compile warnings in test-ein-notebook.el 2012-08-28 15:54:04 +02:00
Takafumi Arakaki
1ba8f46b3a Fix compile warning in ein-testing-kernel.el 2012-08-28 15:50:58 +02:00
Takafumi Arakaki
e70d3da4ab Move tests to test-ein-core.el from test-ein-utils.el 2012-08-28 15:38:09 +02:00
Takafumi Arakaki
9e208508b3 Test scratchsheet also in ein:testing-worksheet-set-dirty 2012-08-28 02:10:00 +02:00
Takafumi Arakaki
caab214989 Add tests for set_dirty.Worksheet and fixed a bug 2012-08-28 01:38:41 +02:00
Takafumi Arakaki
36c1c24bb6 Move ein:testing-make-notebook-with-outputs to ein-testing-notebook.el 2012-08-28 01:33:57 +02:00
Takafumi Arakaki
5bb7ec055c Add ein:notebook-ask-before-kill-buffer/modified-scratchsheet 2012-08-28 01:11:13 +02:00
Takafumi Arakaki
1488c7c988 Add tests for ein:notebook-ask-before-kill-buffer 2012-08-28 01:05:09 +02:00
Takafumi Arakaki
63056b490e Add failing tests for ein:notebook-close 2012-08-28 00:51:24 +02:00
Takafumi Arakaki
bafd4c44ec Refactor ein:testing-notebook-close-worksheet-open-and-close 2012-08-28 00:26:15 +02:00
Takafumi Arakaki
fe8b2606af Add tests ein:notebook-close-worksheet/open-*-close-* 2012-08-28 00:10:37 +02:00
Takafumi Arakaki
6a8f04b485 Fix failing test in test-ein-modes.el 2012-08-27 14:32:21 +02:00
Takafumi Arakaki
c01b4fe355 Add ein:worksheet-clear-output/preserve-input-prompt 2012-08-26 21:17:51 +02:00
Takafumi Arakaki
940270fb4d Better ein:worksheet-clear-output/simple 2012-08-26 21:07:13 +02:00
Takafumi Arakaki
a88ea3d76e Refactor: add ein:testing-make-notebook-with-outputs 2012-08-26 21:04:31 +02:00
Takafumi Arakaki
66f2ee4a2a Refactor ein:worksheet-clear-output/simple 2012-08-26 20:56:10 +02:00
Takafumi Arakaki
e494bd70c8 Add test ein:worksheet-clear-all-output/simple 2012-08-26 20:52:59 +02:00
Takafumi Arakaki
d9fbfb31c7 Fix tests in test-ein-cell.el
Tests in test-ein-cell.el (actually the `ein:codecell' class) assume
that `:outputs' is a list, not an array.
2012-08-26 20:17:15 +02:00
Takafumi Arakaki
2a250d1f2b Add test ein:worksheet-clear-output/simple 2012-08-26 19:55:28 +02:00
Takafumi Arakaki
eb70d8a7f9 Add test on ein:worksheet-toggle-output 2012-08-26 19:15:26 +02:00
Takafumi Arakaki
f341726038 Add tests for ein:worksheet-set-output-visibility-all 2012-08-26 19:14:48 +02:00
Takafumi Arakaki
20af5c2840 Remove eintest:cell-json-data-code (add ein-testing-cell.el)
Use ein:testing-codecell-data instead.
To do that, I make new testing module ein-testing-cell.el and
move ein:testing-*cell-data functions there.
2012-08-25 00:16:41 +02:00
Takafumi Arakaki
056cff7d7f Add more assertions in ein:notebook-from-json-all-cell-types 2012-08-25 00:03:04 +02:00
Takafumi Arakaki
b9e94a9a7a Add test ein:notebook-from-json-all-cell-types 2012-08-24 23:44:27 +02:00
Takafumi Arakaki
3068c39fcf Fix failing tests 2012-08-24 20:18:09 +02:00
Takafumi Arakaki
a5ac6e8a6f Move test utils to ein-testing-kernel.el
Same as ein-testing-notebook.el.
2012-08-24 19:40:46 +02:00
Takafumi Arakaki
96d2babff1 Move test utils to ein-testing-notebook.el
So that I can avoid loading test-ein-notebook or
test-ein-cell-notebook for using these utilities.
2012-08-24 19:29:37 +02:00
Takafumi Arakaki
52dad47fc1 Make eintest:assert-keymap-fboundp more robust
Otherwise, ein:notebook-mode-map--assert-fboundp fails.
Note that it looks like that this test already failed in the
worksheet branch, but I didn't notice.  Also note that
running test only in test-ein-modes.el pass without this fix.
2012-08-23 23:09:39 +02:00
Takafumi Arakaki
0fad9548cd Merge branch 'worksheet'
Conflicts:
	tests/test-ein-shared-output.el

Add worksheet module to start worksheet support.  There is no
multiple worksheet support yet.  I am merging this since this
branch is as usable as the master branch.

Also, there are several bug fixes and improvements unrelated to
worksheet feature.
2012-08-23 22:48:17 +02:00
Takafumi Arakaki
a1a2185a9e Improve debugging messages in func-test.el 2012-08-23 22:00:52 +02:00
Takafumi Arakaki
6ea042867f Add more debugging messages in func-test.el 2012-08-23 21:17:19 +02:00
Takafumi Arakaki
dcad3c7158 Add debugging messages in func-test.el 2012-08-23 21:10:40 +02:00
Takafumi Arakaki
961f139fd1 Dump test log also in interactive mode 2012-08-23 21:07:55 +02:00
Takafumi Arakaki
5ca22029db Dump test log using ein-testing 2012-08-23 19:32:47 +02:00
Takafumi Arakaki
1198833711 Add ein-testing.el to dump test log 2012-08-23 19:32:24 +02:00
Takafumi Arakaki
a769aa3b03 Fix test ein:notebook-execute-current-cell-question for Emacs 23
At the time (ein:$notebook-pager ein:%notebook%) is executed, the
current buffer is changed to the pager buffer.  As `notebook' is
already let-bound to ein:$notebook instance, it is better to use
this than the buffer local ein:%notebook%.
2012-08-23 17:39:06 +02:00