[mediasource-is-type-supported.html]
  type: testharness
  prefs: [media.mediasource.enabled:true, media.mediasource.whitelist:false]
  [Test invalid MIME format "video/webm"]
    expected: FAIL

  [Test invalid MIME format "video/webm;"]
    expected: FAIL

  [Test invalid MIME format "video/webm;codecs"]
    expected: FAIL

  [Test invalid MIME format "video/webm;codecs="]
    expected: FAIL

  [Test invalid MIME format "video/webm;codecs=""]
    expected: FAIL

  [Test invalid MIME format "video/webm;codecs="""]
    expected: FAIL

  [Test invalid mismatch between major type and codec ID "audio/webm;codecs="vp8""]
    expected: FAIL

  [Test valid WebM type "AUDIO/WEBM;CODECS="vorbis""]
    expected: FAIL

  [Test valid MP4 type "video/mp4;codecs="avc1.4d001e""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "video/mp4;codecs="avc1.42001e""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "audio/mp4;codecs="mp4a.40.2""]
    expected:
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "audio/mp4;codecs="mp4a.40.5""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "audio/mp4;codecs="mp4a.67""]
    expected: FAIL

  [Test valid MP4 type "video/mp4;codecs="mp4a.40.2""]
    expected:
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "video/mp4;codecs="avc1.4d001e,mp4a.40.2""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "video/mp4;codecs="mp4a.40.2 , avc1.4d001e ""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

  [Test valid MP4 type "video/mp4;codecs="avc1.4d001e,mp4a.40.5""]
    expected:
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if not debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if not debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86_64") and (bits == 64): FAIL
      if debug and (os == "linux") and (version == "Ubuntu 12.04") and (processor == "x86") and (bits == 32): FAIL
      if debug and (os == "win") and (version == "5.1.2600") and (processor == "x86") and (bits == 32): FAIL

