restructure testing infrastructure to be more modular

This commit is contained in:
Sebastian McKenzie
2015-03-28 01:21:48 +11:00
parent a3620a58f8
commit b83907cc67
1258 changed files with 48 additions and 419 deletions

View File

@@ -0,0 +1,4 @@
{
"args": ["--eval", "console.log([1, 2, 3].map(x => x * x));"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -0,0 +1 @@
console.log([1, 2, 3].map(x => x * x));

View File

@@ -0,0 +1,4 @@
{
"args": ["foo", "--extensions", ".bar"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -0,0 +1,4 @@
{
"args": ["--print", "--eval", "([1, 2, 3].map(x => x * x))"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -0,0 +1,2 @@
var foo = () => console.log("foo");
foo();

View File

@@ -0,0 +1,3 @@
{
"args": ["foo"]
}

View File

@@ -0,0 +1 @@
foo

View File

@@ -0,0 +1,2 @@
var foo = () => console.log("foo");
foo();

View File

@@ -0,0 +1,3 @@
{
"args": ["bar"]
}

View File

@@ -0,0 +1 @@
foo

View File

@@ -0,0 +1,2 @@
var bar = () => console.log("bar");
bar();

View File

@@ -0,0 +1,4 @@
var foo = () => console.log("foo");
foo();
import "./bar2";

View File

@@ -0,0 +1,3 @@
{
"args": ["foo2"]
}

View File

@@ -0,0 +1,2 @@
foo
bar