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

Issue 1532503003: Add FakeChromeEvent (Closed)

Created:
5 years ago by stevenjb
Modified:
5 years ago
Reviewers:
dschuyler, michaelpg, dpapad
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FakeChromeEvent This will be needed for bluetooth and networking tests (and any other tests that rely on extension APIs with events). Initially use it in FakeSettingsPrivate. BUG=425627 Committed: https://crrev.com/5afbdd002bc714d522b28ed13fcbb61c3e1bbd5b Cr-Commit-Position: refs/heads/master@{#366181}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use Set for listeners #

Total comments: 4

Patch Set 3 : Feedback #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : var_args #

Patch Set 6 : Fix extraLibraries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -23 lines) Patch
A chrome/test/data/webui/fake_chrome_event.js View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/appearance_browsertest.js View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/fake_settings_private.js View 4 chunks +3 lines, -17 lines 0 comments Download
M chrome/test/data/webui/settings/settings_page_browsertest.js View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 29 (9 generated)
stevenjb
5 years ago (2015-12-16 20:44:36 UTC) #2
dpapad
https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js#newcode26 chrome/test/data/webui/fake_chrome_event.js:26: var index = this.listeners_.indexOf(listener); Can you use a native ...
5 years ago (2015-12-16 21:18:07 UTC) #3
stevenjb
https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js#newcode26 chrome/test/data/webui/fake_chrome_event.js:26: var index = this.listeners_.indexOf(listener); On 2015/12/16 21:18:07, dpapad wrote: ...
5 years ago (2015-12-16 22:20:57 UTC) #4
dschuyler
https://codereview.chromium.org/1532503003/diff/20001/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/20001/chrome/test/data/webui/fake_chrome_event.js#newcode20 chrome/test/data/webui/fake_chrome_event.js:20: addListener: function(listener) { Maybe: since this is now a ...
5 years ago (2015-12-16 22:27:03 UTC) #5
dpapad
On 2015/12/16 at 22:20:57, stevenjb wrote: > https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js > File chrome/test/data/webui/fake_chrome_event.js (right): > > https://codereview.chromium.org/1532503003/diff/1/chrome/test/data/webui/fake_chrome_event.js#newcode26 ...
5 years ago (2015-12-16 22:39:08 UTC) #6
dpapad
On 2015/12/16 at 22:39:08, dpapad wrote: > On 2015/12/16 at 22:20:57, stevenjb wrote: > > ...
5 years ago (2015-12-16 22:41:45 UTC) #7
stevenjb
You're right. That makes a lot more sense, i was pretty surprised by the result ...
5 years ago (2015-12-16 23:53:19 UTC) #8
dpapad
lgtm LGTM FWIW the most comprehensive comparison I have found is https://jsperf.com/for-vs-foreach/435. In any case, ...
5 years ago (2015-12-17 00:04:18 UTC) #9
stevenjb
https://codereview.chromium.org/1532503003/diff/20001/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/20001/chrome/test/data/webui/fake_chrome_event.js#newcode15 chrome/test/data/webui/fake_chrome_event.js:15: this.listeners_ = new Set; On 2015/12/17 00:04:18, dpapad wrote: ...
5 years ago (2015-12-17 00:18:11 UTC) #10
stevenjb
michaelpg@ - Please take a look when you have a moment.
5 years ago (2015-12-17 17:33:49 UTC) #11
dschuyler
lgtm
5 years ago (2015-12-17 21:36:11 UTC) #12
michaelpg
lgtm, thanks for doing this and removing my hack! https://codereview.chromium.org/1532503003/diff/60001/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/60001/chrome/test/data/webui/fake_chrome_event.js#newcode32 chrome/test/data/webui/fake_chrome_event.js:32: ...
5 years ago (2015-12-17 23:26:20 UTC) #13
stevenjb
https://codereview.chromium.org/1532503003/diff/60001/chrome/test/data/webui/fake_chrome_event.js File chrome/test/data/webui/fake_chrome_event.js (right): https://codereview.chromium.org/1532503003/diff/60001/chrome/test/data/webui/fake_chrome_event.js#newcode32 chrome/test/data/webui/fake_chrome_event.js:32: callListeners: function(...args) { On 2015/12/17 23:26:20, michaelpg wrote: > ...
5 years ago (2015-12-18 01:34:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532503003/80001
5 years ago (2015-12-18 01:36:28 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/94467)
5 years ago (2015-12-18 02:36:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532503003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532503003/100001
5 years ago (2015-12-18 18:42:17 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/1273)
5 years ago (2015-12-18 20:14:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532503003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532503003/100001
5 years ago (2015-12-18 20:52:41 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-18 22:04:33 UTC) #27
commit-bot: I haz the power
5 years ago (2015-12-18 22:06:19 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5afbdd002bc714d522b28ed13fcbb61c3e1bbd5b
Cr-Commit-Position: refs/heads/master@{#366181}

Powered by Google App Engine
This is Rietveld 408576698