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
Takafumi Arakaki
d7fd93774d
Fix test ein:get-cell-at-point--shared-output for Emacs 23
2012-08-23 17:23:46 +02:00
Takafumi Arakaki
cbef38f13c
Add tests for command ein:worksheet-execute-cell-and-*
2012-08-21 14:04:35 +02:00
Takafumi Arakaki
e38bb5d528
Test that functions in ein:*-mode-map are bounded
2012-08-20 15:50:26 +02:00
Takafumi Arakaki
49c12dfd9b
Add a test for the previous fix on ein:get-cell-at-point
2012-08-20 15:12:17 +02:00
Takafumi Arakaki
f7ed3be032
Fix misuse of prefix-arg (use current-prefix-arg)
...
sed -i -E -e 's/([^-])prefix-arg/\1current-prefix-arg/g' */*.el
2012-08-20 12:47:09 +02:00
Takafumi Arakaki
a0651292a4
Fix ein:worksheet-split-cell-at-point
...
It failed when there is no text after the point in cell.
Note that it seems that this bug existed before the "worksheet" branch.
2012-08-20 12:39:02 +02:00
Takafumi Arakaki
d3bf631204
Rename: ...cells -> ein:worksheet-kill-cell
...
This is for symmetry with ein:worksheet-yank-cell
2012-08-20 11:22:33 +02:00
Takafumi Arakaki
9b4dcf55ca
Add test ein:smartrep-notebook-mode-alist-fboundp
2012-08-20 11:08:36 +02:00
Takafumi Arakaki
37cacec4e9
Fix compiler warnings in func-test.el
...
%s/(ein:notebook-insert-cell-below-command)/(call-interactively #'ein:worksheet-insert-cell-below)/g
%s/(ein:notebook-execute-current-cell)/(call-interactively #'ein:worksheet-execute-cell)/g
2012-08-20 10:43:44 +02:00
Takafumi Arakaki
dcde6ca1d9
Use :ewoc slot in ein:%notebook% to get EWOC
...
%s/(ein:$notebook-ewoc ein:%notebook%)/(oref ein:%worksheet% :ewoc)/
At this point, all tests pass.
2012-08-20 10:37:49 +02:00
Takafumi Arakaki
b4271558a0
Fix eintest:with-one-cell
2012-08-20 10:32:13 +02:00
Takafumi Arakaki
8156f160cf
Fix test ein:notebook-undo-via-events
2012-08-20 10:22:24 +02:00
Takafumi Arakaki
865ffcf09e
Fix ein:notebook-delete-cell-command-no-undo
...
This test should delete a cell instead of kill, as the name suggest.
2012-08-20 10:15:15 +02:00
Takafumi Arakaki
bd2008696c
Fix ein:notebook-change-cell-type-cycle-through
2012-08-20 10:06:13 +02:00