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

Issue 1907443007: Use promises in notifications tests and enable controlling the page. (Closed)

Created:
4 years, 8 months ago by Michael van Ouwerkerk
Modified:
4 years, 8 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, blink-reviews, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use promises in notifications tests and enable controlling the page. For Web Notifications layout tests: * sendCommand returns a promise, sends one command, and waits for a response. * simulateNotificationClick returns a promise, simulates a click, and waits for a response. * Make it possible to control the test page when using ./ scope. Committed: https://crrev.com/9725447a246150f32bf88cfe71eee37ccb91abeb Cr-Commit-Position: refs/heads/master@{#389069}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. Address peter's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -452 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js View 5 chunks +29 lines, -8 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js View 1 chunk +0 lines, -110 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/resources/notification-data-reflection-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/resources/test-helpers.js View 1 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html View 3 chunks +32 lines, -44 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-action-reflection.html View 2 chunks +17 lines, -22 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notificationclick-openwindow-crash.html View 1 chunk +11 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-click.html View 1 chunk +11 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-close.html View 1 chunk +17 lines, -25 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-data-invalid.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-data-throw.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-direction.html View 1 chunk +11 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-404.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-slow-404.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get-close.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get-empty.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get-filter.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-get-from-service-worker.html View 1 chunk +11 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-click.html View 1 chunk +15 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-get.html View 2 chunks +16 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-get-filter.html View 2 chunks +11 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-404.html View 1 chunk +6 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-abort.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-redirect.html View 1 chunk +6 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow.html View 1 chunk +6 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-slow-404.html View 1 chunk +6 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-no-permission.html View 1 chunk +9 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443007/1
4 years, 8 months ago (2016-04-21 17:06:07 UTC) #2
Michael van Ouwerkerk
Hi Peter, I heard you like promises...
4 years, 8 months ago (2016-04-21 17:10:42 UTC) #5
Peter Beverloo
lgtm if bots are happy https://codereview.chromium.org/1907443007/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js File third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js (right): https://codereview.chromium.org/1907443007/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js#newcode64 third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js:64: case 'get-fetch-history': nit: try ...
4 years, 8 months ago (2016-04-21 17:20:56 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 18:17:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907443007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907443007/20001
4 years, 8 months ago (2016-04-22 09:24:25 UTC) #11
Michael van Ouwerkerk
https://codereview.chromium.org/1907443007/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js File third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js (right): https://codereview.chromium.org/1907443007/diff/1/third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js#newcode64 third_party/WebKit/LayoutTests/http/tests/notifications/instrumentation-service-worker.js:64: case 'get-fetch-history': On 2016/04/21 17:20:56, Peter Beverloo wrote: > ...
4 years, 8 months ago (2016-04-22 09:44:22 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-22 10:55:26 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:45:59 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9725447a246150f32bf88cfe71eee37ccb91abeb
Cr-Commit-Position: refs/heads/master@{#389069}

Powered by Google App Engine
This is Rietveld 408576698