forked from phoedos/pmd
Remove unnecessary source-type tags in rule tests
source-type is actually only needed if * the language supports more than one version * the parser behaves differently with different versions (this has to do with compatibility, e.g. assert/enum keywords in java) * the test needs a newer version than the default version (e.g. to test new language features) * the test needs an older version than the default version (e.g. the rule has a maximumLanguageVersion specified) * the rule behaves differently for different versions (e.g. BigIntegerInstantiation)
This commit is contained in:
@ -370,7 +370,6 @@ class MultiCatch {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.7</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -388,7 +387,6 @@ class MultiCatch {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.7</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -70,7 +70,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -82,7 +81,6 @@ public class Foo {
|
||||
private List<TestInterfaceTwo> x = new ArrayList<TestInterfaceTwo>();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -96,7 +94,6 @@ public class Foo {
|
||||
private List<Collection> x = new ArrayList<Collection>();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -109,7 +106,6 @@ import foo.annotation.RetentionPolicy;
|
||||
public @interface Foo {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -122,7 +118,6 @@ import foo.FooAnnotation2;
|
||||
@FooAnnotation2
|
||||
public class Foo {}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -158,7 +153,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -171,7 +165,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -320,7 +320,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.8</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -382,7 +382,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.8</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -54,6 +54,5 @@ public class Bar extends Buz {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -43,7 +43,6 @@ public class Foo {}
|
||||
import static java.lang.*;
|
||||
public class Foo {}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -55,6 +55,5 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -161,7 +161,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.7</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code regressionTest="false">
|
||||
@ -178,6 +177,5 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.8</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -290,7 +290,6 @@ public class Test {
|
||||
private static final RemoteRepository REMOTE = new RemoteRepository<>();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.7</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -154,7 +154,6 @@ public class Foo {
|
||||
public <T> Bar<T> foo() { /* blah */}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -152,7 +152,6 @@ public enum Buz {
|
||||
private Buz(String s) {}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -86,7 +86,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -52,7 +52,6 @@ public class Foo {
|
||||
public <T> Bar<T> foo() { /* blah */}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -38,7 +38,6 @@ public class Bar {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.5</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
|
@ -144,7 +144,6 @@ public class FooTest {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.8</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -160,7 +159,6 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 1.8</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -178,6 +176,5 @@ public class LocalVariableTypeInferenceTryWithResources {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>java 10</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,6 +12,5 @@ with (object) {
|
||||
property = 3; // Might be on object, might be on window: who knows.
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -11,7 +11,6 @@
|
||||
function foo() {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -22,7 +21,6 @@ function foo() {
|
||||
return true;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -33,7 +31,6 @@ function foo() {
|
||||
return;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -47,7 +44,6 @@ function foo() {
|
||||
return;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -61,7 +57,6 @@ function foo() {
|
||||
return;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -81,6 +76,5 @@ function foo() {
|
||||
return;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -16,7 +16,6 @@ function(arg) {
|
||||
};
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -36,6 +35,5 @@ function(arg) {
|
||||
};
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,7 +12,6 @@ for (var p in obj) {
|
||||
obj[p] = obj[p];
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -25,7 +24,6 @@ function foo() {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -46,7 +44,6 @@ function foo() {
|
||||
// 'p' still has value of 'clean'.
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -57,7 +54,6 @@ for (p in obj) {
|
||||
obj[p] = obj[p];
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -70,7 +66,6 @@ function() {
|
||||
}
|
||||
};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -91,6 +86,5 @@ function bar() {
|
||||
// 'p' is trashed and has value of 'dirty'!
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<code><![CDATA[
|
||||
parseInt("10");
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -19,6 +18,5 @@ parseInt("10");
|
||||
<code><![CDATA[
|
||||
parseInt("10", 16);
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -20,7 +20,6 @@ x ? true : false;
|
||||
x ? true : false;
|
||||
x ? true : false;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -39,7 +38,6 @@ for (var i = 0; x = true; i++) {
|
||||
x ? x = true : false;
|
||||
x ? true : x = false;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -50,7 +48,6 @@ x ? true : x = false;
|
||||
if (x = true) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -61,7 +58,6 @@ if (x = true) {
|
||||
while (x = true) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -72,7 +68,6 @@ while (x = true) {
|
||||
do {
|
||||
} while(x = true);
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -83,7 +78,6 @@ do {
|
||||
for (var i = 0; x = true; i++) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -93,7 +87,6 @@ for (var i = 0; x = true; i++) {
|
||||
<code><![CDATA[
|
||||
(x = true) ? true : false;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -104,7 +97,6 @@ for (var i = 0; x = true; i++) {
|
||||
x ? x = true : false;
|
||||
x ? true : x = false;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -123,7 +115,6 @@ do {
|
||||
x ? (++x || --x || x++ || x--) : false;
|
||||
x ? true : (++x || --x || x++ || x--);
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -143,6 +134,5 @@ do {
|
||||
x ? (++x || --x || x++ || x--) : false;
|
||||
x ? true : (++x || --x || x++ || x--);
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,7 +12,6 @@ for (var i=0; i<42; i++) {
|
||||
foo();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -23,7 +22,6 @@ for (var i in obj) {
|
||||
foo();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -33,7 +31,6 @@ for (var i in obj) {
|
||||
for (var i=0; i<42; i++)
|
||||
foo();
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -43,7 +40,6 @@ for (var i=0; i<42; i++)
|
||||
for (var i=0; i<42;)
|
||||
foo();
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -53,7 +49,6 @@ for (var i=0; i<42;)
|
||||
for (var i=0;;)
|
||||
foo();
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -63,7 +58,6 @@ for (var i=0;;)
|
||||
for (;;)
|
||||
foo();
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -73,6 +67,5 @@ for (;;)
|
||||
for (var i in obj)
|
||||
foo();
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -14,7 +14,6 @@ if (true) {
|
||||
x = 4;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -29,7 +28,6 @@ if (true) {
|
||||
y = 4;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -39,7 +37,6 @@ if (true) {
|
||||
if (true)
|
||||
x=2;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -50,7 +47,6 @@ if (true)
|
||||
if (false)
|
||||
x=2;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -62,7 +58,6 @@ if (true) {
|
||||
} else
|
||||
y=4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -74,7 +69,6 @@ if (true)
|
||||
else
|
||||
x=4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -88,7 +82,6 @@ if (true) {
|
||||
} else
|
||||
y=4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -102,7 +95,6 @@ if (true) {
|
||||
else
|
||||
y=4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -116,6 +108,5 @@ else if (true)
|
||||
else
|
||||
y=4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,7 +12,6 @@ if (true) {
|
||||
x=2;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -22,7 +21,6 @@ if (true) {
|
||||
if (true)
|
||||
x=2;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -34,6 +32,5 @@ if (true) {
|
||||
bar();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -11,7 +11,6 @@
|
||||
function foo() {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -23,7 +22,6 @@ if (true) {
|
||||
} else {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -33,7 +31,6 @@ if (true) {
|
||||
for (var i = 0; i < 10; i++) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -43,7 +40,6 @@ for (var i = 0; i < 10; i++) {
|
||||
for (var i in obj) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -53,7 +49,6 @@ for (var i in obj) {
|
||||
while(true) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -63,7 +58,6 @@ while(true) {
|
||||
do {
|
||||
} while(true)
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -75,7 +69,6 @@ switch(1) {
|
||||
break;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -87,7 +80,6 @@ try {
|
||||
} finally {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -97,7 +89,6 @@ try {
|
||||
{
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -109,7 +100,6 @@ function foo() {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -127,7 +117,6 @@ if (true) {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -139,7 +128,6 @@ for (var i = 0; i < 10; i++) {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -151,7 +139,6 @@ for (var i in obj) {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -163,7 +150,6 @@ while(true) {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -175,7 +161,6 @@ do {
|
||||
}
|
||||
} while(true)
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -189,7 +174,6 @@ switch(1) {
|
||||
break;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -207,6 +191,5 @@ try {
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<code><![CDATA[
|
||||
var x = (1);
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -19,7 +18,6 @@ var x = (1);
|
||||
<code><![CDATA[
|
||||
var x = ((1));
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -28,7 +26,6 @@ var x = ((1));
|
||||
<code><![CDATA[
|
||||
var x = ((1 > 2) || (3 < 4));
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -37,6 +34,5 @@ var x = ((1 > 2) || (3 < 4));
|
||||
<code><![CDATA[
|
||||
var x = (((1 > 2)) || (3 < 4));
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,7 +12,6 @@ function foo() {
|
||||
return 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -23,7 +22,6 @@ while (true) {
|
||||
continue;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -34,7 +32,6 @@ while (true) {
|
||||
break;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -48,7 +45,6 @@ switch (foo) {
|
||||
break;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -59,7 +55,6 @@ if (true) {
|
||||
throw new Error();
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -71,7 +66,6 @@ function foo() {
|
||||
x = 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -83,7 +77,6 @@ while (true) {
|
||||
x = 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -95,7 +88,6 @@ while (true) {
|
||||
x = 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -111,7 +103,6 @@ switch (foo) {
|
||||
x = 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -123,6 +114,5 @@ if (true) {
|
||||
x = 1;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -12,7 +12,6 @@ while (true) {
|
||||
x++;
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -22,6 +21,5 @@ while (true) {
|
||||
while (true)
|
||||
x++;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -11,7 +11,6 @@
|
||||
x = {a : 1};
|
||||
x = {a : 1, b : 2};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -21,7 +20,6 @@ x = {a : 1, b : 2};
|
||||
x = {a: 1,};
|
||||
x = {a: 1, b: 2,};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -38,7 +36,6 @@ x = {
|
||||
},
|
||||
};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -47,7 +44,6 @@ x = {
|
||||
<code><![CDATA[
|
||||
x={a:1,b:{c:{d:{},},},};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -59,7 +55,6 @@ x = {,};
|
||||
x = {a: 1,};
|
||||
x = {a: 1, b : 2,};
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -70,7 +65,6 @@ x = [];
|
||||
x = [1];
|
||||
x = [1, 2];
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -81,7 +75,6 @@ x = [,];
|
||||
x = [1,];
|
||||
x = [1,2,];
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -96,7 +89,6 @@ x = [1,
|
||||
],
|
||||
];
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -105,7 +97,6 @@ x = [1,
|
||||
<code><![CDATA[
|
||||
x=[1,[2,[3,[4,],],],];
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -117,6 +108,5 @@ x = [,];
|
||||
x = [1,];
|
||||
x = [1,2,];
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -17,7 +17,6 @@ if (x !== 5) {
|
||||
if (x === 1.2) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
@ -33,6 +32,5 @@ if (x != 5) {
|
||||
if (x == 1.2) {
|
||||
}
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user