Commit graph

288 commits

Author SHA1 Message Date
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
Takafumi Arakaki
4308b8ba9f Reverse the direction to merge
Rational to do this is this makes split+merge an identity operation.
2012-08-01 23:19:37 +02:00
Takafumi Arakaki
d4d1b0c9aa Fix ein:notebook-merge-cell-command undo spec
Follow the specification written in ein:notebook-enable-undo.
2012-08-01 23:04:48 +02:00
Takafumi Arakaki
22848bdd91 Use the output area of the bottom cell when merge
fixes #37
2012-08-01 23:02:17 +02:00
Takafumi Arakaki
b3050b27ef Preserve output of the bottom cell when splitting
Also eintest:notebook-undo-after-split is fixed.  Previous test
was actually wrong.  Note that (ein:notebook-empty-undo-maybe)
is added to make the test pass for ein:notebook-enable-undo=yes.
The current behavior is what mentioned in ein:notebook-enable-undo.

fixes (part of) #37
2012-08-01 22:44:00 +02:00
Takafumi Arakaki
c1b0eab11d Document eintest:notebook-split-cell-at-point 2012-08-01 22:02:37 +02:00
Takafumi Arakaki
4406d00e33 Rename ein-autoexec.el to ein-iexec.el 2012-07-29 14:17:05 +02:00
Takafumi Arakaki
7015abf223 Add tests for ein:kernel-construct-help-string 2012-07-25 22:16:05 +02:00
Takafumi Arakaki
dd5ba89a16 Add tests for ein-autoexec.el 2012-07-22 17:40:35 +02:00
Takafumi Arakaki
13e9e7f29b Add a test ein:notebook-change-cell-type-cycle-through 2012-07-21 15:02:07 +02:00
Takafumi Arakaki
0e910b46fd Fix test: ein:notebook-toggle-cell-type-simple 2012-07-21 14:41:09 +02:00
Takafumi Arakaki
e3110642fa Merge branch 'C-c_C-q_closes_notebook' 2012-07-19 00:42:11 +02:00
Takafumi Arakaki
c104a0b19d Rename ein:kernel-ready-p to ein:kernel-live-p 2012-07-19 00:37:30 +02:00
Takafumi Arakaki
e0d06fec4c Fix test failures regarding latex mime type
The bug was introduced in 63958f3cfa
2012-07-19 00:36:54 +02:00
Takafumi Arakaki
fa00a57b80 Use ein:notebooklist-open-notebook-by-name in func-test.el 2012-07-05 00:14:52 +02:00
Takafumi Arakaki
ba935fca33 Add a test for ein:version 2012-07-03 16:32:18 +02:00
Takafumi Arakaki
4667aea841 Ignore compiled version in test-load.el 2012-06-20 23:15:46 +02:00
Takafumi Arakaki
7d81026f2c Fix ein:notebook-merge-cell-command
Let binding of buffer-undo-list of shadowed the global variable.
2012-06-17 09:50:45 +02:00
Takafumi Arakaki
fb4ed0b449 Add more tests for undo 2012-06-17 08:59:04 +02:00
Takafumi Arakaki
6b5b54c965 Trigger ein:notebook-empty-undo-maybe via event
Previous tests were failed because undo was not reset after the
execution callbacks modified the buffer.  This is fixed by calling
ein:notebook-empty-undo-maybe via event in all the callbacks.
2012-06-16 23:42:58 +02:00
Takafumi Arakaki
0c13bc4234 Modifying undo in PP is wrong
Previous change was not complete since the test does NOT fail.
The test must fail because the test was for `full' undo but
actually it was tested against normal undo.

It turned out let binding of buffer-undo-list in ein-cell.el
was the right way to do it, since EWOC does some buffer
modification outside of the pretty printer.  Therefore, setting
inhibit-read-only and buffer-undo-list in the pretty printer
makes no sense.  Thus, they are removed from ein:notebook-pp.

This means that wrapping EWOC functions with let binding of
buffer-undo-list is essential.  Meaning that what I wrote in
the FIXME ein:notebook-pp was wrong.  Therefore,
ein:notebook-empty-undo-maybe cannot be called in ein:notebook-pp
and ein:notebook-empty-undo-maybe must be called in every single
functions that modifies buffer via EWOC.

Tests for three cases of undo configuration are added.
These test still fail:
ein:notebook-undo-after-execution-1-cell/yes
ein:notebook-undo-after-execution-2-cells/yes
2012-06-16 23:42:23 +02:00
Takafumi Arakaki
5b06f8fcd8 More precise check in undo tests 2012-06-16 21:04:47 +02:00
Takafumi Arakaki
7bf8acd484 Rename to ein:notebook-undo-after-execution-1-cell 2012-06-16 20:42:14 +02:00
Takafumi Arakaki
4f3695c4cf Refactor ein:notebook-undo-after-execution*
.. and ein:notebook-execute-current-cell.
2012-06-16 20:41:27 +02:00
Takafumi Arakaki
1127de66a7 Add two tests for undo in notebook 2012-06-16 20:12:56 +02:00
Takafumi Arakaki
35c3e9bd7b Fix ein:notebook-execute-current-cell
"Hellow World" for eintest:kernel-fake-stream had unnecessary single
quotes.
2012-06-16 19:00:44 +02:00
Takafumi Arakaki
c0839fa795 Refactor ein:notebook-execute-current-cell more (2) 2012-06-16 18:58:27 +02:00
Takafumi Arakaki
74a433dd7b Refactor ein:notebook-execute-current-cell more 2012-06-16 18:51:56 +02:00
Takafumi Arakaki
6aef0678f1 Refactor ein:notebook-execute-current-cell 2012-06-16 18:45:01 +02:00
Takafumi Arakaki
4a50ebc71e Tweak eintest:delete-untitled0
Avoid ert making huge (and useless) test report.
2012-06-13 01:23:19 +02:00
Takafumi Arakaki
0bf5308699 Fix eintest:get-notebook-by-name
Note that this fix is not nothing to do with the changes in ein-query.
2012-06-13 01:19:49 +02:00
Takafumi Arakaki
e27ea820ae Fix failing tests in test-ein-kernel.el 2012-06-13 01:01:09 +02:00
Takafumi Arakaki
5cc2c08180 Merge branch 'master' of github.com:tkf/emacs-ipython-notebook 2012-06-07 02:55:29 +02:00
Takafumi Arakaki
422adbdd2b Change variable type of event: use symbol
As there is no "pattern matching" for event handling anymore, using
cons for event-type makes no sense.
2012-06-06 21:16:48 +02:00
Takafumi Arakaki
05b699e50e Improve test ein:notebook-yank-cell-command-simple 2012-06-06 02:03:14 +02:00
Takafumi Arakaki
e9210fe644 Cosmetic changes on code alignment 2012-06-04 16:23:53 +02:00
Takafumi Arakaki
93199a392b Remove cell from kernel-execute callbacks 2012-06-04 16:18:17 +02:00