You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by tm...@apache.org on 2020/06/17 11:41:10 UTC
[netbeans] branch master updated: Fix tests for Neon language
This is an automated email from the ASF dual-hosted git repository.
tmysik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new d49fd82 Fix tests for Neon language
new 0d66999 Merge pull request #2190 from KacerCZ/neon-tests-fix
d49fd82 is described below
commit d49fd82fd6495da1e46b7a73f05baac5ea28a696
Author: Tomas Prochazka <ka...@razdva.cz>
AuthorDate: Sun Jun 14 23:18:46 2020 +0200
Fix tests for Neon language
Test data were created from scratch
Enabled test in Travis CI
---
.travis.yml | 2 +-
.../testfiles/actions/toggleComment/toggle_01.neon | 10 ++++++++
.../toggleComment/toggle_01.neon.toggleComment | 10 ++++++++
.../testfiles/actions/toggleComment/toggle_02.neon | 10 ++++++++
.../toggleComment/toggle_02.neon.toggleComment | 10 ++++++++
.../testfiles/actions/toggleComment/toggle_03.neon | 10 ++++++++
.../toggleComment/toggle_03.neon.toggleComment | 10 ++++++++
.../testfiles/actions/toggleComment/toggle_04.neon | 10 ++++++++
.../toggleComment/toggle_04.neon.toggleComment | 10 ++++++++
.../neon/actions/ToggleCommentActionTest.java | 30 +++++++++++-----------
10 files changed, 96 insertions(+), 16 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 951385b..afdce8f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -665,7 +665,7 @@ matrix:
- ant $OPTS build
script:
- ant $OPTS -f php/hudson.php test
- #- ant $OPTS -f php/languages.neon test
+ - ant $OPTS -f php/languages.neon test
- ant $OPTS -f php/php.api.annotation test
- ant $OPTS -f php/php.api.documentation test
- ant $OPTS -f php/php.api.executable test
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon
new file mode 100644
index 0000000..d98c0b1
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon
@@ -0,0 +1,10 @@
+#
+# File ^for toggle comment tests.
+#
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon.toggleComment b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon.toggleComment
new file mode 100644
index 0000000..4db1507
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_01.neon.toggleComment
@@ -0,0 +1,10 @@
+#
+ File ^for toggle comment tests.
+#
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon
new file mode 100644
index 0000000..3c3f18c
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+#^
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon.toggleComment b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon.toggleComment
new file mode 100644
index 0000000..c5be533
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_02.neon.toggleComment
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+^
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon
new file mode 100644
index 0000000..e427ec1
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+#
+parameters:
+ title: Blog
+ # theme: ^lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon.toggleComment b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon.toggleComment
new file mode 100644
index 0000000..6a7fafe
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_03.neon.toggleComment
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+#
+parameters:
+ title: Blog
+ theme: ^lightning
+
+services:
+ articleManager:
+ class: ArticleManager
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon
new file mode 100644
index 0000000..e09a576
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+#
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+ class: ArticleManager^
diff --git a/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon.toggleComment b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon.toggleComment
new file mode 100644
index 0000000..8e79254
--- /dev/null
+++ b/php/languages.neon/test/unit/data/testfiles/actions/toggleComment/toggle_04.neon.toggleComment
@@ -0,0 +1,10 @@
+#
+# File for toggle comment tests.
+#
+parameters:
+ title: Blog
+ # theme: lightning
+
+services:
+ articleManager:
+# class: ArticleManager^
diff --git a/php/languages.neon/test/unit/src/org/netbeans/modules/languages/neon/actions/ToggleCommentActionTest.java b/php/languages.neon/test/unit/src/org/netbeans/modules/languages/neon/actions/ToggleCommentActionTest.java
index 4c3f98c..da36522 100644
--- a/php/languages.neon/test/unit/src/org/netbeans/modules/languages/neon/actions/ToggleCommentActionTest.java
+++ b/php/languages.neon/test/unit/src/org/netbeans/modules/languages/neon/actions/ToggleCommentActionTest.java
@@ -30,21 +30,21 @@ public class ToggleCommentActionTest extends NeonActionsTestBase {
super(testName);
}
-// public void testToggleComment_01() throws Exception {
-// testInFile("testfiles/actions/toggleComment/toggle_01.neon");
-// }
-//
-// public void testToggleComment_02() throws Exception {
-// testInFile("testfiles/actions/toggleComment/toggle_02.neon");
-// }
-//
-// public void testToggleComment_03() throws Exception {
-// testInFile("testfiles/actions/toggleComment/toggle_03.neon");
-// }
-//
-// public void testToggleComment_04() throws Exception {
-// testInFile("testfiles/actions/toggleComment/toggle_04.neon");
-// }
+ public void testToggleComment_01() throws Exception {
+ testInFile("testfiles/actions/toggleComment/toggle_01.neon");
+ }
+
+ public void testToggleComment_02() throws Exception {
+ testInFile("testfiles/actions/toggleComment/toggle_02.neon");
+ }
+
+ public void testToggleComment_03() throws Exception {
+ testInFile("testfiles/actions/toggleComment/toggle_03.neon");
+ }
+
+ public void testToggleComment_04() throws Exception {
+ testInFile("testfiles/actions/toggleComment/toggle_04.neon");
+ }
protected void testInFile(String file) throws Exception {
testInFile(file, CslEditorKit.toggleCommentAction);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists