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

Unified Diff: LayoutTests/media/track/track-cue-empty-crash-expected.txt

Issue 22304002: Crash when calling getCueAsHTML() on a TextTrackCue with empty text (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed meta tag Created 7 years, 4 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 | « LayoutTests/media/track/track-cue-empty-crash.html ('k') | Source/core/html/track/WebVTTParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/track-cue-empty-crash-expected.txt
diff --git a/LayoutTests/media/track/track-cue-empty-crash-expected.txt b/LayoutTests/media/track/track-cue-empty-crash-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..622b043550fc8a1024a98c4f5c21086c6c3a3806
--- /dev/null
+++ b/LayoutTests/media/track/track-cue-empty-crash-expected.txt
@@ -0,0 +1,14 @@
+Tests that having an empty cue does not crash when calling getCueAsHTML().
+
+** The getCueAsHTML() method should return a document fragment **
+EXPECTED (fragment != 'null') OK
+
+** The document fragment should have one child, an empty Text node **
+EXPECTED (fragment.childNodes.length == '1') OK
+EXPECTED (fragment.childNodes[0].constructor.name == 'Text') OK
+EXPECTED (fragment.childNodes[0].length == '0') OK
+
+No crash. PASS.
+
+END OF TEST
+
« no previous file with comments | « LayoutTests/media/track/track-cue-empty-crash.html ('k') | Source/core/html/track/WebVTTParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698