diff options
| author | Tom Tromey | 2017-04-05 15:55:22 -0600 |
|---|---|---|
| committer | Tom Tromey | 2017-04-05 15:55:22 -0600 |
| commit | 04a5ce0b65fcc8f49c26b74b30b37322b559a0d5 (patch) | |
| tree | 3cbe830e6b2da6bc5fad83c9d77aa5b094c7d8aa | |
| parent | 59409f409d4e20b6657e8c278dba9bf403c5ebd9 (diff) | |
| download | emacs-04a5ce0b65fcc8f49c26b74b30b37322b559a0d5.tar.gz emacs-04a5ce0b65fcc8f49c26b74b30b37322b559a0d5.zip | |
add two more mhtml tests
* test/manual/indent/html-multi-2.html: New file.
* test/manual/indent/html-multi-3.html: New file.
| -rw-r--r-- | test/manual/indent/html-multi-2.html | 35 | ||||
| -rw-r--r-- | test/manual/indent/html-multi-3.html | 35 |
2 files changed, 70 insertions, 0 deletions
diff --git a/test/manual/indent/html-multi-2.html b/test/manual/indent/html-multi-2.html new file mode 100644 index 00000000000..fac5eb1401c --- /dev/null +++ b/test/manual/indent/html-multi-2.html | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html> | ||
| 3 | <head> | ||
| 4 | <title>test</title> | ||
| 5 | <!-- | ||
| 6 | <script> | ||
| 7 | // No indent in a comment | ||
| 8 | if (true) { | ||
| 9 | do not change; | ||
| 10 | } | ||
| 11 | </script> | ||
| 12 | --> | ||
| 13 | |||
| 14 | <style type="text/css"> | ||
| 15 | h1 { | ||
| 16 | font-family: 'Spinnaker', sans-serif; | ||
| 17 | } | ||
| 18 | </style> | ||
| 19 | <script> | ||
| 20 | var a = 4 < 5; | ||
| 21 | function() { | ||
| 22 | if (x > 75) | ||
| 23 | return 25; | ||
| 24 | return "hello"; | ||
| 25 | } | ||
| 26 | </script> | ||
| 27 | </head> | ||
| 28 | <body> | ||
| 29 | </body> | ||
| 30 | <!-- | ||
| 31 | Local Variables: | ||
| 32 | mhtml-tag-relative-indent: nil | ||
| 33 | End: | ||
| 34 | --> | ||
| 35 | </html> | ||
diff --git a/test/manual/indent/html-multi-3.html b/test/manual/indent/html-multi-3.html new file mode 100644 index 00000000000..62daf1d715a --- /dev/null +++ b/test/manual/indent/html-multi-3.html | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html> | ||
| 3 | <head> | ||
| 4 | <title>test</title> | ||
| 5 | <!-- | ||
| 6 | <script> | ||
| 7 | // No indent in a comment | ||
| 8 | if (true) { | ||
| 9 | do not change; | ||
| 10 | } | ||
| 11 | </script> | ||
| 12 | --> | ||
| 13 | |||
| 14 | <style type="text/css"> | ||
| 15 | h1 { | ||
| 16 | font-family: 'Spinnaker', sans-serif; | ||
| 17 | } | ||
| 18 | </style> | ||
| 19 | <script> | ||
| 20 | var a = 4 < 5; | ||
| 21 | function() { | ||
| 22 | if (x > 75) | ||
| 23 | return 25; | ||
| 24 | return "hello"; | ||
| 25 | } | ||
| 26 | </script> | ||
| 27 | </head> | ||
| 28 | <body> | ||
| 29 | </body> | ||
| 30 | <!-- | ||
| 31 | Local Variables: | ||
| 32 | mhtml-tag-relative-indent: ignore | ||
| 33 | End: | ||
| 34 | --> | ||
| 35 | </html> | ||