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

Issue 1305043004: Add permissions helper class to carry out promise based testing (Closed)

Created:
5 years, 4 months ago by Lalit Maganti
Modified:
5 years, 4 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add permissions helper class to carry out promise based testing There are numerous flaky tests which are likely caused by race conditions between testRunner.setPermission and subsequent operations. Introduce a helper class which wraps testRunner.setPermission with a promise based system which can be used to prevent races BUG=(multiple) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201057

Patch Set 1 #

Patch Set 2 : Fix up issues #

Total comments: 12

Patch Set 3 : Fix review comments #

Patch Set 4 : Fix comments on review #

Total comments: 4

Patch Set 5 : Fix review comments #

Patch Set 6 : Added file level comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
A LayoutTests/resources/permissions-helper.js View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
Lalit Maganti
I've gone down the route of splitting up the commits after the situation with ManifestIconDownloader ...
5 years, 4 months ago (2015-08-21 15:39:01 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/1305043004/diff/20001/LayoutTests/resources/permissions-helper.js File LayoutTests/resources/permissions-helper.js (right): https://codereview.chromium.org/1305043004/diff/20001/LayoutTests/resources/permissions-helper.js#newcode1 LayoutTests/resources/permissions-helper.js:1: function permissionNameToPermissionObject(permissionName) { It would be good if we ...
5 years, 4 months ago (2015-08-21 17:15:23 UTC) #3
Lalit Maganti
https://codereview.chromium.org/1305043004/diff/20001/LayoutTests/resources/permissions-helper.js File LayoutTests/resources/permissions-helper.js (right): https://codereview.chromium.org/1305043004/diff/20001/LayoutTests/resources/permissions-helper.js#newcode1 LayoutTests/resources/permissions-helper.js:1: function permissionNameToPermissionObject(permissionName) { On 2015/08/21 17:15:23, Mounir Lamouri wrote: ...
5 years, 4 months ago (2015-08-21 18:30:19 UTC) #4
mlamouri (slow - plz ping)
lgtm with comments applied. I think it might be great if you could add a ...
5 years, 4 months ago (2015-08-22 10:19:29 UTC) #5
Lalit Maganti
https://codereview.chromium.org/1305043004/diff/60001/LayoutTests/resources/permissions-helper.js File LayoutTests/resources/permissions-helper.js (right): https://codereview.chromium.org/1305043004/diff/60001/LayoutTests/resources/permissions-helper.js#newcode5 LayoutTests/resources/permissions-helper.js:5: return {name: "midi"} On 2015/08/22 10:19:29, Mounir Lamouri wrote: ...
5 years, 4 months ago (2015-08-24 09:18:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305043004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305043004/80001
5 years, 4 months ago (2015-08-24 09:26:06 UTC) #9
mlamouri (slow - plz ping)
I think you missed the first comment.
5 years, 4 months ago (2015-08-24 09:27:38 UTC) #11
Lalit Maganti
Sorry about that. Will be more careful from now on. Added the comment.
5 years, 4 months ago (2015-08-24 09:34:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305043004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305043004/100001
5 years, 4 months ago (2015-08-24 09:34:35 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 10:15:30 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201057

Powered by Google App Engine
This is Rietveld 408576698