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:
Paul Adenot 2018-07-13 14:31:53 +02:00
Родитель da2d85b506
Коммит 1a7517e102
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

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