Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / media-elements / interfaces / TextTrackCue / constructor.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <title>TextTrackCue constructor</title>
5         <script src="/resources/testharness.js"></script>
6         <script src="/resources/testharnessreport.js"></script>
7     </head>
8     <body>
9         <script>
10             test(function()
11             {
12                 assert_not_equals(TextTrackCue, VTTCue);
13             }, "TextTrackCue and VTTCue are separate interfaces");
14             test(function()
15             {
16                 assert_throws(new TypeError(), function()
17                 {
18                     new TextTrackCue(0, 0, "");
19                 });
20             }, "TextTrackCue constructor should not be supported");
21         </script>
22     </body>
23 </html>