зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1387894 - Followup: tabs to spaces for lint CLOSED TREE
--HG-- extra : histedit_source : 31c5a83ec635f39116fc58b69396a824880be233
This commit is contained in:
Родитель
cbfa9181e7
Коммит
b9ded6fecc
|
@ -2,17 +2,17 @@
|
|||
// we hit some test failures because the Time Precision is too small. We override these functions
|
||||
// on a per-test basis for Firefox only.
|
||||
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
|
||||
window.assert_times_equal = (actual, expected, description) => {
|
||||
let TIME_PRECISION = 0.02;
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION * 2, description);
|
||||
};
|
||||
window.assert_times_equal = (actual, expected, description) => {
|
||||
let TIME_PRECISION = 0.02;
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION * 2, description);
|
||||
};
|
||||
|
||||
window.assert_time_equals_literal = (actual, expected, description) => {
|
||||
let TIME_PRECISION = 0.02;
|
||||
if (Math.abs(expected) === Infinity) {
|
||||
assert_equals(actual, expected, description);
|
||||
} else {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
}
|
||||
}
|
||||
}
|
||||
window.assert_time_equals_literal = (actual, expected, description) => {
|
||||
let TIME_PRECISION = 0.02;
|
||||
if (Math.abs(expected) === Infinity) {
|
||||
assert_equals(actual, expected, description);
|
||||
} else {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче