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

Issue 1312623003: Flakyness: fix notifications/ tests. (Closed)

Created:
5 years, 4 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 3 months ago
Reviewers:
johnme
CC:
blink-reviews, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/blink.git@webmidi-flakyness
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Flakyness: fix notifications/ tests. This is using the new PermissionsHelper.setPermission method that prevents race conditions when trying to use testRunner.setPermission. BUG=518981, 518980, 518979, 518976, 518978 Committed: https://crrev.com/21fc7fcbf05a64c7183747a04bbef93c663cee9e git-svn-id: svn://svn.chromium.org/blink/trunk@202169 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : add missing file #

Total comments: 13

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -51 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/notifications/click-document.html View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/notifications/click-window-focus-document.html View 1 2 3 2 chunks +23 lines, -22 lines 0 comments Download
M LayoutTests/http/tests/notifications/close-document.html View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/notifications/request-permission-promise.html View 3 chunks +16 lines, -16 lines 0 comments Download
M LayoutTests/http/tests/notifications/update-document.html View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
A + LayoutTests/http/tests/resources/permissions-helper.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (3 generated)
mlamouri (slow - plz ping)
5 years, 4 months ago (2015-08-25 20:36:36 UTC) #2
johnme
testRunner.setPermission is called incorrectly (with the same race condition) from 77 test files. If it's ...
5 years, 3 months ago (2015-08-26 12:27:32 UTC) #3
johnme
Thanks for looking into this btw, much appreciated!
5 years, 3 months ago (2015-08-26 12:28:03 UTC) #4
johnme
I just hit the same problem in http/tests/notifications/click-dedicated-worker.html when running tests locally...
5 years, 3 months ago (2015-08-27 13:38:10 UTC) #5
mlamouri (slow - plz ping)
Comments applied. PTAL. Regarding the Async prefix, I will introduce a method using a callback ...
5 years, 3 months ago (2015-08-31 16:31:42 UTC) #6
johnme
lgtm with async_test question. looking forward to the method using a callback :) https://codereview.chromium.org/1312623003/diff/20001/LayoutTests/http/tests/notifications/click-window-focus-document.html File ...
5 years, 3 months ago (2015-09-02 10:28:24 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/1312623003/diff/40001/LayoutTests/http/tests/notifications/click-document.html File LayoutTests/http/tests/notifications/click-document.html (right): https://codereview.chromium.org/1312623003/diff/40001/LayoutTests/http/tests/notifications/click-document.html#newcode15 LayoutTests/http/tests/notifications/click-document.html:15: PermissionsHelper.setPermission('notifications', 'granted').then(function() { On 2015/09/02 at 10:28:24, johnme wrote: ...
5 years, 3 months ago (2015-09-13 15:27:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312623003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312623003/60001
5 years, 3 months ago (2015-09-13 15:27:10 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202169
5 years, 3 months ago (2015-09-13 17:46:41 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:28:32 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/21fc7fcbf05a64c7183747a04bbef93c663cee9e

Powered by Google App Engine
This is Rietveld 408576698