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

Unified Diff: third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html

Issue 2863903002: [Presentation API] Change controller connection to 'terminated' when receiver connection terminates (Closed)
Patch Set: fix layout test failures Created 3 years, 7 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: third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html
diff --git a/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html b/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html
index 72bd6992132575b7f9bbd6047f3f07c35cec0f0b..a94f8e89be753c38505aa34d1159993eb4eb9486 100644
--- a/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html
+++ b/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-postmessage.html
@@ -6,6 +6,10 @@
<script src="presentation-service-mock.js"></script>
<script>
+// Parent window sets parameter for this page.
+assert_not_equals(controllerConnectionPtr, null);
+assert_not_equals(receiverConnectionRequest, null);
+
internals.settings.setPresentationReceiver(true);
var connection = null;
@@ -15,7 +19,8 @@ presentationServiceMock.then(mockService => {
const id = 'fakeSessionId';
mockService.onSetClient = () => {
- mockService.onReceiverConnectionAvailable(url, id);
+ mockService.onReceiverConnectionAvailable(
+ url, id, controllerConnectionPtr, receiverConnectionRequest);
};
navigator.presentation.receiver.connectionList.then(list => {

Powered by Google App Engine
This is Rietveld 408576698