mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 1430654 - Double epsilon value for assert_times_equal. r=birtles
Since the function assumes that both of actual and expected values have the same precision requirements. MozReview-Commit-ID: 4C3TAH6mUVg --HG-- extra : rebase_source : 1e40e489745b0d9047d34e851a5f043db616323e
This commit is contained in:
parent
fae9243927
commit
0a91cefd01
@ -26,7 +26,7 @@ var TIME_PRECISION = 0.0005; // ms
|
||||
* times based on their precision requirements.
|
||||
*/
|
||||
function assert_times_equal(actual, expected, description) {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION * 2, description);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -21,7 +21,7 @@ const TIME_PRECISION = 0.0005; // ms
|
||||
// times based on their precision requirements.
|
||||
if (!window.assert_times_equal) {
|
||||
window.assert_times_equal = (actual, expected, description) => {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION * 2, description);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user