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

Issue 121983002: Restoring recently deleted unit tests (Closed)

Created:
6 years, 12 months ago by vadimt
Modified:
6 years, 11 months ago
Reviewers:
robliao, rgustafson, skare_
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Restoring recently deleted unit tests. Some unit tests were deleted during switching from merging to combining. Restoring them. Other changes: 1. Switching server response parameter from string to a typed one in parseAndShowNotificationCards(). This way tests don’t have to stringify this parameter before passing to the tested function. 2. Changes in cards.js to match ‘actionUrls’ field definitions in annotation types. They can’t be null. BUG=164227 TEST=No Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244624

Patch Set 1 #

Total comments: 38

Patch Set 2 : robliao@ comments #

Patch Set 3 : More robliao@ comments #

Total comments: 4

Patch Set 4 : rgustafson's notes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+993 lines, -31 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 4 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 2 1 chunk +419 lines, -0 lines 0 comments Download
M chrome/browser/resources/google_now/cards.js View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/resources/google_now/cards_unittest.gtestjs View 1 3 chunks +554 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
vadimt
6 years, 12 months ago (2013-12-28 01:37:05 UTC) #1
robliao
https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); To reduce test churn do this refactor ...
6 years, 11 months ago (2013-12-30 01:59:48 UTC) #2
vadimt
Thanks for so detailed comments! https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); On 2013/12/30 ...
6 years, 11 months ago (2014-01-02 21:46:03 UTC) #3
robliao
https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); The callback approach in the CR comment ...
6 years, 11 months ago (2014-01-03 09:09:34 UTC) #4
vadimt
https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); I wonder what other reviewers think. The ...
6 years, 11 months ago (2014-01-03 18:50:34 UTC) #5
rgustafson
https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); On 2014/01/03 18:50:34, vadimt wrote: > I ...
6 years, 11 months ago (2014-01-07 20:36:44 UTC) #6
vadimt
https://codereview.chromium.org/121983002/diff/150001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/121983002/diff/150001/chrome/browser/resources/google_now/background.js#newcode445 chrome/browser/resources/google_now/background.js:445: * Based on a response response from the notification ...
6 years, 11 months ago (2014-01-08 02:19:01 UTC) #7
robliao
lgtm https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs File chrome/browser/resources/google_now/background_unittest.gtestjs (right): https://codereview.chromium.org/121983002/diff/1/chrome/browser/resources/google_now/background_unittest.gtestjs#newcode478 chrome/browser/resources/google_now/background_unittest.gtestjs:478: testNotificationId, this.mockLocalFunctions.functions().selector); This is a structure request. It ...
6 years, 11 months ago (2014-01-10 21:50:42 UTC) #8
rgustafson
lgtm
6 years, 11 months ago (2014-01-10 22:07:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/121983002/220001
6 years, 11 months ago (2014-01-13 19:17:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/121983002/220001
6 years, 11 months ago (2014-01-13 23:22:33 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 00:52:01 UTC) #12
Message was sent while issue was closed.
Change committed as 244624

Powered by Google App Engine
This is Rietveld 408576698