diff options
| author | Juri Linkov | 2019-02-02 23:23:16 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-02-02 23:23:16 +0200 |
| commit | 42c8399059bb311c8cfaf9428f0a29032d71011d (patch) | |
| tree | c6f6a6596fffe3339004294e63e309e4a57ab9c9 /test/data | |
| parent | adc31c6bdcdb52c2bc0240982d3e8ce870af1fab (diff) | |
| download | emacs-42c8399059bb311c8cfaf9428f0a29032d71011d.tar.gz emacs-42c8399059bb311c8cfaf9428f0a29032d71011d.zip | |
* test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock): New test.
(diff-mode-test-font-lock-syntax-one-line): New test for one line.
* test/data/vc/diff-mode/hello_world.c:
* test/data/vc/diff-mode/hello_world_1.c:
* test/data/vc/diff-mode/hello_emacs.c:
* test/data/vc/diff-mode/hello_emacs_1.c: New fixtures.
* lisp/vc/diff-mode.el (diff-syntax-fontify): Move remove-overlays
from diff-syntax-fontify-hunk. (Bug#33567)
(diff-syntax-fontify-hunk): Remove VISIT arg from insert-file-contents.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/vc/diff-mode/hello_emacs.c | 6 | ||||
| -rw-r--r-- | test/data/vc/diff-mode/hello_emacs_1.c | 1 | ||||
| -rw-r--r-- | test/data/vc/diff-mode/hello_world.c | 6 | ||||
| -rw-r--r-- | test/data/vc/diff-mode/hello_world_1.c | 1 |
4 files changed, 14 insertions, 0 deletions
diff --git a/test/data/vc/diff-mode/hello_emacs.c b/test/data/vc/diff-mode/hello_emacs.c new file mode 100644 index 00000000000..c7ed7538c3a --- /dev/null +++ b/test/data/vc/diff-mode/hello_emacs.c | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | int main() | ||
| 3 | { | ||
| 4 | printf("Hello, Emacs!\n"); | ||
| 5 | return 0; | ||
| 6 | } | ||
diff --git a/test/data/vc/diff-mode/hello_emacs_1.c b/test/data/vc/diff-mode/hello_emacs_1.c new file mode 100644 index 00000000000..62145a6b44a --- /dev/null +++ b/test/data/vc/diff-mode/hello_emacs_1.c | |||
| @@ -0,0 +1 @@ | |||
| int main() { printf("Hello, Emacs!\n"); return 0; } \ No newline at end of file | |||
diff --git a/test/data/vc/diff-mode/hello_world.c b/test/data/vc/diff-mode/hello_world.c new file mode 100644 index 00000000000..dcbe06c6012 --- /dev/null +++ b/test/data/vc/diff-mode/hello_world.c | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | int main() | ||
| 3 | { | ||
| 4 | printf("Hello, World!\n"); | ||
| 5 | return 0; | ||
| 6 | } | ||
diff --git a/test/data/vc/diff-mode/hello_world_1.c b/test/data/vc/diff-mode/hello_world_1.c new file mode 100644 index 00000000000..606afb371cb --- /dev/null +++ b/test/data/vc/diff-mode/hello_world_1.c | |||
| @@ -0,0 +1 @@ | |||
| int main() { printf("Hello, World!\n"); return 0; } \ No newline at end of file | |||