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

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html

Issue 2552343009: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed)
Patch Set: resolve code review comments from foolip Created 3 years, 11 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/presentation-reconnect.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html b/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html
index c9c7a7d02d6cadf131b25e1f274f3546eb638c28..6d70f892fce8c86ee70f0a1c924f1b5d39cf1a54 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-reconnect.html
@@ -9,24 +9,9 @@
<button>click me</button>
<script>
-function waitForClick(callback) {
- var button = document.querySelector('button');
- button.addEventListener('click', callback, { once: true });
-
- if (!('eventSender' in window))
- return;
-
- var boundingRect = button.getBoundingClientRect();
- var x = boundingRect.left + boundingRect.width / 2;
- var y = boundingRect.top + boundingRect.height / 2;
-
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
-}
-
async_test(t => {
presentationServiceMock.then(mockService => {
+ var button = document.querySelector('button');
var connection = null;
var request = new PresentationRequest('https://example.com');
@@ -40,7 +25,7 @@ async_test(t => {
assert_true(connection === conn);
}));
});
- });
+ }, button);
});
}, "Test that Presentation.reconnect() resolves with existing presentation connection.");

Powered by Google App Engine
This is Rietveld 408576698