HomePhabricator

tests: Fix QUnit failures due to pending ajax requests

Description

tests: Fix QUnit failures due to pending ajax requests

  • Changed tests to use mocked audio element, where applicable, to decouple behaviour.
  • Changed tests to immediately get response from mock server and fixed Ajax callbacks to work with this.
  • Set default server URL to the empty string.

Bug: T194620
Change-Id: Iaafd4e267c2ef6ca7b292991cfb2a5638305b9d7
(cherry picked from commit c168aa7acf9fc974b196f729aae624329457b40a)

Details

Provenance
Jdforrester-WMFAuthored on Apr 23 2018, 5:40 PM
LegoktmCommitted on Jan 3 2021, 7:04 PM
Parents
rEWIS8fcefab61ece: Hotfix for bcb22a5
Branches
Unknown
Tags
Unknown
ChangeId
Iaafd4e267c2ef6ca7b292991cfb2a5638305b9d7