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

Issue 2961483002: Refactor PostOnSamePage test to ensure the form is posted. (Closed)

Created:
3 years, 6 months ago by huangml1
Modified:
3 years, 6 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor PostOnSamePage test to ensure the form is posted. testBrowsingPostOnSamePage is flaky since post form needs some time to post data. The navigation manager is not synchronized with this action. The test may goBack before the form is actually posted. Refactor the test to change content when the form is posted. BUG= Review-Url: https://codereview.chromium.org/2961483002 Cr-Commit-Position: refs/heads/master@{#482116} Committed: https://chromium.googlesource.com/chromium/src/+/ce3df390dececebfd2c8d306fa682bf65748086a

Patch Set 1 #

Patch Set 2 : Refactor PostOnSamePage test to ensure the form is posted. #

Total comments: 1

Patch Set 3 : Move to form_egtest #

Total comments: 2

Patch Set 4 : Local variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -176 lines) Patch
M ios/chrome/browser/web/browsing_egtest.mm View 1 2 5 chunks +4 lines, -167 lines 0 comments Download
M ios/chrome/browser/web/forms_egtest.mm View 1 2 3 8 chunks +146 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
huangml1
PTAL,thanks
3 years, 6 months ago (2017-06-23 23:07:50 UTC) #3
Eugene But (OOO till 7-30)
Thank you for fixing the test. https://codereview.chromium.org/2961483002/diff/20001/ios/chrome/browser/web/browsing_egtest.mm File ios/chrome/browser/web/browsing_egtest.mm (right): https://codereview.chromium.org/2961483002/diff/20001/ios/chrome/browser/web/browsing_egtest.mm#newcode84 ios/chrome/browser/web/browsing_egtest.mm:84: class TestPostFormResponseProvider : ...
3 years, 6 months ago (2017-06-24 00:26:09 UTC) #4
huangml1
Moved two form related tests from browsingTestCase to FormTestCase. Thanks!
3 years, 6 months ago (2017-06-24 01:27:15 UTC) #5
Eugene But (OOO till 7-30)
lgtm! https://codereview.chromium.org/2961483002/diff/40001/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2961483002/diff/40001/ios/chrome/browser/web/forms_egtest.mm#newcode404 ios/chrome/browser/web/forms_egtest.mm:404: GetFormPostOnSamePageUrl().GetContent())] nit: Do you want to use a ...
3 years, 6 months ago (2017-06-24 01:32:20 UTC) #6
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/2961483002/60001
3 years, 6 months ago (2017-06-24 01:50:41 UTC) #9
commit-bot: I haz the power
3 years, 6 months ago (2017-06-24 02:02:55 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ce3df390dececebfd2c8d306fa68...

Powered by Google App Engine
This is Rietveld 408576698