Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJuergen Haug2019-04-02 03:53:30 -0400
committerJuergen Haug2019-05-03 05:03:27 -0400
commit60a8377a08defc5a52e2199990d6fc8a7bd98f26 (patch)
treeed2fbaf75c60e2113164a386ce2d2cc1b4e00fe9 /tests
parent636465baf602e2bc9ea0b6ae89c2bb255306eaaf (diff)
downloadorg.eclipse.etrice-60a8377a08defc5a52e2199990d6fc8a7bd98f26.tar.gz
org.eclipse.etrice-60a8377a08defc5a52e2199990d6fc8a7bd98f26.tar.xz
org.eclipse.etrice-60a8377a08defc5a52e2199990d6fc8a7bd98f26.zip
Bug 546030 - [doc.gen] Improve preview of documentation comments
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.etrice.core.common.tests/src/org/eclipse/etrice/core/common/tests/DocumentationMarkupTest.xtend34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.core.common.tests/src/org/eclipse/etrice/core/common/tests/DocumentationMarkupTest.xtend b/tests/org.eclipse.etrice.core.common.tests/src/org/eclipse/etrice/core/common/tests/DocumentationMarkupTest.xtend
new file mode 100644
index 000000000..a533a9294
--- /dev/null
+++ b/tests/org.eclipse.etrice.core.common.tests/src/org/eclipse/etrice/core/common/tests/DocumentationMarkupTest.xtend
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2010 protos software gmbh (http://www.protos.de).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * CONTRIBUTORS:
+ * Juergen Haug (initial contribution)
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.core.common.tests
+
+import org.eclipse.etrice.core.common.documentation.DocumentationMarkup
+import org.junit.Test
+
+import static org.junit.Assert.*
+
+class DocumentationMarkupTest extends DocumentationMarkup {
+
+ @Test
+ def void getMarkupTypeTest() {
+ assertEquals('html', getMarkupType('text'))
+ assertEquals('html', getMarkupType('<!--html-->'))
+ assertEquals('html', getMarkupType('<!-- html -->'))
+ assertEquals('html', getMarkupType('<!-- html -->\\n'))
+ assertEquals('html', getMarkupType(' <!-- html -->\\r\\n'))
+ assertEquals('asciidoc', getMarkupType('<!-- asciidoc -->'))
+ }
+
+} \ No newline at end of file

Back to the top