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

Issue 10985069: [test fixlet] Add tests for the zoom icon in the location bar on GTK. (Closed)

Created:
8 years, 2 months ago by Dan Beam
Modified:
8 years, 2 months ago
CC:
chromium-reviews, vandebo (ex-Chrome)
Visibility:
Public.

Description

[test fixlet] Add tests for the zoom icon in the location bar on GTK. BUG=None TEST=LocationBarGtkZoomTest.* and ViewIDTest.* pass on bots. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160294

Patch Set 1 #

Patch Set 2 : better #

Patch Set 3 : w00t #

Patch Set 4 : bubble tests #

Patch Set 5 : gyp changes #

Patch Set 6 : gyp take 2 #

Patch Set 7 : alpha #

Patch Set 8 : typo #

Patch Set 9 : remix #

Patch Set 10 : sanity #

Patch Set 11 : making bubble tests interactive_ui_tests #

Total comments: 6

Patch Set 12 : thestig@ review #

Patch Set 13 : refactor #

Patch Set 14 : icon checks #

Patch Set 15 : TODO() + comment fix #

Total comments: 22

Patch Set 16 : estade@ review part 1 #

Patch Set 17 : estade@ review part 2 #

Patch Set 18 : ViewIDs #

Patch Set 19 : typo #

Patch Set 20 : EXPECT_FALSE #

Patch Set 21 : removed more redundant tests #

Patch Set 22 : rebase #

Total comments: 13

Patch Set 23 : flakiness fix? #

Patch Set 24 : flakiless #

Patch Set 25 : only icon tests #

Patch Set 26 : view IDs #

Total comments: 5

Patch Set 27 : mac #

Patch Set 28 : estade@ review part 3 #

Patch Set 29 : mac fixes #

Total comments: 2

Patch Set 30 : ifdef mac viewid out #

Patch Set 31 : typo #

