emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-surround 5ad01dfa86 139/175: optionally keep xml attr


From: ELPA Syncer
Subject: [nongnu] elpa/evil-surround 5ad01dfa86 139/175: optionally keep xml attrs: add more tests
Date: Mon, 9 Oct 2023 13:01:10 -0400 (EDT)

branch: elpa/evil-surround
commit 5ad01dfa86424c4b22cd1dfa375f13bd8c656f43
Author: ninrod <filipe.silva@gmail.com>
Commit: ninrod <filipe.silva@gmail.com>

    optionally keep xml attrs: add more tests
---
 test/evil-surround-test.el | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index c70f1813ad..1beaae4134 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -103,6 +103,16 @@
       "<span class=\"foo\">Bar</span>"
       ("cst<p>")
       "<p>Bar</p>"))
+  (ert-info ("optionally keep xml attributes: more complicated cases")
+    (evil-test-buffer
+      :visual-start nil
+      :visual-end nil
+      "<div ngModel class=\"foo\" randomAngularDirective #anchor1>Bar</div>"
+      (turn-on-evil-surround-mode)
+      ("cst<span")
+      "<span ngModel class=\"foo\" randomAngularDirective #anchor1>Bar</span>"
+      ("cst<p>")
+      "<p>Bar</p>"))
   (ert-info ("repeat surrounding")
     (evil-test-buffer
       "[o]ne two three"
@@ -206,14 +216,14 @@
       ))
   (ert-info ("buffer is widened before reading char")
     (test-widened-buffer
-      "`[w]ord`"
-      ("cs`)")
-      "[(]word)")
+     "`[w]ord`"
+     ("cs`)")
+     "[(]word)")
     (test-widened-buffer
-      "`[w]ord`"
-      ("ds`")
-      "[w]ord")
+     "`[w]ord`"
+     ("ds`")
+     "[w]ord")
     (test-widened-buffer
-      "[w]ord"
-      ("ysiwb")
-      "[(]word)")))
+     "[w]ord"
+     ("ysiwb")
+     "[(]word)")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]