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
Takafumi Arakaki
5a409422cc
Fix typo: ein:worksheet-kill-cells
...
%s/\(ein:worksheet-kill-cell\)\b/\1s/g
2012-08-20 09:59:11 +02:00
Takafumi Arakaki
2a74ec2b64
Fix ein:get-cell-at-point/traceback-data--worksheet
2012-08-20 09:43:39 +02:00
Takafumi Arakaki
8d773d9d4b
Fix eintest:notebook-from-json
2012-08-20 09:38:15 +02:00
Takafumi Arakaki
1a823e7568
Finish fixing compiler warning in test-ein-notebook.el
2012-08-20 09:32:13 +02:00
Takafumi Arakaki
87f4d16c5c
Fix eintest:notebook-split-cell-at-point
2012-08-20 09:27:51 +02:00
Takafumi Arakaki
89c8305ee0
Fix test ein:notebook-change-cell-type-cycle-through
2012-08-20 09:27:33 +02:00
Takafumi Arakaki
59263b270f
Rename (most of) functions in test-ein-notebook.el
...
%s/ein:notebook-\(ncells\) ein:%notebook%/ein:worksheet-\1 ein:%worksheet%
%s/ein:notebook-\(get-cells\) ein:%notebook%/ein:worksheet-\1 ein:%worksheet%
%s/(ein:notebook-\(insert-cell-below\)-command)/(call-interactively #'ein:worksheet-\1)/
%s/(ein:notebook-\(insert-cell-above\)-command)/(call-interactively #'ein:worksheet-\1)/
%s/(ein:notebook-\([a-z\-]+\)-command)/(call-interactively #'ein:worksheet-\1)/
%s/(ein:notebook-get-current-cell)/(ein:worksheet-get-current-cell)/
%s/(ein:notebook-toggle-cell-type)/(call-interactively #'ein:worksheet-toggle-cell-type)/g
2012-08-20 09:23:29 +02:00
Takafumi Arakaki
3b13458d0d
Fix functional test
2012-08-19 21:48:33 +02:00
Takafumi Arakaki
c7a5de2c11
Fix failing unit test (add test-ein-pytools.el)
2012-08-19 21:48:32 +02:00
Takafumi Arakaki
5afc60c768
Add test ein:notebook-undo-via-events
2012-08-19 13:13:01 +02:00
Takafumi Arakaki
3043937a66
Fix the failing test in test-ein-notification.el
2012-08-19 12:37:56 +02:00
Takafumi Arakaki
ecd7a2c044
Fix failing unit tests
...
* Undocumented returned value of ein:notebook-request-open-callback
(previously notebook buffer, now notebook) is used.
Now this implicit dependency is removed.
* ein:notebook-opened-map renamed to ein:notebook--opened-map
2012-08-19 03:40:59 +02:00
Takafumi Arakaki
c6ca4facd0
Use ein:%notebook% in test-ein-notebook.el
...
%s/\_<ein:\(notebook\)\_>/ein:%\1%/g
2012-08-19 00:24:16 +02:00
Takafumi Arakaki
58628a0d21
Use ein:%notebook% in test-ein-cell-notebook.el
...
%s/\_<ein:\(notebook\)\_>/ein:%\1%/g
2012-08-19 00:24:15 +02:00
Takafumi Arakaki
41806c396e
Use ein:%notebook% and ein:%notebooklist% in func-test.el
...
%s/\_<ein:\(notebooklist\)\_>/ein:%\1%/g
%s/\_<ein:\(notebook\)\_>/ein:%\1%/g
2012-08-19 00:24:14 +02:00