]> git.eshelyaron.com Git - emacs.git/commitdiff
add two more mhtml tests
authorTom Tromey <tom@tromey.com>
Wed, 5 Apr 2017 21:55:22 +0000 (15:55 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 Apr 2017 21:55:22 +0000 (15:55 -0600)
* test/manual/indent/html-multi-2.html: New file.
* test/manual/indent/html-multi-3.html: New file.

test/manual/indent/html-multi-2.html [new file with mode: 0644]
test/manual/indent/html-multi-3.html [new file with mode: 0644]

diff --git a/test/manual/indent/html-multi-2.html b/test/manual/indent/html-multi-2.html
new file mode 100644 (file)
index 0000000..fac5eb1
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>test</title>
+    <!--
+       <script>
+         // No indent in a comment
+         if (true) {
+         do not change;
+         }
+       </script>
+       -->
+
+       <style type="text/css">
+       h1 {
+           font-family: 'Spinnaker', sans-serif;
+       }
+       </style>
+       <script>
+       var a = 4 < 5;
+       function() {
+           if (x > 75)
+               return 25;
+           return "hello";
+       }
+       </script>
+  </head>
+  <body>
+  </body>
+  <!--
+      Local Variables:
+      mhtml-tag-relative-indent: nil
+      End:
+    -->
+</html>
diff --git a/test/manual/indent/html-multi-3.html b/test/manual/indent/html-multi-3.html
new file mode 100644 (file)
index 0000000..62daf1d
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>test</title>
+    <!--
+       <script>
+         // No indent in a comment
+         if (true) {
+         do not change;
+         }
+       </script>
+       -->
+
+       <style type="text/css">
+h1 {
+    font-family: 'Spinnaker', sans-serif;
+}
+       </style>
+       <script>
+var a = 4 < 5;
+function() {
+    if (x > 75)
+       return 25;
+    return "hello";
+}
+       </script>
+  </head>
+  <body>
+  </body>
+  <!--
+      Local Variables:
+      mhtml-tag-relative-indent: ignore
+      End:
+    -->
+</html>