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:
Hiroyuki Ikezoe 2018-01-22 14:57:57 +09:00
parent fae9243927
commit 0a91cefd01
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/*

View File

@ -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);
};
}