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> |