зеркало из https://github.com/mozilla/pjs.git
JavaScript Tests - update test to ignore 1ms differences, bug 354998
This commit is contained in:
Родитель
0ac107329e
Коммит
67630c196e
|
@ -77,7 +77,7 @@ var time2 = test();
|
||||||
for (var i = 0; i != 1000*1000; ++i)
|
for (var i = 0; i != 1000*1000; ++i)
|
||||||
delete Object.prototype[i];
|
delete Object.prototype[i];
|
||||||
|
|
||||||
if (time1 * 10 < time2) {
|
if (time1 * 10 + 1 < time2) {
|
||||||
throw "Assigns to Object.prototype increased time of XML enumeration from "+
|
throw "Assigns to Object.prototype increased time of XML enumeration from "+
|
||||||
time1+"ms to "+time2+"ms";
|
time1+"ms to "+time2+"ms";
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче