<!doctype html>
<html>
<head>
  <meta charset='utf-8'>
  <title>SourceBuffer#mode with generate timestamps flag true</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>

<script>
var mimes = ['audio/aac', 'audio/mpeg'];

//check the browser supports the MIME used in this test
function isTypeSupported(mime) {
    if(!MediaSource.isTypeSupported(mime)) {
        this.step(function() {
            assert_unrea