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

Issue 17125003: First unit test for Google Now extension (Closed)

Created:
7 years, 6 months ago by vadimt
Modified:
7 years, 5 months ago
CC:
chromium-reviews, arv+watch_chromium.org, Jeffrey Yasskin, Sheridan Rawlins, aboxhall, rgustafson, skare_
Visibility:
Public.

Description

First unit test for Google Now extension. The test is based upon gtestjs technology. The test check only one function in one script of Google Now extension. Other tests will follow. The test doesn't verify (and doesn't want to verify) how the extension' js code behaves in the context of a real extension. It's just a unit test that checks function outputs based on inputs, and future tests will also mock callees and check how they are called. The main goal of this CL is to get feedback from the reviewers regarding the general direction chosen for unit-testing scripts in component extensions. BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209016

Patch Set 1 #

Total comments: 2

Patch Set 2 : jyasskin@ comment #

Total comments: 15

Patch Set 3 : arv@'s comments #

Patch Set 4 : More arv@ notes #

Patch Set 5 : Modifying .isolate dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -0 lines) Patch
A chrome/browser/resources/google_now/background_test_util.js View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/resources/google_now/background_unittest.gtestjs View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/unit_tests.isolate View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
vadimt
Dear CC line reviewers! Please take a look, and comment if needed. If there are ...
7 years, 6 months ago (2013-06-15 01:33:03 UTC) #1
Jeffrey Yasskin
I'm very happy with this approach. I don't know what the conventions are for putting ...
7 years, 6 months ago (2013-06-16 21:36:50 UTC) #2
vadimt
https://codereview.chromium.org/17125003/diff/1/chrome/browser/resources/google_now/unit_test/background.gtestjs File chrome/browser/resources/google_now/unit_test/background.gtestjs (right): https://codereview.chromium.org/17125003/diff/1/chrome/browser/resources/google_now/unit_test/background.gtestjs#newcode30 chrome/browser/resources/google_now/unit_test/background.gtestjs:30: testTaskPair(UPDATE_CARDS_TASK_NAME, UPDATE_CARDS_TASK_NAME, true); On 2013/06/16 21:36:50, Jeffrey Yasskin wrote: ...
7 years, 6 months ago (2013-06-17 18:00:18 UTC) #3
vadimt
+rgustafson, skare I've decided to add you to CC, so no obligation to review, but ...
7 years, 6 months ago (2013-06-18 00:01:17 UTC) #4
vadimt
OWNERs, please provide approvals: sky@: chrome/chrome_tests_unit.gypi arv@: the rest
7 years, 6 months ago (2013-06-18 16:39:15 UTC) #5
sky
LGTM
7 years, 6 months ago (2013-06-18 17:38:14 UTC) #6
arv (Not doing code reviews)
https://codereview.chromium.org/17125003/diff/5001/chrome/browser/resources/google_now/unit_test/background_globals.js File chrome/browser/resources/google_now/unit_test/background_globals.js (right): https://codereview.chromium.org/17125003/diff/5001/chrome/browser/resources/google_now/unit_test/background_globals.js#newcode7 chrome/browser/resources/google_now/unit_test/background_globals.js:7: function EMPTY() {} WHY ALL CAPS? https://codereview.chromium.org/17125003/diff/5001/chrome/browser/resources/google_now/unit_test/background_globals.js#newcode7 chrome/browser/resources/google_now/unit_test/background_globals.js:7: function ...
7 years, 6 months ago (2013-06-18 17:47:09 UTC) #7
vadimt
https://codereview.chromium.org/17125003/diff/5001/chrome/browser/resources/google_now/unit_test/background_globals.js File chrome/browser/resources/google_now/unit_test/background_globals.js (right): https://codereview.chromium.org/17125003/diff/5001/chrome/browser/resources/google_now/unit_test/background_globals.js#newcode7 chrome/browser/resources/google_now/unit_test/background_globals.js:7: function EMPTY() {} On 2013/06/18 17:47:10, arv wrote: > ...
7 years, 6 months ago (2013-06-18 23:12:25 UTC) #8
arv (Not doing code reviews)
https://codereview.chromium.org/17125003/diff/5001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/17125003/diff/5001/chrome/chrome_tests_unit.gypi#newcode1073 chrome/chrome_tests_unit.gypi:1073: 'browser/resources/google_now/unit_test/background.gtestjs', On 2013/06/18 23:12:25, vadimt wrote: > On 2013/06/18 ...
7 years, 6 months ago (2013-06-19 13:31:01 UTC) #9
vadimt
https://codereview.chromium.org/17125003/diff/5001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/17125003/diff/5001/chrome/chrome_tests_unit.gypi#newcode1074 chrome/chrome_tests_unit.gypi:1074: 'browser/resources/google_now/unit_test/background_globals.js', On 2013/06/19 13:31:01, arv wrote: > background_test_util.js maybe? ...
7 years, 6 months ago (2013-06-19 18:10:47 UTC) #10
Jeffrey Yasskin
On Wed, Jun 19, 2013 at 6:31 AM, <arv@chromium.org> wrote: > > https://codereview.chromium.org/17125003/diff/5001/chrome/chrome_tests_unit.gypi > File ...
7 years, 6 months ago (2013-06-19 18:17:30 UTC) #11
arv (Not doing code reviews)
LGTM
7 years, 6 months ago (2013-06-19 18:28:05 UTC) #12
vadimt
On 2013/06/19 18:17:30, Jeffrey Yasskin wrote: > On Wed, Jun 19, 2013 at 6:31 AM, ...
7 years, 6 months ago (2013-06-19 18:48:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/23001
7 years, 6 months ago (2013-06-19 18:48:40 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=166260
7 years, 6 months ago (2013-06-20 06:18:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/23001
7 years, 6 months ago (2013-06-20 21:33:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/23001
7 years, 6 months ago (2013-06-20 21:57:56 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=167178
7 years, 6 months ago (2013-06-21 02:32:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/57001
7 years, 5 months ago (2013-06-26 19:15:31 UTC) #19
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=12539
7 years, 5 months ago (2013-06-26 19:27:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/57001
7 years, 5 months ago (2013-06-26 19:38:03 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=12556
7 years, 5 months ago (2013-06-26 19:45:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/17125003/57001
7 years, 5 months ago (2013-06-27 17:10:33 UTC) #23
commit-bot: I haz the power
7 years, 5 months ago (2013-06-27 22:43:43 UTC) #24
Message was sent while issue was closed.
Change committed as 209016

Powered by Google App Engine
This is Rietveld 408576698