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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeysession-reference.html

Issue 2270383002: clean up encrypted-media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test MediaKeySession lifetime without release()</title> 4 <title>Test MediaKeySession lifetime without release()</title>
5 <script src="encrypted-media-utils.js"></script> 5 <script src="encrypted-media-utils.js"></script>
6 <script src="../../resources/testharness.js"></script> 6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script> 7 <script src="../../resources/testharnessreport.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div>
11 <script> 10 <script>
12 // Since MediaKeySession (and MediaKeys) are ActiveDOMObjects, 11 // Since MediaKeySession (and MediaKeys) are ActiveDOMObjects,
13 // we can determine when they are garbage collected. 12 // we can determine when they are garbage collected.
14 // MediaKeySessions remain as long as: 13 // MediaKeySessions remain as long as:
15 // JavaScript has a reference to it 14 // JavaScript has a reference to it
16 // OR (MediaKeys is around 15 // OR (MediaKeys is around
17 // AND the session has not received a close() event) 16 // AND the session has not received a close() event)
18 17
19 async_test(function(test) 18 async_test(function(test)
20 { 19 {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 assert_between_inclusive(numActiveDOMObjectsCreated(), 0, 1, 'After final gc()'); 143 assert_between_inclusive(numActiveDOMObjectsCreated(), 0, 1, 'After final gc()');
145 144
146 test.done(); 145 test.done();
147 }).catch(function(error) { 146 }).catch(function(error) {
148 forceTestFailureFromPromise(test, error); 147 forceTestFailureFromPromise(test, error);
149 }); 148 });
150 }, 'MediaKeySession lifetime without release()'); 149 }, 'MediaKeySession lifetime without release()');
151 </script> 150 </script>
152 </body> 151 </body>
153 </html> 152 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698