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

Issue 2785093003: Fix flaky TEST PaymentAppBrowserTest.PaymentAppInvocation. (Closed)

Created:
3 years, 8 months ago by arthursonzogni
Modified:
3 years, 8 months ago
Reviewers:
zino
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix flaky TEST PaymentAppBrowserTest.PaymentAppInvocation. The test PaymentAppBrowserTest.PaymentAppInvocation was flaky. I was able to make it fails several times. On the other side, when --browser-side-navigation is enabled, this test fails very often. This is due to a race condition: payment_app.js ¦ payment_app_window.html -------------------------------¦---------------------------------------- client.openWindow ¦ | |_______________¦_______ | ¦ | (promise onFullfiled called) ¦ | | ¦ | ... ¦ | | ¦ | v ¦ | AddEventListener(...) ¦ postMessage('payment_app_window_ready') * postMessage('payment_app_window_ready') could be sended/received before the event listener is registered on the service worker. In this case the 'message' event was not handled. It causes the test to fails. * A little bit surprising, it could also be send before the promise is resolved. That's why I had to use the maybeSendPaymentRequest(). BUG=703602 Review-Url: https://codereview.chromium.org/2785093003 Cr-Commit-Position: refs/heads/master@{#461074} Committed: https://chromium.googlesource.com/chromium/src/+/007c7242b1ac8aad353e2eac5279071ac59936c0

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -32 lines) Patch
M content/test/data/payments/payment_app.js View 1 chunk +26 lines, -32 lines 1 comment Download

Messages

Total messages: 14 (9 generated)
arthursonzogni
Hi jinho. Sorry, I haven't seen the issue before uploading it: https://crbug.com/703602 I have found ...
3 years, 8 months ago (2017-03-30 15:15:50 UTC) #4
zino
On 2017/03/30 15:15:50, arthursonzogni wrote: > Hi jinho. > > Sorry, I haven't seen the ...
3 years, 8 months ago (2017-03-30 16:48:23 UTC) #8
arthursonzogni
On 2017/03/30 16:48:23, zino wrote: > On 2017/03/30 15:15:50, arthursonzogni wrote: > > Hi jinho. ...
3 years, 8 months ago (2017-03-31 07:52:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2785093003/1
3 years, 8 months ago (2017-03-31 07:53:34 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 07:59:09 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/007c7242b1ac8aad353e2eac5279...

Powered by Google App Engine
This is Rietveld 408576698