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

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

Issue 2647723002: [Presentation API] reject request.start() with OperationError instead of UnknownError if previous s… (Closed)
Patch Set: add layout test for PREVIOUS_START_IN_PROGRESS error 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-start.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-start.html b/third_party/WebKit/LayoutTests/presentation/presentation-start.html
index 1f824eab2de8c8870b2d74e1e1e9dc1fe236c63f..f23de70e24caf6f70c6172b169b24add231d3a9e 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentation-start.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-start.html
@@ -11,15 +11,15 @@
var button = document.querySelector('button');
var testPresentationRequestStart = function(t, requestArgument, connectionUrl) {
- presentationServiceMock.then(t.step_func(service => {
+ presentationServiceMock.then(service => {
// This is receiving the user gesture and runs the callback.
- waitForClick(t.step_func(_ => {
+ waitForClick(() => {
new PresentationRequest(requestArgument).start().then(
t.step_func_done(connection => {
assert_equals(connection.url, connectionUrl);
}));
- }), button);
- }));
+ }, button);
+ });
};
async_test(t => {

Powered by Google App Engine
This is Rietveld 408576698