summaryrefslogtreecommitdiff
path: root/platform/platform-tests/testData/codeStyle
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-tests/testData/codeStyle')
-rw-r--r--platform/platform-tests/testData/codeStyle/autodetect/manyComments.java51
-rw-r--r--platform/platform-tests/testData/codeStyle/autodetect/manyZeroRelativeIndent.java31
-rw-r--r--platform/platform-tests/testData/codeStyle/autodetect/simpleIndent.java14
3 files changed, 96 insertions, 0 deletions
diff --git a/platform/platform-tests/testData/codeStyle/autodetect/manyComments.java b/platform/platform-tests/testData/codeStyle/autodetect/manyComments.java
new file mode 100644
index 000000000000..7bc7a3a46982
--- /dev/null
+++ b/platform/platform-tests/testData/codeStyle/autodetect/manyComments.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2000-2014 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+public interface Doable {
+
+
+ /*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+ public void count() {
+ }
+
+
+ /*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+ public void test() {
+ }
+}
diff --git a/platform/platform-tests/testData/codeStyle/autodetect/manyZeroRelativeIndent.java b/platform/platform-tests/testData/codeStyle/autodetect/manyZeroRelativeIndent.java
new file mode 100644
index 000000000000..2ee4c59848ec
--- /dev/null
+++ b/platform/platform-tests/testData/codeStyle/autodetect/manyZeroRelativeIndent.java
@@ -0,0 +1,31 @@
+class Test {
+
+ public void test() {
+ // boolean function-available(string)
+ addFunction(decls, new FunctionImpl("function-available", XPathType.BOOLEAN,
+ new Parameter(XPathType.STRING, Parameter.Kind.REQUIRED)));
+
+ // node-set current()
+ addFunction(decls, new FunctionImpl("current", XPathType.NODESET));
+
+ // EXSLT (http://www.exslt.org) extensions supported by Xalan & Saxon
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("date", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("date-time", XPathType.STRING));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-abbreviation", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-in-month", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-in-week", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-in-year", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-name", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("day-of-week-in-month", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("hour-in-day", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("leap-year", XPathType.BOOLEAN, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("minute-in-hour", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("month-abbreviation", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("month-in-year", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("month-name", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("second-in-minute", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("time", XPathType.STRING, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("week-in-year", XPathType.NUMBER, optional_string));
+ addFunction(decls, EXSLT_DATE_TIME, new FunctionImpl("year", XPathType.NUMBER, optional_string));
+ }
+}
diff --git a/platform/platform-tests/testData/codeStyle/autodetect/simpleIndent.java b/platform/platform-tests/testData/codeStyle/autodetect/simpleIndent.java
new file mode 100644
index 000000000000..c4cd369df732
--- /dev/null
+++ b/platform/platform-tests/testData/codeStyle/autodetect/simpleIndent.java
@@ -0,0 +1,14 @@
+public class A {
+
+ public void test() {
+ int a = 2;
+ int c = 2;
+ int r = 3;
+ int rq = 3;
+ int rw = 3;
+ int re = 3;
+ }
+
+ public void a() {
+ }
+}