Bug 907072 - ES6 reftests should run with "default version", not JS 1.8.5. r=jorendorff

This commit is contained in:
Andy Wingo 2013-08-20 14:54:02 +02:00
parent 2e92734f7a
commit 480b88b121
12 changed files with 11 additions and 23 deletions

View File

@ -346,7 +346,7 @@ function jsTestDriverBrowserInit()
{
properties.version = '1.7';
}
else if (properties.test.match(/^js1_8|^ecma_6/))
else if (properties.test.match(/^js1_8/))
{
properties.version = '1.8';
}

View File

@ -262,7 +262,7 @@ var cosh_data = [
[1875817529344, 28.953212876533797]
];
for (let [x, y] of cosh_data)
for (var [x, y] of cosh_data)
assertNear(Math.acosh(x), y);
for (var i = 0; i <= 100; i++) {

View File

@ -282,7 +282,7 @@ var sinh_data = [
[1581915832320, 28.78280496108106]
];
for (let [x, y] of sinh_data)
for (var [x, y] of sinh_data)
assertNear(Math.asinh(x), y);
for (var i = 0; i <= 80; i++) {

View File

@ -269,7 +269,7 @@ var tanh_data = [
[1e-10, 1e-10],
];
for (let [x, y] of tanh_data)
for (var [x, y] of tanh_data)
assertNear(Math.atanh(x), y);
assertNear(Math.atanh(+3 / 5), +Math.log(2));

View File

@ -11,7 +11,7 @@ var cbrt_data = [
[ Math.SQRT2, 1.1224620483093728 ]
];
for (let [x, y] of cbrt_data)
for (var [x, y] of cbrt_data)
assertNear(Math.cbrt(x), y);
reportCompare(0, 0, "ok");

View File

@ -269,7 +269,7 @@ var cosh_data = [
[28.953212876533797, 1875817529343.9976],
];
for (let [x, y] of cosh_data)
for (var [x, y] of cosh_data)
assertNear(Math.cosh(x), y);
reportCompare(0, 0, "ok");

View File

@ -18,7 +18,7 @@ var expm1_data = [
[ 0.0000031404608812881633, 0.0000031404658125405988 ]
];
for (let [x, y] of expm1_data)
for (var [x, y] of expm1_data)
assertNear(Math.expm1(x), y);
reportCompare(0, 0, "ok");

View File

@ -2,7 +2,7 @@
// If any argument is +∞, the result is +∞.
// If any argument is −∞, the result is +∞.
for (let inf of [Infinity, -Infinity]) {
for (var inf of [Infinity, -Infinity]) {
assertEq(Math.hypot(inf, 0), Infinity);
assertEq(Math.hypot(0, inf), Infinity);
assertEq(Math.hypot(inf, inf), Infinity);

View File

@ -14,7 +14,7 @@ var log1p_data = [
[ 0.011404608812881634, 0.011340066517988035 ],
];
for (let [x, y] of log1p_data)
for (var [x, y] of log1p_data)
assertNear(Math.log1p(x), y);
reportCompare(0, 0, "ok");

View File

@ -289,7 +289,7 @@ var sinh_data = [
[28.78280496108106, 1581915832319.9973]
];
for (let [x, y] of sinh_data)
for (var [x, y] of sinh_data)
assertNear(Math.sinh(x), y);
reportCompare(0, 0, "ok");

View File

@ -271,7 +271,7 @@ var tanh_data = [
[1e-10, 1e-10],
];
for (let [x, y] of tanh_data)
for (var [x, y] of tanh_data)
assertNear(Math.tanh(y), x);
reportCompare(0, 0, "ok");

View File

@ -1,12 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
// explicitly turn on js185
if (typeof version != 'undefined')
{
version(185);
}