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

Issue 2926763005: [MD Bookmarks] Refactor window timer mocking. (Closed)

Created:
3 years, 6 months ago by calamity
Modified:
3 years, 6 months ago
Reviewers:
tsergeant
CC:
chromium-reviews, dcheng, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org, jlklein+watch-closure_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD Bookmarks] Refactor window timer mocking. This CL adds TimerProxy which allows elements to mock out setTimeout and clearTimeout for testing purposes in a nicer way. BUG=725786 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2926763005 Cr-Commit-Position: refs/heads/master@{#480354} Committed: https://chromium.googlesource.com/chromium/src/+/12a52a35a4bfa982e7fb1c320d16c15691141957

Patch Set 1 : #

Total comments: 11

Patch Set 2 : rebase #

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -46 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/dnd_manager.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/dnd_manager.js View 1 7 chunks +16 lines, -16 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/timer_proxy.html View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/timer_proxy.js View 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/toast_manager.js View 2 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/dnd_manager_test.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/test_store.js View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/test/data/webui/md_bookmarks/test_timer_proxy.js View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/toast_manager_test.js View 1 2 1 chunk +10 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
calamity
3 years, 6 months ago (2017-06-13 05:04:37 UTC) #9
tsergeant
https://codereview.chromium.org/2926763005/diff/60001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2926763005/diff/60001/chrome/browser/browser_resources.grd#newcode299 chrome/browser/browser_resources.grd:299: <include name="IDR_MD_BOOKMARKS_TIMER_PROXY_HTML" file="resources\md_bookmarks\timer_proxy.html" type="BINDATA" /> Move this up, Timer ...
3 years, 6 months ago (2017-06-13 06:48:43 UTC) #11
calamity
https://codereview.chromium.org/2926763005/diff/60001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2926763005/diff/60001/chrome/browser/browser_resources.grd#newcode299 chrome/browser/browser_resources.grd:299: <include name="IDR_MD_BOOKMARKS_TIMER_PROXY_HTML" file="resources\md_bookmarks\timer_proxy.html" type="BINDATA" /> On 2017/06/13 06:48:43, tsergeant ...
3 years, 6 months ago (2017-06-16 02:59:26 UTC) #16
tsergeant
lgtm https://codereview.chromium.org/2926763005/diff/60001/chrome/test/data/webui/md_bookmarks/test_timer_proxy.js File chrome/test/data/webui/md_bookmarks/test_timer_proxy.js (right): https://codereview.chromium.org/2926763005/diff/60001/chrome/test/data/webui/md_bookmarks/test_timer_proxy.js#newcode33 chrome/test/data/webui/md_bookmarks/test_timer_proxy.js:33: return this.timeoutIds_++; On 2017/06/16 02:59:26, calamity wrote: > ...
3 years, 6 months ago (2017-06-16 03:54:22 UTC) #17
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/2926763005/100001
3 years, 6 months ago (2017-06-19 03:56:24 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 05:30:20 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/12a52a35a4bfa982e7fb1c320d16...

Powered by Google App Engine
This is Rietveld 408576698