From 15279ba0a37748060941f54609f7a4104d115680 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 18 May 2020 21:15:32 -0400 Subject: [PATCH] fix test --- test/js/samples/media-bindings/expected.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index 6bba281c3a..441fff1e0e 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -49,9 +49,7 @@ function create_fragment(ctx) { audio.volume = /*volume*/ ctx[6]; } - if (!isNaN(/*muted*/ ctx[7])) { - audio.muted = /*muted*/ ctx[7]; - } + audio.muted = /*muted*/ ctx[7]; if (!isNaN(/*playbackRate*/ ctx[8])) { audio.playbackRate = /*playbackRate*/ ctx[8]; @@ -74,7 +72,7 @@ function create_fragment(ctx) { ]; }, p(ctx, [dirty]) { - if (!audio_updating && dirty & /*currentTime*/ 9 && !isNaN(/*currentTime*/ ctx[3])) { + if (!audio_updating && dirty & /*currentTime*/ 8 && !isNaN(/*currentTime*/ ctx[3])) { audio.currentTime = /*currentTime*/ ctx[3]; } @@ -88,8 +86,8 @@ function create_fragment(ctx) { audio.volume = /*volume*/ ctx[6]; } - if (dirty & /*muted*/ 128 && !isNaN(/*muted*/ ctx[7])) { - audio.muted = /*muted*/ ctx[7]; + if (dirty & /*muted*/ 128) { + audio.muted = !!/*muted*/ ctx[7]; } if (dirty & /*playbackRate*/ 256 && !isNaN(/*playbackRate*/ ctx[8])) {