From e402887d5d2f7cfc5e3f1cb2a9e629bce782e0a8 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 24 Oct 2020 02:28:45 +0200 Subject: Move shr.el test data to follow our conventions * test/lisp/net/shr-tests.el (ert, ert-x): Require. (shr-tests--datadir): Remove variable. (shr-test, rendering): Use ert-resource-directory. * test/lisp/net/shr-resources/*: Move from test/data/shr/. --- test/lisp/net/shr-resources/div-div.html | 1 + test/lisp/net/shr-resources/div-div.txt | 2 ++ test/lisp/net/shr-resources/div-p.html | 1 + test/lisp/net/shr-resources/div-p.txt | 3 +++ test/lisp/net/shr-resources/li-div.html | 10 ++++++++++ test/lisp/net/shr-resources/li-div.txt | 6 ++++++ test/lisp/net/shr-resources/li-empty.html | 1 + test/lisp/net/shr-resources/li-empty.txt | 3 +++ test/lisp/net/shr-resources/nonbr.html | 1 + test/lisp/net/shr-resources/nonbr.txt | 12 ++++++++++++ test/lisp/net/shr-resources/ol.html | 29 +++++++++++++++++++++++++++++ test/lisp/net/shr-resources/ol.txt | 19 +++++++++++++++++++ test/lisp/net/shr-resources/ul-empty.html | 4 ++++ test/lisp/net/shr-resources/ul-empty.txt | 3 +++ 14 files changed, 95 insertions(+) create mode 100644 test/lisp/net/shr-resources/div-div.html create mode 100644 test/lisp/net/shr-resources/div-div.txt create mode 100644 test/lisp/net/shr-resources/div-p.html create mode 100644 test/lisp/net/shr-resources/div-p.txt create mode 100644 test/lisp/net/shr-resources/li-div.html create mode 100644 test/lisp/net/shr-resources/li-div.txt create mode 100644 test/lisp/net/shr-resources/li-empty.html create mode 100644 test/lisp/net/shr-resources/li-empty.txt create mode 100644 test/lisp/net/shr-resources/nonbr.html create mode 100644 test/lisp/net/shr-resources/nonbr.txt create mode 100644 test/lisp/net/shr-resources/ol.html create mode 100644 test/lisp/net/shr-resources/ol.txt create mode 100644 test/lisp/net/shr-resources/ul-empty.html create mode 100644 test/lisp/net/shr-resources/ul-empty.txt (limited to 'test/lisp/net/shr-resources') diff --git a/test/lisp/net/shr-resources/div-div.html b/test/lisp/net/shr-resources/div-div.html new file mode 100644 index 00000000000..1c191ae44d8 --- /dev/null +++ b/test/lisp/net/shr-resources/div-div.html @@ -0,0 +1 @@ +
foo
Bar
diff --git a/test/lisp/net/shr-resources/div-div.txt b/test/lisp/net/shr-resources/div-div.txt new file mode 100644 index 00000000000..62715e12513 --- /dev/null +++ b/test/lisp/net/shr-resources/div-div.txt @@ -0,0 +1,2 @@ +foo +Bar diff --git a/test/lisp/net/shr-resources/div-p.html b/test/lisp/net/shr-resources/div-p.html new file mode 100644 index 00000000000..fcbdfc43293 --- /dev/null +++ b/test/lisp/net/shr-resources/div-p.html @@ -0,0 +1 @@ +
foo

Bar

diff --git a/test/lisp/net/shr-resources/div-p.txt b/test/lisp/net/shr-resources/div-p.txt new file mode 100644 index 00000000000..859d731da89 --- /dev/null +++ b/test/lisp/net/shr-resources/div-p.txt @@ -0,0 +1,3 @@ +foo + +Bar diff --git a/test/lisp/net/shr-resources/li-div.html b/test/lisp/net/shr-resources/li-div.html new file mode 100644 index 00000000000..eca3c511bd9 --- /dev/null +++ b/test/lisp/net/shr-resources/li-div.html @@ -0,0 +1,10 @@ + diff --git a/test/lisp/net/shr-resources/li-div.txt b/test/lisp/net/shr-resources/li-div.txt new file mode 100644 index 00000000000..9fc54f2bdc6 --- /dev/null +++ b/test/lisp/net/shr-resources/li-div.txt @@ -0,0 +1,6 @@ +* This is the first paragraph of a list item. + + This is the second paragraph of a list item. + +* This is the first paragraph of a list item. + This is the second paragraph of a list item. diff --git a/test/lisp/net/shr-resources/li-empty.html b/test/lisp/net/shr-resources/li-empty.html new file mode 100644 index 00000000000..05cfee7bdd4 --- /dev/null +++ b/test/lisp/net/shr-resources/li-empty.html @@ -0,0 +1 @@ +
diff --git a/test/lisp/net/shr-resources/li-empty.txt b/test/lisp/net/shr-resources/li-empty.txt new file mode 100644 index 00000000000..906fd8df8b3 --- /dev/null +++ b/test/lisp/net/shr-resources/li-empty.txt @@ -0,0 +1,3 @@ +1%20 +2%20 +3%20 diff --git a/test/lisp/net/shr-resources/nonbr.html b/test/lisp/net/shr-resources/nonbr.html new file mode 100644 index 00000000000..56282cf4ca5 --- /dev/null +++ b/test/lisp/net/shr-resources/nonbr.html @@ -0,0 +1 @@ +
(progn
  (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt))

  (defun turn-on-cursor-intangible-mode ()
    "Turns on cursor-intangible-mode."
    (interactive)
    (cursor-intangible-mode 1))
  (define-globalized-minor-mode global-cursor-intangible-mode cursor-intangible-mode turn-on-cursor-intangible-mode)

  (global-cursor-intangible-mode 1))

diff --git a/test/lisp/net/shr-resources/nonbr.txt b/test/lisp/net/shr-resources/nonbr.txt new file mode 100644 index 00000000000..0c3cffa93f9 --- /dev/null +++ b/test/lisp/net/shr-resources/nonbr.txt @@ -0,0 +1,12 @@ +(progn + (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face +minibuffer-prompt)) + + (defun turn-on-cursor-intangible-mode () + "Turns on cursor-intangible-mode." + (interactive) + (cursor-intangible-mode 1)) + (define-globalized-minor-mode global-cursor-intangible-mode +cursor-intangible-mode turn-on-cursor-intangible-mode) + + (global-cursor-intangible-mode 1)) diff --git a/test/lisp/net/shr-resources/ol.html b/test/lisp/net/shr-resources/ol.html new file mode 100644 index 00000000000..f9a15f26409 --- /dev/null +++ b/test/lisp/net/shr-resources/ol.html @@ -0,0 +1,29 @@ +
    +
  1. one
  2. +
  3. two
  4. +
  5. three
  6. +
+ +
    +
  1. ten
  2. +
  3. eleven
  4. +
  5. twelve
  6. +
+ +
    +
  1. zero
  2. +
  3. one
  4. +
  5. two
  6. +
+ +
    +
  1. minus five
  2. +
  3. minus four
  4. +
  5. minus three
  6. +
+ +
    +
  1. one
  2. +
  3. two
  4. +
  5. three
  6. +
diff --git a/test/lisp/net/shr-resources/ol.txt b/test/lisp/net/shr-resources/ol.txt new file mode 100644 index 00000000000..0d46e2a8ddb --- /dev/null +++ b/test/lisp/net/shr-resources/ol.txt @@ -0,0 +1,19 @@ +1 one +2 two +3 three + +10 ten +11 eleven +12 twelve + +0 zero +1 one +2 two + +-5 minus five +-4 minus four +-3 minus three + +1 one +2 two +3 three diff --git a/test/lisp/net/shr-resources/ul-empty.html b/test/lisp/net/shr-resources/ul-empty.html new file mode 100644 index 00000000000..e5a75ab9216 --- /dev/null +++ b/test/lisp/net/shr-resources/ul-empty.html @@ -0,0 +1,4 @@ + +Lala diff --git a/test/lisp/net/shr-resources/ul-empty.txt b/test/lisp/net/shr-resources/ul-empty.txt new file mode 100644 index 00000000000..8993555425b --- /dev/null +++ b/test/lisp/net/shr-resources/ul-empty.txt @@ -0,0 +1,3 @@ +* + +Lala \ No newline at end of file -- cgit v1.2.3