restructure test directory
This commit is contained in:
parent
a1b2da49d7
commit
bb9b7455b5
2
Makefile
2
Makefile
@ -25,7 +25,7 @@ test-travis:
|
|||||||
test-browser:
|
test-browser:
|
||||||
make build
|
make build
|
||||||
node bin/generate-browser-test >dist/6to5-test.js
|
node bin/generate-browser-test >dist/6to5-test.js
|
||||||
test -n "`which open`" && open test/browser/index.html
|
test -n "`which open`" && open test/browser.html
|
||||||
|
|
||||||
build:
|
build:
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|||||||
@ -205,8 +205,7 @@ To test 6to5 in your browser run:
|
|||||||
|
|
||||||
$ make test-browser
|
$ make test-browser
|
||||||
|
|
||||||
And open `test/browser/index.html` in your browser if it doesn't open
|
And open `test/browser.html` in your browser if it doesn't open automatically.
|
||||||
automatically.
|
|
||||||
|
|
||||||
## Modules
|
## Modules
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var _ = require("lodash");
|
var _ = require("lodash");
|
||||||
|
|
||||||
var fixturesDir = __dirname + "/syntax-fixtures";
|
var fixturesDir = __dirname + "/fixtures/syntax";
|
||||||
|
|
||||||
var humanise = function (val) {
|
var humanise = function (val) {
|
||||||
return val.replace(/-/g, " ");
|
return val.replace(/-/g, " ");
|
||||||
|
|||||||
@ -7,7 +7,7 @@ var path = require("path");
|
|||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var _ = require("lodash");
|
var _ = require("lodash");
|
||||||
|
|
||||||
var fixtureLoc = __dirname + "/bin-fixtures";
|
var fixtureLoc = __dirname + "/fixtures/bin";
|
||||||
var tmpLoc = __dirname + "/tmp";
|
var tmpLoc = __dirname + "/tmp";
|
||||||
|
|
||||||
var readFile = function (filename) {
|
var readFile = function (filename) {
|
||||||
|
|||||||
20
test/browser.html
Normal file
20
test/browser.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Mocha</title>
|
||||||
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="mocha"></div>
|
||||||
|
<script src="../node_modules/proclaim/lib/proclaim.js"></script>
|
||||||
|
<script src="../node_modules/lodash/lodash.js"></script>
|
||||||
|
<script src="../node_modules/mocha/mocha.js"></script>
|
||||||
|
<script src="../dist/6to5.js"></script>
|
||||||
|
<script>mocha.setup("tdd");</script>
|
||||||
|
<script src="../dist/6to5-test.js"></script>
|
||||||
|
<script>
|
||||||
|
mocha.checkLeaks();
|
||||||
|
mocha.run();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -1,20 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Mocha</title>
|
|
||||||
<link rel="stylesheet" href="../../node_modules/mocha/mocha.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="mocha"></div>
|
|
||||||
<script src="../../node_modules/proclaim/lib/proclaim.js"></script>
|
|
||||||
<script src="../../node_modules/lodash/lodash.js"></script>
|
|
||||||
<script src="../../node_modules/mocha/mocha.js"></script>
|
|
||||||
<script src="../../dist/6to5.js"></script>
|
|
||||||
<script>mocha.setup("tdd");</script>
|
|
||||||
<script src="../../dist/6to5-test.js"></script>
|
|
||||||
<script>
|
|
||||||
mocha.checkLeaks();
|
|
||||||
mocha.run();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user