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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-v2-events.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-v2-events.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html b/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html
index fdf980cf20f91597025950fdc20c980dae78966d..10323dbd657b3d43309eccf8bb0afd5443477579 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-events.html
@@ -22,16 +22,16 @@
test.done();
}
- MediaKeys.create('org.w3.clearkey').then(function(mediaKeys) {
+ MediaKeys.create('org.w3.clearkey').then(test.step_func(function(mediaKeys) {
var initDataType = getInitDataType();
return mediaKeys.createSession(initDataType, getInitData(initDataType));
- }).then(function(result) {
+ })).then(test.step_func(function(result) {
mediaKeySession = result;
- waitForEventAndRunStep('message', mediaKeySession, processMessage, test);
- }).catch(function(error) {
+ waitForEventAndRunStep('message', mediaKeySession, test.step_func(processMessage), test);
+ })).catch(test.step_func(function(error) {
forceTestFailureFromPromise(test, error);
- });
+ }));
}, 'Verify v2 events.');
</script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698