function runTest(configEncrypted,configClear,qualifier) { var testname = testnamePrefix(qualifier, configEncrypted.keysystem) + ', temporary, ' + /video\/([^;]*)/.exec(configEncrypted.videoType)[1] + ', playback, encrypted and clear sources in separate segments'; var configuration = { initDataTypes: [ configEncrypted.initDataType ], audioCapabilities: [ { contentType: configEncrypted.audioType } ], videoCapabilities: [ { contentType: configEncrypted.videoType } ], sessionTypes: [ 'temporary' ] }; async_test(function(test) { var didAppendEncrypted = false, _video = configEncrypted.video, _mediaKeys, _mediaKeySession, _mediaSource, _sourceBuffer; function onFailure(error) { forceTestFailureFromPromise(test, error); } function onVideoError(event) { var message = (_video.error || {}).message || 'Got unknown error from