move traceur test suite to a git submodule

This commit is contained in:
Sebastian McKenzie
2015-01-05 10:18:30 +11:00
parent a8fad4b958
commit 7f87ca0d43
5 changed files with 89 additions and 17 deletions

View File

@@ -1,5 +1,53 @@
require("./_transformation-helper")("traceur", {
blacklist: ["useStrict"],
requireHook: true,
experimental: true
var _ = require("lodash");
require("./_transformation-helper")({
name: "traceur",
loc: __dirname + "/../vendor/traceur/test/feature",
ignoreSuites: [
"ObjectMixin",
"Annotations",
"TestRunner",
"Tools",
"TempVarTransformer",
"AtScript",
"FreeVariableChecker",
"TypeAssertions",
"MemberVariables",
"Types",
// REENABLE THESE
"Destructuring",
"Syntax",
"StringExtras",
"Symbol",
"Yield",
"Modules",
"Spread",
"Scope",
"GeneratorComprehension"
],
ignoreTasks: [
"Strict",
// core.js doesn't support due to a perf hit and having to override a lot
// of native methods
"Symbol/GetOwnPropertySymbols",
// Traceur doesn't name methods and has an incorrect test asserting that
// they have no names
"PropertyMethodAssignment/PropertyMethodAssignment"
]
}, {
optional: ["typeofSymbol"],
experimental: true,
after: function () {
// StringExtras/StarsWith
delete Object.prototype[1];
}
}, function (opts, task) {
if (!_.contains(task.exec.loc, "module.js")) {
opts.blacklist = ["useStrict"];
}
});