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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6 <script src=../media-file.js></script>
7 <script src=../video-test.js></script>
8 <script>
9 var tracks;
10
11 function handler()
12 {
13 consoleWrite("PASS (no crash)");
14 }
15
16 function start()
17 {
18 var video = document.createElement("video");
19
20 consoleWrite("** Register an event handler on video element's Te xtTrackList.");
21 tracks = video.textTracks;
22 tracks.onaddtrack = handler;
23
24 // Clear 'video' to bring about its release (non-Oilpan.)
25 video = null;
26 consoleWrite("<br>** Force garbage collection.");
27 gc();
28 consoleWrite("** Inspect and invoke the handler.");
29 testExpected("tracks.onaddtrack", handler);
30 tracks.onaddtrack();
31 consoleWrite("");
32 endTest();
33 }
34
35 </script>
36 </head>
37 <body onload="start()">
38 <p>Test that a detached TextTrackList can still be used without crashing .</p>
39 </body>
40 </html>
OLDNEW
« 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