
                          if (appendAudioFirst) {
                              sourceBufferAudio.appendBuffer(dataAudio);
                              sourceBufferVideo.appendBuffer(dataVideo);
                          } else {
                              sourceBufferVideo.appendBuffer(dataVideo);
                              sourceBufferAudio.appendBuffer(dataAudio);
                          }

                          test.waitForExpectedEvents(function()
                          {
             