• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tf / pageflow / 2754 / 2
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 13 Aug 2020 09:49AM UTC
Files 486
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Aug 2020 09:28AM UTC coverage: 99.183%. First build
2.6.5, COVERALLS_PARALLEL=true

push

travis-ci

tf
Abort playAndFadeIn if paused while waiting for play promise

On a waveform audio page that has a atmo that is configured to pause
during page media playback, atmo resumes when seeking in the playing
waveform audio.

Wavesurfer pauses the media element while seeking. This causes the
atmo to be resumed and immediately faded out again. With the new async
promises, the following order of execution can be observed:

* Wavesurfer pauses before seek
* Atmo plays
| * Wavesurfer plays after seed
| * Atmo fades out (since it has not yet faded in yet this completes
| | immediately)
| * Atmo pauses
* Atmo fades in

Now two problems come into play:

* Audio5.js ignores the pause call [2] since it has not yet handled
  the `play` event and thinks that the player is still paused.

* The fade in happens even though the player has been paused in the
  meantime.

This commit only fixes the second problem. Atmo will still play muted
after the above scenario. We do not want to patch Audio5.js at this
point and also in Paged the atmo continued playing muted.

REDMINE-17786

[1] https://github.com/katspaugh/wavesurfer.js/blob/7af166d97/src/wavesurfer.js#L906

[2] https://github.com/codevise/pageflow/blob/master/vendor/assets/javascripts/audio5.min.js#L980

18326 of 18477 relevant lines covered (99.18%)

24.93 hits per line

Source Files on job 2754.2 (2.6.5, COVERALLS_PARALLEL=true)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2580
  • Travis Job 2754.2
  • 1c905dd4 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc