Commit graph

274 commits

Author SHA1 Message Date
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
Takafumi Arakaki
4ae4bd264a Use ein:%notification% in test-ein-notification.el
%s/\_<ein:@\(notification\)\_>/ein:%\1%/g
2012-08-19 00:24:12 +02:00
Takafumi Arakaki
383f3003bf Fix tests for console integration 2012-08-16 16:40:57 +02:00
Takafumi Arakaki
e9d3849936 Add tests ein:get-*--notebooklist 2012-08-14 22:52:10 +02:00
Takafumi Arakaki
94fa46f1ed Add tests ein:get-*--notebooklist 2012-08-14 22:41:19 +02:00
Takafumi Arakaki
65bf14a40e Add tests ein:get-*--connect 2012-08-14 22:32:52 +02:00
Takafumi Arakaki
0aac7b2026 Add tests ein:get-*--notebook 2012-08-14 22:31:48 +02:00
Takafumi Arakaki
06b1c74a5a Add tests ein:get-*--nil and fix a bug 2012-08-14 22:14:02 +02:00
Takafumi Arakaki
84f3d2d67c Add tests for ein:notebook--check-nbformat 2012-08-12 19:33:57 +02:00
Takafumi Arakaki
615abaec22 Test ein:completer-finish-completing 2012-08-09 01:35:00 +02:00
Takafumi Arakaki
6b2ab803a5 Test ein:cell-finish-tooltip 2012-08-09 01:24:26 +02:00
Takafumi Arakaki
5ee0471cee Add test for ein:ac-set-document 2012-08-09 01:06:21 +02:00
Takafumi Arakaki
92ad2c8ca5 Refactor tests for ein:kernel-construct-help-string 2012-08-09 00:56:34 +02:00
Takafumi Arakaki
dedef7e032 Workaround error in tests from MuMaMo
Without this workaround, I had three failed tests:

3 unexpected results:
   FAILED  ein:notebook-ask-before-kill-emacs-simple
   FAILED  ein:notebook-from-json-simple
   FAILED  ein:notebook-yank-cell-command-two-buffers

These tests failed because of the following same error:

    (error "fun-var-sym=mumamo-eval-in-ein:notebook-bg-mode, use-major-entry=(ein:notebook-bg-mode (mumamo-eval-in-ein:notebook-bg-mode mumamo-def-eval-in-ein:notebook-bg-mode mumamo-kw-eval-in-ein:notebook-bg-mode))")
2012-08-04 04:10:58 +02:00
Takafumi Arakaki
e49811db5c Add tests for filename translator 2012-08-04 04:01:27 +02:00