Commit graph

119 commits

Author SHA1 Message Date
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
Takafumi Arakaki
be0c3665b9 Fix ein:notebook-toggle-cell-type: set kernel
Set kernel slot if the converted cell is a code cell.
2012-06-02 21:47:03 +02:00
Takafumi Arakaki
77d574dc73 Fix test: ein:notebook-toggle-cell-type-simple 2012-06-02 20:59:14 +02:00
Takafumi Arakaki
b37dbaeeeb Add eintest:delete-untitled0 2012-05-26 22:39:39 +02:00
Takafumi Arakaki
b9e056d8f7 Fix eintest:get-untitled0-or-create 2012-05-26 22:37:26 +02:00
Takafumi Arakaki
27d924b020 Fix test-ein-kernel.el 2012-05-26 21:25:20 +02:00
Takafumi Arakaki
fffeeb2d3b Clean up eintest:notebook-from-json 2012-05-26 20:51:18 +02:00
Takafumi Arakaki
053962a5bf Fix eintest:notebook-from-json 2012-05-26 20:49:31 +02:00
Takafumi Arakaki
e5a4e8a229 Allow no undo after deleting a cell 2012-05-25 17:57:52 +02:00
Takafumi Arakaki
98ae4efbb9 Fix compile error of test-ein-notebook.el 2012-05-25 17:40:29 +02:00
Takafumi Arakaki
559da7b154 Merge branch 'filter-output-on-save' 2012-05-25 15:16:51 +02:00
Takafumi Arakaki
8d5e174f53 Test discard-output option of ein:cell-to-json 2012-05-25 15:12:54 +02:00
Takafumi Arakaki
ede88fc70a Add eintest:cell-to-json to simplify tests 2012-05-25 15:01:35 +02:00
Takafumi Arakaki
0e086985ea Add tests for ein:cell-to-json 2012-05-25 14:54:03 +02:00
Takafumi Arakaki
179916fd31 Show "Restarting kernel..." message which fadeouts 2012-05-25 03:03:57 +02:00
Takafumi Arakaki
315b106c96 Start using notification widget 2012-05-25 02:04:07 +02:00
Takafumi Arakaki
f2c6df94e0 Fix a bug in ein:notification-bind-events 2012-05-25 01:48:29 +02:00
Takafumi Arakaki
0d051b0102 Add tests on notification widget and fix bugs 2012-05-25 01:32:05 +02:00
Takafumi Arakaki
fb1067835b Add tests for input-prompt-number 2012-05-23 23:13:24 +02:00
Takafumi Arakaki
160f15becd Fix: copied cell can't be executed 2012-05-23 18:46:09 +02:00