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

Unified Diff: LayoutTests/media/track/tracklist-is-reachable-no-crash.html

Issue 244493002: Oilpan: add transition types to track interface objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add crbug.com/365260 crashing test + expectation 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/track/tracklist-is-reachable-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/tracklist-is-reachable-no-crash.html
diff --git a/LayoutTests/media/track/tracklist-is-reachable-no-crash.html b/LayoutTests/media/track/tracklist-is-reachable-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..187fa858b00ce0ee91381c7948ada70352b68dcd
--- /dev/null
+++ b/LayoutTests/media/track/tracklist-is-reachable-no-crash.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+ <script src=../media-file.js></script>
+ <script src=../video-test.js></script>
+ <script>
+ var tracks;
+
+ function handler()
+ {
+ consoleWrite("PASS (no crash)");
+ }
+
+ function start()
+ {
+ var video = document.createElement("video");
+
+ consoleWrite("** Register an event handler on video element's TextTrackList.");
+ tracks = video.textTracks;
+ tracks.onaddtrack = handler;
+
+ // Clear 'video' to bring about its release (non-Oilpan.)
+ video = null;
+ consoleWrite("<br>** Force garbage collection.");
+ gc();
+ consoleWrite("** Inspect and invoke the handler.");
+ testExpected("tracks.onaddtrack", handler);
+ tracks.onaddtrack();
+ consoleWrite("");
+ endTest();
+ }
+
+ </script>
+ </head>
+ <body onload="start()">
+ <p>Test that a detached TextTrackList can still be used without crashing.</p>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/track/tracklist-is-reachable-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698