mirror of https://github.com/tc39/test262.git
Unify indentation and add .editorconfig (#973)
This commit is contained in:
parent
96aa8c77b3
commit
a621155bcd
|
@ -0,0 +1,16 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = tab
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[{README.md,package.json,.travis.yml,*.sh,*.js}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[{.jshintrc,*.py}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
|
@ -44,11 +44,12 @@ var $LocalTZ,
|
||||||
var month = 1000 * 60 * 60 * 24 * 30;
|
var month = 1000 * 60 * 60 * 24 * 30;
|
||||||
for (var step = month; step > 0; step = Math.floor(step / 3)) {
|
for (var step = month; step > 0; step = Math.floor(step / 3)) {
|
||||||
if (!predicate(current)) {
|
if (!predicate(current)) {
|
||||||
while (!predicate(current))
|
while (!predicate(current)) {
|
||||||
current = new Date(current.getTime() + step);
|
current = new Date(current.getTime() + step);
|
||||||
current = new Date(current.getTime() - step);
|
current = new Date(current.getTime() - step);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
while (!predicate(current)) {
|
while (!predicate(current)) {
|
||||||
current = new Date(current.getTime() + 1);
|
current = new Date(current.getTime() + 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,4 +124,3 @@ function verifyNotConfigurable(obj, name) {
|
||||||
$ERROR("Expected obj[" + String(name) + "] NOT to be configurable, but was.");
|
$ERROR("Expected obj[" + String(name) + "] NOT to be configurable, but was.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ if (typeof simdPhase2 !== "undefined") {
|
||||||
view: Float64Array,
|
view: Float64Array,
|
||||||
buffer: _f64x2,
|
buffer: _f64x2,
|
||||||
mulFn: binaryMul,
|
mulFn: binaryMul,
|
||||||
}
|
};
|
||||||
|
|
||||||
var bool64x2 = {
|
var bool64x2 = {
|
||||||
name: "Bool64x2",
|
name: "Bool64x2",
|
||||||
|
@ -263,7 +263,7 @@ if (typeof simdPhase2 !== "undefined") {
|
||||||
lanes: 2,
|
lanes: 2,
|
||||||
laneSize: 8,
|
laneSize: 8,
|
||||||
interestingValues: [true, false],
|
interestingValues: [true, false],
|
||||||
}
|
};
|
||||||
|
|
||||||
float64x2.boolType = bool64x2;
|
float64x2.boolType = bool64x2;
|
||||||
|
|
||||||
|
|
|
@ -121,4 +121,3 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) {
|
||||||
// passed the complete test!
|
// passed the complete test!
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1202,4 +1202,3 @@ function testArraysAreSame(expected, actual) {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ if(Promise === undefined && this.setTimeout === undefined){
|
||||||
$ERROR("Async test capability is not supported in your test environment");
|
$ERROR("Async test capability is not supported in your test environment");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Promise !== undefined && this.setTimeout === undefined)
|
if (Promise !== undefined && this.setTimeout === undefined) {
|
||||||
(function(that) {
|
(function(that) {
|
||||||
that.setTimeout = function(callback, delay) {
|
that.setTimeout = function(callback, delay) {
|
||||||
var p = Promise.resolve();
|
var p = Promise.resolve();
|
||||||
|
@ -20,3 +20,4 @@ if(Promise !== undefined && this.setTimeout === undefined)
|
||||||
p.then(check);
|
p.then(check);
|
||||||
}
|
}
|
||||||
})(this);
|
})(this);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue