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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash.html

Issue 16019013: Use HTMLElementFactory to create equivalent elements in WebVTTElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename expected results file into proper directory. Created 7 years, 7 months 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 | LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash.html b/LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash.html
new file mode 100644
index 0000000000000000000000000000000000000000..09492f34a85356455c790dfaa5c2e10e84c6a0e6
--- /dev/null
+++ b/LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<div>Test passes if it does not induce a crash.</div>
+<script src=../../../../../resources/testharness.js></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+test(function(){
+ var c1 = new TextTrackCue(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>
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTMLCrash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698