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

Unified Diff: LayoutTests/media/track/track-cue-gc-wrapper-expected.txt

Issue 242113012: Make text track and cue wrapper objects dependent on their media element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Consistently use a Node-returning owner() Created 6 years, 8 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
Index: LayoutTests/media/track/track-cue-gc-wrapper-expected.txt
diff --git a/LayoutTests/media/track/track-cue-gc-wrapper-expected.txt b/LayoutTests/media/track/track-cue-gc-wrapper-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5ffeaeee3a0d442fa63f5186a46505e1b925c508
--- /dev/null
+++ b/LayoutTests/media/track/track-cue-gc-wrapper-expected.txt
@@ -0,0 +1,33 @@
+Tests that added cue object wrappers live across garbage collections.
+
+** Add a text track to the video element **
+EXPECTED (track.hasOwnProperty('custom') == 'true') OK
+** Add cues with own native property to the track with enter event listener. **
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+
+** Trigger a garbage collection. **
+EXPECTED (track.hasOwnProperty('custom') == 'true') OK
+
+** Play the video and test cue wrappers. **
+RUN(video.play())
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+EXPECTED (cue.hasOwnProperty('custom') == 'true') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698