https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5eb28eabd68d956e0d7e43c83ce4f38777549299 authored by Ms2ger on 10 May 2016, 08:33:02 UTC
fixup! Remove tests landed in #2984.
Tip revision: 5eb28ea
URL-createObjectURL-revoke.html
<!doctype html>
<html>
<head>
  <meta charset='utf-8'>
  <title>Revoking a created URL with URL.revokeObjectURL(url)</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
var video = document.createElement('video');
test(function() {
    var mediaSource = new MediaSource();
    var url = window.URL.createObjectURL(mediaSource);
    window.URL.revokeObjectURL(url);
    video.src = url;
    assert_equals(mediaSource.readyState, 'closed');
}, "Check revoking behavior of URL.revokeObjectURL(url).");
</script>
</body>
</html>
back to top