commit | 410086b3cdde4e09a17606626a6e10e95d56db1c | [log] [tgz] |
---|---|---|
author | エリス <erisu@users.noreply.github.com> | Wed Aug 31 19:06:17 2022 +0900 |
committer | GitHub <noreply@github.com> | Wed Aug 31 19:06:17 2022 +0900 |
tree | 1ee2bf8a1ee6ccbdee343e6486871d1e3c4c793b | |
parent | cececcc883a9fa52a3280008302ee8edfbc37977 [diff] |
test(spec.22): pause media before calling getCurrentPosition (#355)
diff --git a/tests/tests.js b/tests/tests.js index 0cfcc59..6b9c389 100644 --- a/tests/tests.js +++ b/tests/tests.js
@@ -435,6 +435,7 @@ checkInterval = setInterval(function () { if (context.done) return; media.seekTo(5000); + media.pause(); // pause media before confirming if it seeked to 5 seconds against current position. media.getCurrentPosition(function (position) { expect(position).toBeCloseTo(5, 0); context.done = true;