Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/media-elements/interfaces/TextTrackCue/constructor.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>TextTrackCue constructor</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
test(function()
{
assert_not_equals(TextTrackCue, VTTCue);
}, "TextTrackCue and VTTCue are separate interfaces");
test(function()
{
assert_throws_js(TypeError, function()
{
new TextTrackCue(0, 0, "");
});
}, "TextTrackCue constructor should not be supported");
</script>
</body>
</html>