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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html

Issue 1497883002: MediaRecorder: update to spec (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: peter@s comments: add tests for BlobEvent ctor and reordered MediaRecorder.idl to match spec Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html b/third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html
index b8c5059abf0de15939c99a12452c10fbafc16641..ea0b3775310795e102f233032e6a5c2f895ba50e 100644
--- a/third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html
+++ b/third_party/WebKit/LayoutTests/fast/mediarecorder/BlobEvent-basic.html
@@ -18,4 +18,16 @@ test(function() {
}, 'check BlobEvent creation and content management');
+test(function() {
+ assert_throws(null,
+ function() { var blobEvent = new BlobEvent('BlobEvent'); });
+}, 'check BlobEvent needs two constructor parameters, type and BlobEventInit');
+
+test(function() {
+ assert_throws(null,
+ function() {
+ var blobEvent = new BlobEvent('BlobEvent', {data : "blergh"});
+ });
+}, 'check BlobEvent needs the second constructor parameter to be a BlobEventInit');
+
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698