Converted esprima's harmony tests.

This commit is contained in:
Ingvar Stepanyan 2014-07-23 19:11:06 +03:00 committed by Marijn Haverbeke
parent 937350dd84
commit 88e355a6ae
3 changed files with 15338 additions and 1 deletions

View File

@ -1,5 +1,6 @@
var driver = require("./driver.js"); var driver = require("./driver.js");
require("./tests.js"); require("./tests.js");
require("./tests-harmony.js");
var testsRun = 0, failed = 0; var testsRun = 0, failed = 0;
function report(state, code, message) { function report(state, code, message) {

15336
test/tests-harmony.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -28982,7 +28982,7 @@ testFail("for(const x = 0;;);", "Unexpected token (1:4)", {ecmaVersion: 6});
Cat.prototype.roar = function(message) { Cat.prototype.roar = function(message) {
return 'MEOOWW: ' + /*stuff*/ message; return 'MEOOWW: ' + /*stuff*/ message;
}; };
}.toString(), }.toString().replace(/\r\n/g, '\n'),
function assert(ast) { function assert(ast) {
if (actualComments.length !== expectedComments.length) { if (actualComments.length !== expectedComments.length) {
return JSON.stringify(actualComments) + " !== " + JSON.stringify(expectedComments); return JSON.stringify(actualComments) + " !== " + JSON.stringify(expectedComments);