Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes for resolving via oaaMetadata

  • Loading branch information...
commit f916a37f7679fe1c8671e5d2f732d8da473aa8c2 1 parent ac567c4
pberkland authored
View
22 ...t.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/OaaMetadataTests.java
@@ -27,14 +27,14 @@
+" </returns>"
+" </constructor>"
+" </constructors>"
- +" <properties>"
- +" <property name=\"propertyInstance\" readonly=\"false\" scope=\"instance\" type=\"String\">"
+ +" <fields>"
+ +" <field name=\"propertyInstance\" readonly=\"false\" scope=\"instance\" type=\"String\">"
+" <description>Property description</description>"
- +" </property>"
- +" <property name=\"propertyStatic\" readonly=\"false\" scope=\"static\" type=\"String\">"
+ +" </field>"
+ +" <field name=\"propertyStatic\" readonly=\"false\" scope=\"static\" type=\"String\">"
+" <description>Property description</description>"
- +" </property>"
- +" </properties>"
+ +" </field>"
+ +" </fields>"
+" <methods>"
+" <method name=\"functionInstance\" scope=\"instance\">"
+" <description>Method description</description>"
@@ -65,10 +65,14 @@ public OaaMetadataTests(String name) {
protected void runNegativeTest(String[] testFiles,String[]classLib, String expectedProblemLog) {
HashMap options = new HashMap();
+ String[] defaultClassPaths = getDefaultClassPaths();
+ String [] classLibs=new String[classLib.length+defaultClassPaths.length];
+ System.arraycopy(classLib, 0, classLibs, 0, classLib.length);
+ System.arraycopy(defaultClassPaths, 0, classLibs, classLib.length, defaultClassPaths.length);
runNegativeTest(
testFiles,
expectedProblemLog,
- classLib ,
+ classLibs ,
false /* flush output directory */,
options /* no custom options */,
false /* do not generate output */,
@@ -94,7 +98,9 @@ public void test003() { // local var
this.runNegativeTest(
new String[] {
"X.js",
- "var i=new libraryname.ClassName();" +
+ "var i=new libraryname.ClassName(1);\n" +
+ "var d=i.propertyInstance;\n" +
+ "var e=i.functionInstance(1);\n" +
"\n"
},
new String[]{libDir},
Please sign in to comment.
Something went wrong with that request. Please try again.