diff options
| author | Stefan Kangas | 2020-10-24 02:28:45 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-10-24 02:29:04 +0200 |
| commit | e402887d5d2f7cfc5e3f1cb2a9e629bce782e0a8 (patch) | |
| tree | 2a487b25181e43d8674701c2e3123dbdc7b61d7f /test/data | |
| parent | ab7dddea907ebb226fd657cc2fad441a374dfd7f (diff) | |
| download | emacs-e402887d5d2f7cfc5e3f1cb2a9e629bce782e0a8.tar.gz emacs-e402887d5d2f7cfc5e3f1cb2a9e629bce782e0a8.zip | |
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/.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/shr/div-div.html | 1 | ||||
| -rw-r--r-- | test/data/shr/div-div.txt | 2 | ||||
| -rw-r--r-- | test/data/shr/div-p.html | 1 | ||||
| -rw-r--r-- | test/data/shr/div-p.txt | 3 | ||||
| -rw-r--r-- | test/data/shr/li-div.html | 10 | ||||
| -rw-r--r-- | test/data/shr/li-div.txt | 6 | ||||
| -rw-r--r-- | test/data/shr/li-empty.html | 1 | ||||
| -rw-r--r-- | test/data/shr/li-empty.txt | 3 | ||||
| -rw-r--r-- | test/data/shr/nonbr.html | 1 | ||||
| -rw-r--r-- | test/data/shr/nonbr.txt | 12 | ||||
| -rw-r--r-- | test/data/shr/ol.html | 29 | ||||
| -rw-r--r-- | test/data/shr/ol.txt | 19 | ||||
| -rw-r--r-- | test/data/shr/ul-empty.html | 4 | ||||
| -rw-r--r-- | test/data/shr/ul-empty.txt | 3 |
14 files changed, 0 insertions, 95 deletions
diff --git a/test/data/shr/div-div.html b/test/data/shr/div-div.html deleted file mode 100644 index 1c191ae44d8..00000000000 --- a/test/data/shr/div-div.html +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | <div>foo</div><div>Bar</div> | ||
diff --git a/test/data/shr/div-div.txt b/test/data/shr/div-div.txt deleted file mode 100644 index 62715e12513..00000000000 --- a/test/data/shr/div-div.txt +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | foo | ||
| 2 | Bar | ||
diff --git a/test/data/shr/div-p.html b/test/data/shr/div-p.html deleted file mode 100644 index fcbdfc43293..00000000000 --- a/test/data/shr/div-p.html +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | <div>foo</div><p>Bar</p> | ||
diff --git a/test/data/shr/div-p.txt b/test/data/shr/div-p.txt deleted file mode 100644 index 859d731da89..00000000000 --- a/test/data/shr/div-p.txt +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | foo | ||
| 2 | |||
| 3 | Bar | ||
diff --git a/test/data/shr/li-div.html b/test/data/shr/li-div.html deleted file mode 100644 index eca3c511bd9..00000000000 --- a/test/data/shr/li-div.html +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | <ul> | ||
| 2 | <li> | ||
| 3 | <div> | ||
| 4 | <p >This is the first paragraph of a list item.</div> | ||
| 5 | <p >This is the second paragraph of a list item.</li> | ||
| 6 | <li> | ||
| 7 | <div>This is the first paragraph of a list item.</div> | ||
| 8 | <div>This is the second paragraph of a list item.</div> | ||
| 9 | </li> | ||
| 10 | </ul> | ||
diff --git a/test/data/shr/li-div.txt b/test/data/shr/li-div.txt deleted file mode 100644 index 9fc54f2bdc6..00000000000 --- a/test/data/shr/li-div.txt +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | * This is the first paragraph of a list item. | ||
| 2 | |||
| 3 | This is the second paragraph of a list item. | ||
| 4 | |||
| 5 | * This is the first paragraph of a list item. | ||
| 6 | This is the second paragraph of a list item. | ||
diff --git a/test/data/shr/li-empty.html b/test/data/shr/li-empty.html deleted file mode 100644 index 05cfee7bdd4..00000000000 --- a/test/data/shr/li-empty.html +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | <ol><li></li><li></li><li></li></ol> | ||
diff --git a/test/data/shr/li-empty.txt b/test/data/shr/li-empty.txt deleted file mode 100644 index 906fd8df8b3..00000000000 --- a/test/data/shr/li-empty.txt +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | 1%20 | ||
| 2 | 2%20 | ||
| 3 | 3%20 | ||
diff --git a/test/data/shr/nonbr.html b/test/data/shr/nonbr.html deleted file mode 100644 index 56282cf4ca5..00000000000 --- a/test/data/shr/nonbr.html +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | <div class="gmail_extra">(progn</div><div class="gmail_extra"> (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt))</div><div class="gmail_extra"><br></div><div class="gmail_extra"> (defun turn-on-cursor-intangible-mode ()</div><div class="gmail_extra"> "Turns on cursor-intangible-mode."</div><div class="gmail_extra"> (interactive)</div><div class="gmail_extra"> (cursor-intangible-mode 1))</div><div class="gmail_extra"> (define-globalized-minor-mode global-cursor-intangible-mode cursor-intangible-mode turn-on-cursor-intangible-mode)</div><div class="gmail_extra"><br></div><div class="gmail_extra"> (global-cursor-intangible-mode 1))</div><div class="gmail_extra"><br></div> | ||
diff --git a/test/data/shr/nonbr.txt b/test/data/shr/nonbr.txt deleted file mode 100644 index 0c3cffa93f9..00000000000 --- a/test/data/shr/nonbr.txt +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | (progn | ||
| 2 | (setq minibuffer-prompt-properties '(read-only t cursor-intangible t face | ||
| 3 | minibuffer-prompt)) | ||
| 4 | |||
| 5 | (defun turn-on-cursor-intangible-mode () | ||
| 6 | "Turns on cursor-intangible-mode." | ||
| 7 | (interactive) | ||
| 8 | (cursor-intangible-mode 1)) | ||
| 9 | (define-globalized-minor-mode global-cursor-intangible-mode | ||
| 10 | cursor-intangible-mode turn-on-cursor-intangible-mode) | ||
| 11 | |||
| 12 | (global-cursor-intangible-mode 1)) | ||
diff --git a/test/data/shr/ol.html b/test/data/shr/ol.html deleted file mode 100644 index f9a15f26409..00000000000 --- a/test/data/shr/ol.html +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | <ol> | ||
| 2 | <li>one</li> | ||
| 3 | <li>two</li> | ||
| 4 | <li>three</li> | ||
| 5 | </ol> | ||
| 6 | |||
| 7 | <ol start="10"> | ||
| 8 | <li>ten</li> | ||
| 9 | <li>eleven</li> | ||
| 10 | <li>twelve</li> | ||
| 11 | </ol> | ||
| 12 | |||
| 13 | <ol start="0"> | ||
| 14 | <li>zero</li> | ||
| 15 | <li>one</li> | ||
| 16 | <li>two</li> | ||
| 17 | </ol> | ||
| 18 | |||
| 19 | <ol start="-5"> | ||
| 20 | <li>minus five</li> | ||
| 21 | <li>minus four</li> | ||
| 22 | <li>minus three</li> | ||
| 23 | </ol> | ||
| 24 | |||
| 25 | <ol start="notanumber"> | ||
| 26 | <li>one</li> | ||
| 27 | <li>two</li> | ||
| 28 | <li>three</li> | ||
| 29 | </ol> | ||
diff --git a/test/data/shr/ol.txt b/test/data/shr/ol.txt deleted file mode 100644 index 0d46e2a8ddb..00000000000 --- a/test/data/shr/ol.txt +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | 1 one | ||
| 2 | 2 two | ||
| 3 | 3 three | ||
| 4 | |||
| 5 | 10 ten | ||
| 6 | 11 eleven | ||
| 7 | 12 twelve | ||
| 8 | |||
| 9 | 0 zero | ||
| 10 | 1 one | ||
| 11 | 2 two | ||
| 12 | |||
| 13 | -5 minus five | ||
| 14 | -4 minus four | ||
| 15 | -3 minus three | ||
| 16 | |||
| 17 | 1 one | ||
| 18 | 2 two | ||
| 19 | 3 three | ||
diff --git a/test/data/shr/ul-empty.html b/test/data/shr/ul-empty.html deleted file mode 100644 index e5a75ab9216..00000000000 --- a/test/data/shr/ul-empty.html +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | <ul> | ||
| 2 | <li></li> | ||
| 3 | </ul> | ||
| 4 | Lala | ||
diff --git a/test/data/shr/ul-empty.txt b/test/data/shr/ul-empty.txt deleted file mode 100644 index 8993555425b..00000000000 --- a/test/data/shr/ul-empty.txt +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | * | ||
| 2 | |||
| 3 | Lala \ No newline at end of file | ||