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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/idlharness.html

Issue 2546853003: Add W3C encrypted-media tests (Closed)
Patch Set: rebase now that content files landed Created 4 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
Index: third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/idlharness.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/idlharness.html b/third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/idlharness.html
new file mode 100644
index 0000000000000000000000000000000000000000..e65ad5e30ba275fb4628d1bfee3832ea99373929
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/idlharness.html
@@ -0,0 +1,51 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ <title>Encrypted Media Extentions IDL test</title>
+ <link rel="help" href="https://w3c.github.io/encrypted-media/">
+
+ <script src=/resources/testharness.js></script>
+ <script src=/resources/testharnessreport.js></script>
+ <script src=/resources/WebIDLParser.js></script>
+ <script src=/resources/idlharness.js></script>
+ <script src=/encrypted-media/util/fetch.js></script>
+ </head>
+ <body>
+ <h1 class="instructions">Description</h1>
+ <p class="instructions">
+ This test verifies that implementations of the Encrypted Media Extensions API match its WebIDL definition.
+ </p>
+
+ <div id='log'></div>
+
+ <script>
+ setup(function() {
+
+ fetch( 'EncryptedMediaExtensions.idl')
+ .then( function( response ) {
+ if ( !response.ok ) throw new Error( 'IDL fetch failed' );
+ return response.text();
+ } )
+ .then( function( idls ) {
+
+ var idl_array = new IdlArray();
+ idl_array.add_untested_idls("[PrimaryGlobal] interface Window {};");
+ idl_array.add_untested_idls("interface Navigator {};");
+ idl_array.add_untested_idls("interface ArrayBuffer {};");
+ idl_array.add_untested_idls("interface HTMLMediaElement {};");
+ idl_array.add_untested_idls("interface Event {};");
+ idl_array.add_untested_idls("interface EventTarget {};");
+
+ idl_array.add_idls(idls);
+
+ idl_array.test();
+
+ done();
+
+ } );
+
+ }, {explicit_done: true});
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698