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

Issue 10382145: Fix for broken CertificateViewerUITest.testDetails. (Closed)

Created:
8 years, 7 months ago by Kevin Greer
Modified:
8 years, 7 months ago
Reviewers:
flackr, mazda, Evan Stade
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Fix for broken CertificateViewerUITest.testDetails. BUG=127732 TEST=browser_tests --gtest_filter="CertificateViewerUITest*.*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137984

Patch Set 1 #

Patch Set 2 : Removed MAYBE_ prefix from unit test. #

Patch Set 3 : Removed delay for testing purposes. #

Patch Set 4 : Pre-set selectedItem to cause event when set later. #

Patch Set 5 : Putting back delay for testing. #

Patch Set 6 : With test to not delay during testing. #

Total comments: 1

Patch Set 7 : Create new initializeSecondTab method. #

Total comments: 6

Patch Set 8 : Renamed and exported initializeDetailTab method. #

Patch Set 9 : Now listens to tab change events. #

Patch Set 10 : addEventListener() requires 'true' for useCapture argument. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -10 lines) Patch
M chrome/browser/resources/certificate_viewer.js View 1 2 3 4 5 6 7 8 9 2 chunks +31 lines, -5 lines 0 comments Download
M chrome/test/data/webui/certificate_viewer_dialog_test.js View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Kevin Greer
There were two issues: 1. The delay I introduced to postpone the population of the ...
8 years, 7 months ago (2012-05-17 02:15:51 UTC) #1
flackr
https://chromiumcodereview.appspot.com/10382145/diff/13001/chrome/browser/resources/certificate_viewer.js File chrome/browser/resources/certificate_viewer.js (right): https://chromiumcodereview.appspot.com/10382145/diff/13001/chrome/browser/resources/certificate_viewer.js#newcode34 chrome/browser/resources/certificate_viewer.js:34: // a race-condition and makes the test flakey. It ...
8 years, 7 months ago (2012-05-17 02:28:16 UTC) #2
Kevin Greer
Please review. I created a new function called initializeSecondTab() which can be called from the ...
8 years, 7 months ago (2012-05-17 11:50:58 UTC) #3
flackr
http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js File chrome/browser/resources/certificate_viewer.js (right): http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js#newcode23 chrome/browser/resources/certificate_viewer.js:23: setTimeout(initializeSecondTab, 200); Can we also hook this up to ...
8 years, 7 months ago (2012-05-17 15:46:55 UTC) #4
Kevin Greer
Changed name and exported method. Added comment. http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js File chrome/browser/resources/certificate_viewer.js (right): http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js#newcode23 chrome/browser/resources/certificate_viewer.js:23: setTimeout(initializeSecondTab, 200); ...
8 years, 7 months ago (2012-05-17 15:56:12 UTC) #5
flackr
http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js File chrome/browser/resources/certificate_viewer.js (right): http://codereview.chromium.org/10382145/diff/15001/chrome/browser/resources/certificate_viewer.js#newcode23 chrome/browser/resources/certificate_viewer.js:23: setTimeout(initializeSecondTab, 200); By triggering it on selecting the details ...
8 years, 7 months ago (2012-05-17 16:56:58 UTC) #6
Kevin Greer
Please review.
8 years, 7 months ago (2012-05-17 18:32:13 UTC) #7
flackr
LGTM
8 years, 7 months ago (2012-05-17 18:43:18 UTC) #8
mazda
lgtm
8 years, 7 months ago (2012-05-18 07:32:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kgr@chromium.org/10382145/14004
8 years, 7 months ago (2012-05-18 11:29:57 UTC) #10
commit-bot: I haz the power
Presubmit check for 10382145-14004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-18 11:30:03 UTC) #11
Kevin Greer
Evan, please review (I need an owner). Thanks
8 years, 7 months ago (2012-05-18 13:04:24 UTC) #12
Evan Stade
lgtm
8 years, 7 months ago (2012-05-18 20:45:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kgr@chromium.org/10382145/14004
8 years, 7 months ago (2012-05-18 21:06:11 UTC) #14
commit-bot: I haz the power
8 years, 7 months ago (2012-05-19 00:08:32 UTC) #15
Change committed as 137984

Powered by Google App Engine
This is Rietveld 408576698