Patch Set 32 : add todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -10 lines) Patch
M build/filename_rules.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -2 lines 0 comments Download
A chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +172 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/view_id_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Dan Beam
8 years, 2 months ago (2012-09-28 00:36:42 UTC) #1
Dan Beam
+thestig@ for chrome/chrome_test.gypi, +vandebo as FYI
8 years, 2 months ago (2012-09-28 00:48:45 UTC) #2
Lei Zhang
.gypi change lgtm erg: perhaps we should add a new rule in build/filename_rules.gypi?
8 years, 2 months ago (2012-09-28 00:52:27 UTC) #3
Elliot Glaysher
On 2012/09/28 00:52:27, Lei Zhang wrote: > .gypi change lgtm > > erg: perhaps we ...
8 years, 2 months ago (2012-09-28 16:41:20 UTC) #4
Dan Beam
On 2012/09/28 16:41:20, Elliot Glaysher wrote: > On 2012/09/28 00:52:27, Lei Zhang wrote: > > ...
8 years, 2 months ago (2012-09-28 19:09:50 UTC) #5
Lei Zhang
lgtm yep, thanks!
8 years, 2 months ago (2012-09-28 21:01:21 UTC) #6
Lei Zhang
https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk.h File chrome/browser/ui/gtk/location_bar_view_gtk.h (right): https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk.h#newcode425 chrome/browser/ui/gtk/location_bar_view_gtk.h:425: FRIEND_TEST_ALL_PREFIXES(ZoomBubbleGtkTest, BubbleSanityTest); IWYU: base/gtest_prod_util.h https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode24 ...
8 years, 2 months ago (2012-10-01 23:35:54 UTC) #7
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk.h File chrome/browser/ui/gtk/location_bar_view_gtk.h (right): https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk.h#newcode425 chrome/browser/ui/gtk/location_bar_view_gtk.h:425: FRIEND_TEST_ALL_PREFIXES(ZoomBubbleGtkTest, BubbleSanityTest); On 2012/10/01 23:35:54, Lei Zhang wrote: > ...
8 years, 2 months ago (2012-10-02 00:03:05 UTC) #8
Lei Zhang
https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode24 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:24: #define ASSERT_ZOOM_EQ(contents, percent) \ On 2012/10/02 00:03:06, Dan Beam ...
8 years, 2 months ago (2012-10-02 00:09:52 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/27001/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode24 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:24: #define ASSERT_ZOOM_EQ(contents, percent) \ On 2012/10/02 00:09:52, Lei Zhang ...
8 years, 2 months ago (2012-10-02 01:42:49 UTC) #10
Lei Zhang
lgtm++
8 years, 2 months ago (2012-10-02 02:09:15 UTC) #11
Dan Beam
erg: ping as you're a local owner in chrome/browser/ui/gtk, let me know if/when you can ...
8 years, 2 months ago (2012-10-02 02:37:15 UTC) #12
Evan Stade
https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc File chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc#newcode43 chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc:43: std::string label(text); combine L42-43 https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc#newcode44 chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc:44: EXPECT_TRUE(label.find(base::IntToString(percent)) != std::string::npos); ...
8 years, 2 months ago (2012-10-02 08:05:58 UTC) #13
Evan Stade
and the same line of de-dupe reasoning applies to the LocationBarView tests https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc ...
8 years, 2 months ago (2012-10-02 08:12:00 UTC) #14
Dan Beam
still need to use view IDs and change location bar test https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc File chrome/browser/ui/gtk/zoom_bubble_gtk_browsertest.cc (right): ...
8 years, 2 months ago (2012-10-02 15:53:23 UTC) #15
Elliot Glaysher
estade is also an owner, but lgtm
8 years, 2 months ago (2012-10-02 16:31:28 UTC) #16
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/17003/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode80 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:80: GetLocationBarView()->zoom_.get(); On 2012/10/02 08:12:00, Evan Stade wrote: > another ...
8 years, 2 months ago (2012-10-02 16:41:42 UTC) #17
Evan Stade
https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode26 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:26: // TODO(dbeam): share some testing code with ZoomBubbleGtkTest. is ...
8 years, 2 months ago (2012-10-02 18:35:59 UTC) #18
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode26 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:26: // TODO(dbeam): share some testing code with ZoomBubbleGtkTest. On ...
8 years, 2 months ago (2012-10-02 19:34:13 UTC) #19
Lei Zhang
https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (left): https://chromiumcodereview.appspot.com/10985069/diff/27020/chrome/chrome_tests.gypi#oldcode3367 chrome/chrome_tests.gypi:3367: 'browser/ui/gtk/confirm_bubble_gtk_browsertest.cc', On 2012/10/02 19:34:14, Dan Beam wrote: > On ...
8 years, 2 months ago (2012-10-02 19:56:25 UTC) #20
Dan Beam
estade@: I'll address any follow up comments in another CL, let's see if this even ...
8 years, 2 months ago (2012-10-03 09:09:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/10985069/41001
8 years, 2 months ago (2012-10-03 09:09:22 UTC) #22
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 2 months ago (2012-10-03 11:02:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/10985069/45001
8 years, 2 months ago (2012-10-04 01:33:52 UTC) #24
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 2 months ago (2012-10-04 03:39:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/10985069/21007
8 years, 2 months ago (2012-10-04 07:41:20 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-04 08:21:14 UTC) #27
Evan Stade
https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode118 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:118: ExpectTooltipContainsZoom(); ... you didn't check the percent was >100 ...
8 years, 2 months ago (2012-10-04 11:51:21 UTC) #28
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode118 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:118: ExpectTooltipContainsZoom(); On 2012/10/04 11:51:22, Evan Stade wrote: > ...
8 years, 2 months ago (2012-10-04 18:14:41 UTC) #29
Evan Stade
lgtm https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/21007/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode118 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:118: ExpectTooltipContainsZoom(); On 2012/10/04 18:14:41, Dan Beam wrote: > ...
8 years, 2 months ago (2012-10-04 19:07:43 UTC) #30
Evan Stade
https://chromiumcodereview.appspot.com/10985069/diff/30020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/30020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode36 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:36: ASSERT_GT(GetZoomPercent(contents), 100); actually, shouldn't these be EXPECT? I don't ...
8 years, 2 months ago (2012-10-04 19:08:30 UTC) #31
Dan Beam
https://chromiumcodereview.appspot.com/10985069/diff/30020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc File chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc (right): https://chromiumcodereview.appspot.com/10985069/diff/30020/chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc#newcode36 chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc:36: ASSERT_GT(GetZoomPercent(contents), 100); On 2012/10/04 19:08:30, Evan Stade wrote: > ...
8 years, 2 months ago (2012-10-04 21:24:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/10985069/23017
8 years, 2 months ago (2012-10-04 21:30:00 UTC) #33
commit-bot: I haz the power
8 years, 2 months ago (2012-10-05 01:47:15 UTC) #34
Change committed as 160294

Powered by Google App Engine
This is Rietveld 408576698