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

Issue 23477006: Unit tests for utility.js (Closed)

Created:
7 years, 3 months ago by vadimt
Modified:
7 years, 3 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Unit tests for utility.js. Adding tests for error reporting and wrapper, the rest will follow. BUG=164227 TEST=No Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221239

Patch Set 1 #

Total comments: 16

Patch Set 2 : robliao@ comments #

Total comments: 18

Patch Set 3 : skare@ comments #

Patch Set 4 : rgustafson's comments #

Patch Set 5 : More comments #

Total comments: 13

Patch Set 6 : arv@ notes #

Patch Set 7 : Fixing unit test + more arv@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -24 lines) Patch
M chrome/browser/resources/google_now/background_test_util.js View 2 chunks +10 lines, -19 lines 0 comments Download
M chrome/browser/resources/google_now/background_unittest.gtestjs View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/google_now/common_test_util.js View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/resources/google_now/utility_test_util.js View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/resources/google_now/utility_unittest.gtestjs View 1 2 3 4 5 6 1 chunk +430 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/data/webui/test_api.js View 1 2 3 4 5 6 3 chunks +45 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
vadimt
7 years, 3 months ago (2013-08-28 00:54:11 UTC) #1
robliao
https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs File chrome/browser/resources/google_now/utility_unittest.gtestjs (right): https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs#newcode26 chrome/browser/resources/google_now/utility_unittest.gtestjs:26: // Test sending report for an error with a ...
7 years, 3 months ago (2013-08-28 22:05:29 UTC) #2
vadimt
https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs File chrome/browser/resources/google_now/utility_unittest.gtestjs (right): https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs#newcode26 chrome/browser/resources/google_now/utility_unittest.gtestjs:26: // Test sending report for an error with a ...
7 years, 3 months ago (2013-08-28 22:29:35 UTC) #3
robliao
https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs File chrome/browser/resources/google_now/utility_unittest.gtestjs (right): https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs#newcode72 chrome/browser/resources/google_now/utility_unittest.gtestjs:72: // Test sending report for an error with a ...
7 years, 3 months ago (2013-08-28 22:42:31 UTC) #4
vadimt
https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs File chrome/browser/resources/google_now/utility_unittest.gtestjs (right): https://codereview.chromium.org/23477006/diff/1/chrome/browser/resources/google_now/utility_unittest.gtestjs#newcode72 chrome/browser/resources/google_now/utility_unittest.gtestjs:72: // Test sending report for an error with a ...
7 years, 3 months ago (2013-08-28 23:02:18 UTC) #5
robliao
lgtm
7 years, 3 months ago (2013-08-28 23:56:58 UTC) #6
skare_
minor stuff on one file, need to look at the actual test onward. https://codereview.chromium.org/23477006/diff/8001/chrome/browser/resources/google_now/common_test_util.js File ...
7 years, 3 months ago (2013-08-29 00:03:36 UTC) #7
rgustafson
the one comment I had so far so it doesn't get missed. https://codereview.chromium.org/23477006/diff/1/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js ...
7 years, 3 months ago (2013-08-29 00:07:14 UTC) #8
skare_
one more, still need to check the test https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js#newcode1683 chrome/test/data/webui/test_api.js:1683: * ...
7 years, 3 months ago (2013-08-29 00:26:13 UTC) #9
vadimt
https://codereview.chromium.org/23477006/diff/8001/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/23477006/diff/8001/chrome/browser/resources/google_now/common_test_util.js#newcode7 chrome/browser/resources/google_now/common_test_util.js:7: function emptyMock() {} On 2013/08/29 00:03:37, Travis Skare wrote: ...
7 years, 3 months ago (2013-08-29 00:28:22 UTC) #10
vadimt
https://codereview.chromium.org/23477006/diff/1/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/1/chrome/test/data/webui/test_api.js#newcode1671 chrome/test/data/webui/test_api.js:1671: * Mock4JS matcher object that matches the actual agrument ...
7 years, 3 months ago (2013-08-29 00:35:32 UTC) #11
skare_
https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js#newcode1683 chrome/test/data/webui/test_api.js:1683: * Checks that the string representation of the actual ...
7 years, 3 months ago (2013-08-29 00:48:09 UTC) #12
vadimt
https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/8001/chrome/test/data/webui/test_api.js#newcode1683 chrome/test/data/webui/test_api.js:1683: * Checks that the string representation of the actual ...
7 years, 3 months ago (2013-08-29 18:03:43 UTC) #13
skare_
https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js#newcode26 chrome/browser/resources/google_now/common_test_util.js:26: originalMethodContainer = if I'm reading this right (and I ...
7 years, 3 months ago (2013-08-29 21:28:22 UTC) #14
skare_
https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js#newcode26 chrome/browser/resources/google_now/common_test_util.js:26: originalMethodContainer = On 2013/08/29 21:28:22, Travis Skare wrote: > ...
7 years, 3 months ago (2013-08-29 21:46:33 UTC) #15
vadimt
https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js File chrome/browser/resources/google_now/common_test_util.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/common_test_util.js#newcode26 chrome/browser/resources/google_now/common_test_util.js:26: originalMethodContainer = On 2013/08/29 21:28:22, Travis Skare wrote: > ...
7 years, 3 months ago (2013-08-29 21:46:58 UTC) #16
skare_
lgtm
7 years, 3 months ago (2013-09-03 21:37:51 UTC) #17
vadimt
arv@, please provide OWNER's approval
7 years, 3 months ago (2013-09-03 22:19:14 UTC) #18
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/utility_test_util.js File chrome/browser/resources/google_now/utility_test_util.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/utility_test_util.js#newcode9 chrome/browser/resources/google_now/utility_test_util.js:9: chrome['alarms'] = { why not chrome.alarms? https://codereview.chromium.org/23477006/diff/25001/chrome/test/data/webui/test_api.js File ...
7 years, 3 months ago (2013-09-03 22:54:50 UTC) #19
vadimt
https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/utility_test_util.js File chrome/browser/resources/google_now/utility_test_util.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/browser/resources/google_now/utility_test_util.js#newcode9 chrome/browser/resources/google_now/utility_test_util.js:9: chrome['alarms'] = { On 2013/09/03 22:54:50, arv wrote: > ...
7 years, 3 months ago (2013-09-03 23:17:36 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/23477006/36001
7 years, 3 months ago (2013-09-03 23:19:10 UTC) #21
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 3 months ago (2013-09-04 06:24:25 UTC) #22
arv (Not doing code reviews)
https://codereview.chromium.org/23477006/diff/25001/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/test/data/webui/test_api.js#newcode1689 chrome/test/data/webui/test_api.js:1689: return this.expectedValue_ === actualArgument.toString(); On 2013/09/03 23:17:37, vadimt wrote: ...
7 years, 3 months ago (2013-09-04 15:00:22 UTC) #23
vadimt
https://codereview.chromium.org/23477006/diff/25001/chrome/test/data/webui/test_api.js File chrome/test/data/webui/test_api.js (right): https://codereview.chromium.org/23477006/diff/25001/chrome/test/data/webui/test_api.js#newcode1689 chrome/test/data/webui/test_api.js:1689: return this.expectedValue_ === actualArgument.toString(); On 2013/09/04 15:00:22, arv wrote: ...
7 years, 3 months ago (2013-09-04 17:13:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/23477006/58001
7 years, 3 months ago (2013-09-04 17:14:11 UTC) #25
arv (Not doing code reviews)
LGTM
7 years, 3 months ago (2013-09-04 17:37:04 UTC) #26
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 20:00:17 UTC) #27
Message was sent while issue was closed.
Change committed as 221239

Powered by Google App Engine
This is Rietveld 408576698