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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html

Issue 441063003: Run microtasks at the end of each worker task. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
index 8ffaf116c4d7a1a2a2fee1f7b61013961b71eae5..3f8862aa1669175b378610022966e6b335566b36 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-lifetime-multiple-mediakeys.html
@@ -53,29 +53,24 @@
// Create a few MediaKeys + MediaKeySession objects. Only keep
// a reference to the last one created.
createMediaKeyWithMediaKeySession().then(function(mediaKeySession) {
- // Should be 1 MediaKeySession + 1 PromiseResolver for the
- // MediaKeySession.
+ // Should be 1 MediaKeySession.
+ assert_equals(numActiveDOMObjectsCreated(), 1);
+ return createMediaKeyWithMediaKeySession();
+ }).then(function(mediaKeySession) {
+ // Should be 2 MediaKeySessions.
assert_equals(numActiveDOMObjectsCreated(), 2);
return createMediaKeyWithMediaKeySession();
}).then(function(mediaKeySession) {
- // Should be 2 MediaKeySessions + 1 PromiseResolver for the
- // latest MediaKeySession.
+ // Should be 3 MediaKeySessions.
assert_equals(numActiveDOMObjectsCreated(), 3);
return createMediaKeyWithMediaKeySession();
}).then(function(mediaKeySession) {
- // Should be 3 MediaKeySessions + 1 PromiseResolver for the
- // latest MediaKeySession.
+ // Should be 4 MediaKeySessions.
assert_equals(numActiveDOMObjectsCreated(), 4);
return createMediaKeyWithMediaKeySession();
}).then(function(mediaKeySession) {
- // Should be 4 MediaKeySessions + 1 PromiseResolver for the
- // latest MediaKeySession.
+ // Should be 5 MediaKeySessions.
assert_equals(numActiveDOMObjectsCreated(), 5);
- return createMediaKeyWithMediaKeySession();
- }).then(function(mediaKeySession) {
- // Should be 5 MediaKeySessions + 1 PromiseResolver for the
- // latest MediaKeySession.
- assert_equals(numActiveDOMObjectsCreated(), 6);
// |mediaKeys| refers to the most recently created MediaKeys
// object.

Powered by Google App Engine
This is Rietveld 408576698