Commit 556a37dd authored by Sriram's avatar Sriram Committed by Commit Bot

Upstream tests from media/track/opera/

Upstream below tests from media/track/opera/interfaces/VTTCue
to external/wpt/webvtt/api/VTTCue/
1. constructor.html
2. Removed getCueAsHTMLCrash.html infavor of getCueAsHTML.html

Bug: 782555
Change-Id: Ib4066a2d71b409d870118d1697dca0e10d926668
Reviewed-on: https://chromium-review.googlesource.com/848698Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: srirama chandra sekhar <srirama.m@samsung.com>
Cr-Commit-Position: refs/heads/master@{#526956}
parent f8d1e9f2
<!doctype html>
<title>VTTCue constructor</title>
<script src=../../../../../resources/testharness.js></script>
<script src=../../../../../resources/testharnessreport.js></script>
<title>VTTCue constructor exceptions</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
......
This is a testharness.js-based test.
PASS , creating the cue
FAIL , > assert_false: hasChildNodes() expected false got true
PASS ,
PASS , x\0
Harness: the test ran to completion.
<!DOCTYPE html>
<html>
<div>Test passes if it does not induce a crash.</div>
<script src=../../../../../resources/testharness.js></script>
<script src=../../../../../resources/testharnessreport.js></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
test(function(){
var c1 = new VTTCue(0, 1, '<c>x\0');
window.frag = c1.getCueAsHTML();
}, document.title+', creating the cue');
test(function(){
assert_false(frag.childNodes[0].hasChildNodes(), 'hasChildNodes()');
}, document.title+', >');
test(function(){}, document.title+', ');
test(function(){}, document.title+', x\\0');
</script>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment