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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html

Issue 1973863003: Implement SetWrapperReferenceFrom idl attribute within traceWrappers for media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary tracing Created 4 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 | third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html b/third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html
index 11f9f89a8f0300873c6c5ec4e1f82b697f48ecdb..91fe7213c93666927fb0ae0c87cac8a2f1f568ea 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper.html
@@ -26,7 +26,11 @@
findMediaElement();
video.src = findMediaFile('video', '../content/test');
+ video.textTracks.custom = "trackList";
+ testExpected("video.textTracks.hasOwnProperty('custom')", true);
+
consoleWrite("** Add a text track to the video element **");
+
track = video.addTextTrack("captions", "regular captions track", "en");
track.custom = "track";
testExpected("track.hasOwnProperty('custom')", true);
@@ -37,6 +41,7 @@
c.custom = "cue";
c.addEventListener("enter", checkNativeProperty);
track.addCue(c);
+ c = null;
}
for (var i = 0; i < 10; i++) {
cue = track.cues[i];
@@ -46,7 +51,11 @@
consoleWrite("");
consoleWrite("** Trigger a garbage collection. **");
track = null;
+ cue = null;
gc();
+
+ testExpected("video.textTracks.hasOwnProperty('custom')", true);
+
track = video.textTracks[0];
testExpected("track.hasOwnProperty('custom')", true);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/track/track-cue-gc-wrapper-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698