permissions: add layout tests for multiple requests
No permisisons, single, multiple and duplicate permissions
are all tested. Permission updates being reflected in the request
is also tested.
This CL depends on https://codereview.chromium.org/1352863002/
as it adds the ability to reset permisisons.
BUG=516626
Committed: https://crrev.com/3f93847acbf05646881eddde65fc285eb60d8556
Cr-Commit-Position: refs/heads/master@{#350677}
5 years, 3 months ago
(2015-09-17 18:18:31 UTC)
#2
Mounir: FYI for after the dependencies land.
Lalit Maganti
https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode93 LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:93: function runTest(i) { Should probably factor this out into ...
5 years, 3 months ago
(2015-09-17 20:01:05 UTC)
#3
5 years, 3 months ago
(2015-09-24 12:43:39 UTC)
#8
https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js
(right):
https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:65:
return setPermission('notifications', 'denied', location.origin,
location.origin);
On 2015/09/24 11:12:42, Mounir Lamouri wrote:
> Actually, could you do above:
> return Promise.all([setPermission('geolocation', 'denied', ...),
> setPermission('notifications', 'denied', ...)]);
>
> minus typos and inability to write JS on the spot
Realised that Promise.all does not work with the workers because there are all
sorts of cross promise issues with your custom test setPermission magic.
Switched back to chained set.
Lalit Maganti
Mounir: should be good now. PTAL.
5 years, 3 months ago
(2015-09-24 13:50:10 UTC)
#9
Mounir: should be good now. PTAL.
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
5 years, 3 months ago
(2015-09-24 15:09:50 UTC)
#10
5 years, 3 months ago
(2015-09-24 15:09:51 UTC)
#11
lgtm
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352863003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352863003/120001
5 years, 3 months ago
(2015-09-24 15:10:18 UTC)
#12
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/111781)
5 years, 3 months ago
(2015-09-24 17:15:12 UTC)
#14
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352863003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352863003/140001
5 years, 3 months ago
(2015-09-24 20:26:35 UTC)
#17
Issue 1352863003: permissions: add layout tests for multiple requests
(Closed)
Created 5 years, 3 months ago by Lalit Maganti
Modified 5 years, 3 months ago
Reviewers: mlamouri (slow - plz ping)
Base URL: https://chromium.googlesource.com/chromium/blink.git@fix-request-test
Comments: 25