Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html

Issue 2133143003: Allow multiple URL.createObjectURL invocations for MediaSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html b/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html
index 6cc7bdc69152409879fb1b8949e00413d587865c..313dcf9edbf33270df3965872edfe795036afaa7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html
+++ b/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-multiple-attach.html
@@ -108,6 +108,14 @@
test.done();
});
}, 'Test that MediaSource can reattach if closed first');
+
+ mediasource_test(function(test, mediaElement, mediaSource) {
+ assert_equals(mediaSource.readyState, 'open', 'Source open');
+ var url1 = URL.createObjectURL(mediaSource);
+ var url2 = URL.createObjectURL(mediaSource);
+ assert_not_equals(url1, url2, 'URLs not unique');
+ test.done();
+ }, 'Calling URL.createObjectURL multiple times should generate unique URLs each time');
wolenetz 2016/07/11 18:03:17 I like this new test. Please also consider adding
servolk 2016/07/11 18:13:25 Done.
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698