Takafumi Arakaki
af989a377b
Add two failing tests for ein:notebook-kill-kernel-then-close
2012-08-30 17:49:42 +02:00
Takafumi Arakaki
94967849f6
Rename to ein:notebook-scratchsheet-render-new
...
s/ein:notebook-scratchsheet-new/ein:notebook-scratchsheet-render-new/
2012-08-30 03:22:31 +02:00
Takafumi Arakaki
2c8b8cce31
Add a failing test for notebook-to-json
2012-08-30 01:47:43 +02:00
Takafumi Arakaki
b56644d9b6
Include scratch sheet in ein:notebook-buffer
...
Now it is possible to have worksheet buffer closed but scratchsheet
buffer opened. In this case, ein:notebook-live-p should return t
and ein:notebook-buffer should return the scratchsheet buffer.
This is because notebook commands can such as save or rename can be
executed from the scratchsheet buffer.
ein:notebook-to-json-after-closing-a-worksheet is modified also
this test fails without the change in ein:notebook-buffer.
2012-08-29 21:04:24 +02:00
Takafumi Arakaki
271bb24b3e
Naming fix on ein:testing-notebook-close-scratchsheet-open-and-close
...
s/ws-list/ss-list/g
2012-08-29 21:04:23 +02:00
Takafumi Arakaki
135ab1969b
Fix failing tests for ein:notebook-close-worksheet
...
Actually the tests was wrong. But as it should work if I test it
against scratch sheet instead of worksheet, I modified it to do so.
2012-08-29 21:04:21 +02:00
Takafumi Arakaki
6c6fa65ec6
Add a failing test for ein:notebook-to-json
2012-08-29 21:03:27 +02:00
Takafumi Arakaki
c7f604fcf9
Fix obsolete warning in test-ein-notebook.el
2012-08-28 16:44:08 +02:00
Takafumi Arakaki
1f7e6ec857
s/\(maybe_reset_undo\).Notebook/\1.Worksheet/g
2012-08-28 16:42:07 +02:00
Takafumi Arakaki
5d9d37a8de
Fix compile warnings in test-ein-notebook.el
2012-08-28 15:54:04 +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
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
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
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
cbef38f13c
Add tests for command ein:worksheet-execute-cell-and-*
2012-08-21 14:04:35 +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
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
5afc60c768
Add test ein:notebook-undo-via-events
2012-08-19 13:13:01 +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
383f3003bf
Fix tests for console integration
2012-08-16 16:40:57 +02:00
Takafumi Arakaki
0aac7b2026
Add tests ein:get-*--notebook
2012-08-14 22:31:48 +02:00
Takafumi Arakaki
84f3d2d67c
Add tests for ein:notebook--check-nbformat
2012-08-12 19:33:57 +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