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

Issue 401623004: Add unit-tests for MenuButton and simplify implementation. (Closed)

Created:
6 years, 5 months ago by Jamie
Modified:
6 years, 5 months ago
Reviewers:
garykac, kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add unit-tests for MenuButton and simplify implementation. The old method of using a timer to set the closeHandler was messy and harder to unit-test. The new method uses stopPropagation, which is cleaner and makes the unit-tests simpler. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284295

Patch Set 1 #

Patch Set 2 : Added missing file. #

Total comments: 3

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -37 lines) Patch
M remoting/remoting_test.gypi View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M remoting/remoting_webapp_files.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/webapp/html/template_unittest.html View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/webapp/menu_button.css View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/menu_button.js View 2 chunks +31 lines, -28 lines 0 comments Download
A remoting/webapp/unittests/menu_button_unittest.js View 1 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Jamie
ptal https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css File remoting/webapp/menu_button.css (left): https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css#oldcode11 remoting/webapp/menu_button.css:11: visibility: hidden; visibility: hidden doesn't allow for verification ...
6 years, 5 months ago (2014-07-18 01:37:19 UTC) #1
kelvinp
lgtm https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css File remoting/webapp/menu_button.css (left): https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css#oldcode11 remoting/webapp/menu_button.css:11: visibility: hidden; On 2014/07/18 01:37:18, Jamie wrote: > ...
6 years, 5 months ago (2014-07-18 18:47:39 UTC) #2
Jamie
https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css File remoting/webapp/menu_button.css (left): https://codereview.chromium.org/401623004/diff/20001/remoting/webapp/menu_button.css#oldcode11 remoting/webapp/menu_button.css:11: visibility: hidden; On 2014/07/18 18:47:39, kelvinp wrote: > On ...
6 years, 5 months ago (2014-07-18 19:46:12 UTC) #3
Jamie
The CQ bit was checked by jamiewalch@chromium.org
6 years, 5 months ago (2014-07-18 19:46:15 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/401623004/20001
6 years, 5 months ago (2014-07-18 19:47:53 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 19:47:54 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 5 months ago (2014-07-18 19:47:55 UTC) #7
garykac
lgtm
6 years, 5 months ago (2014-07-18 19:52:40 UTC) #8
Jamie
The CQ bit was unchecked by jamiewalch@chromium.org
6 years, 5 months ago (2014-07-18 19:53:17 UTC) #9
Jamie
The CQ bit was checked by jamiewalch@chromium.org
6 years, 5 months ago (2014-07-18 19:53:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/401623004/20001
6 years, 5 months ago (2014-07-18 19:55:29 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 20:14:16 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 20:16:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/171720) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/29156) linux_gpu ...
6 years, 5 months ago (2014-07-18 20:16:52 UTC) #14
Jamie
The CQ bit was checked by jamiewalch@chromium.org
6 years, 5 months ago (2014-07-18 20:34:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/401623004/40001
6 years, 5 months ago (2014-07-18 20:36:38 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 23:53:38 UTC) #17
commit-bot: I haz the power
Failed to apply patch for remoting/remoting_webapp_files.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 5 months ago (2014-07-18 23:53:39 UTC) #18
Jamie
The CQ bit was checked by jamiewalch@chromium.org
6 years, 5 months ago (2014-07-19 00:06:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/401623004/60001
6 years, 5 months ago (2014-07-19 00:07:50 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 02:59:59 UTC) #21
Message was sent while issue was closed.
Change committed as 284295

Powered by Google App Engine
This is Rietveld 408576698