зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1421091 - Remove a bit from a gtest that is tested directly in the bindings. r=jya
This cannot happen anymore, because we're using sequence<float> and not Float32Array in WebIDL, and sequence<float> throws when it contains Infinity or NaN. MozReview-Commit-ID: 9ZUbXa0viSk --HG-- extra : rebase_source : e1783b6873caeefa1f09caf938e342f591da0056 extra : source : 5d0cce417e56935badf1e7a503f348079c8a9435
This commit is contained in:
Родитель
da2d85b506
Коммит
1a7517e102
|
@ -162,9 +162,6 @@ TEST(AudioEventTimeline, InvalidEvents)
|
|||
Timeline timeline(10.0f);
|
||||
|
||||
float curve[] = { -1.0f, 0.0f, 1.0f };
|
||||
float badCurve1[] = { -1.0f, NaN, 1.0f };
|
||||
float badCurve2[] = { -1.0f, Infinity, 1.0f };
|
||||
float badCurve3[] = { -1.0f, -Infinity, 1.0f };
|
||||
|
||||
ErrorResultMock rv;
|
||||
|
||||
|
@ -202,12 +199,6 @@ TEST(AudioEventTimeline, InvalidEvents)
|
|||
is(rv, NS_ERROR_DOM_SYNTAX_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(nullptr, 0, 1.0, 1.0, rv);
|
||||
is(rv, NS_ERROR_DOM_SYNTAX_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(badCurve1, ArrayLength(badCurve1), 1.0, 1.0, rv);
|
||||
is(rv, NS_ERROR_TYPE_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(badCurve2, ArrayLength(badCurve2), 1.0, 1.0, rv);
|
||||
is(rv, NS_ERROR_TYPE_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(badCurve3, ArrayLength(badCurve3), 1.0, 1.0, rv);
|
||||
is(rv, NS_ERROR_TYPE_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(curve, ArrayLength(curve), NaN, 1.0, rv);
|
||||
is(rv, NS_ERROR_DOM_SYNTAX_ERR, "Correct error code returned");
|
||||
timeline.SetValueCurveAtTime(curve, ArrayLength(curve), Infinity, 1.0, rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче