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

Issue 1124873002: Mocha adapter for Polymer browser tests. (Closed)

Created:
5 years, 7 months ago by michaelpg
Modified:
5 years, 6 months ago
CC:
chromium-reviews, arv+watch_chromium.org, Kyle Horimoto, Oren Blasberg, Jeremy Klein, apacible
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mocha adapter for Polymer browser tests. A custom reporter enables mocha in WebUI browser tests. This is used by a new BrowserTest base class, PolymerTest, to configure mocha. Relevant browser_tests sample output: http://pastebin.com/raw.php?i=EeHrmtWH BUG=482770 Committed: https://crrev.com/8247dfe6962829ae8122df4375099c036e39ac9e Cr-Commit-Position: refs/heads/master@{#332537}

Patch Set 1 : Split out non-mocha stuff #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : Mocha adapter and Polymer BrowserTest. #

Total comments: 2

Patch Set 5 : add comments #

Total comments: 14

Patch Set 6 : Some fixes #

Total comments: 5

Patch Set 7 : #

Patch Set 8 : #

Total comments: 5

Patch Set 9 : override setUp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -0 lines) Patch
A chrome/test/data/webui/mocha_adapter.js View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/test/data/webui/polymer_browser_test_base.js View 1 2 3 4 5 6 7 8 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
michaelpg
Seconda Parte. Mocha provides the async support that test_api.js claims to have but actually doesn't, ...
5 years, 7 months ago (2015-05-05 12:23:55 UTC) #6
michaelpg
https://codereview.chromium.org/1124873002/diff/80001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/80001/chrome/test/data/webui/mocha_adapter.js#newcode39 chrome/test/data/webui/mocha_adapter.js:39: testDone([ should be "else {... }"
5 years, 7 months ago (2015-05-05 16:46:34 UTC) #7
stevenjb
https://codereview.chromium.org/1124873002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1124873002/diff/80001/chrome/browser/browser_resources.grd#newcode210 chrome/browser/browser_resources.grd:210: <include name="IDR_MOCHA_JS" file="..\..\third_party\mocha\mocha.js" flattenhtml="true" type="chrome_html" /> On 2015/05/05 12:23:54, ...
5 years, 7 months ago (2015-05-05 22:30:28 UTC) #9
michaelpg
https://codereview.chromium.org/1124873002/diff/80001/third_party/mocha/mocha.js File third_party/mocha/mocha.js (right): https://codereview.chromium.org/1124873002/diff/80001/third_party/mocha/mocha.js#newcode1 third_party/mocha/mocha.js:1: ;(function(){ Definitely, this is just a placeholder I bower'd ...
5 years, 7 months ago (2015-05-05 22:34:59 UTC) #10
michaelpg
https://codereview.chromium.org/1124873002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1124873002/diff/80001/chrome/browser/browser_resources.grd#newcode210 chrome/browser/browser_resources.grd:210: <include name="IDR_MOCHA_JS" file="..\..\third_party\mocha\mocha.js" flattenhtml="true" type="chrome_html" /> On 2015/05/05 22:30:28, ...
5 years, 7 months ago (2015-05-14 19:08:48 UTC) #11
michaelpg
PTAL. There's only 1 file to be committed now -- the other two are just ...
5 years, 6 months ago (2015-05-28 22:18:33 UTC) #12
michaelpg
Now ready for full review & commit. I've removed sample files and added a simple ...
5 years, 6 months ago (2015-05-29 21:26:32 UTC) #16
James Hawkins
lgtm https://codereview.chromium.org/1124873002/diff/190001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/190001/chrome/test/data/webui/mocha_adapter.js#newcode13 chrome/test/data/webui/mocha_adapter.js:13: * @param {Runner} runner nit: Please provide more ...
5 years, 6 months ago (2015-06-01 20:18:17 UTC) #17
michaelpg
https://codereview.chromium.org/1124873002/diff/190001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/190001/chrome/test/data/webui/mocha_adapter.js#newcode13 chrome/test/data/webui/mocha_adapter.js:13: * @param {Runner} runner On 2015/06/01 20:18:17, James Hawkins ...
5 years, 6 months ago (2015-06-01 21:23:01 UTC) #18
Dan Beam
https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/mocha_adapter.js#newcode23 chrome/test/data/webui/mocha_adapter.js:23: passes++; what if a test accidentally passes twice and ...
5 years, 6 months ago (2015-06-02 18:11:17 UTC) #19
michaelpg
https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/mocha_adapter.js#newcode23 chrome/test/data/webui/mocha_adapter.js:23: passes++; On 2015/06/02 18:11:16, Dan Beam wrote: > what ...
5 years, 6 months ago (2015-06-02 19:33:00 UTC) #21
Dan Beam
does it blend^Wcompile? https://youtu.be/lBUJcD6Ws6s https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/polymer_browser_test_base.js#newcode81 chrome/test/data/webui/polymer_browser_test_base.js:81: * Removes all content from ...
5 years, 6 months ago (2015-06-02 20:44:33 UTC) #22
Dan Beam
On 2015/06/02 20:44:33, Dan Beam wrote: > does it blend^Wcompile? eh, just worry about this ...
5 years, 6 months ago (2015-06-02 21:04:45 UTC) #23
michaelpg
ptal, thanks! https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1124873002/diff/210001/chrome/test/data/webui/polymer_browser_test_base.js#newcode81 chrome/test/data/webui/polymer_browser_test_base.js:81: * Removes all content from the <body>. ...
5 years, 6 months ago (2015-06-02 21:30:26 UTC) #25
Dan Beam
https://codereview.chromium.org/1124873002/diff/250001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/250001/chrome/test/data/webui/mocha_adapter.js#newcode35 chrome/test/data/webui/mocha_adapter.js:35: if (!stack[i].includes('mocha.js:')) On 2015/06/02 21:30:25, michaelpg wrote: > On ...
5 years, 6 months ago (2015-06-02 21:32:27 UTC) #26
michaelpg
https://codereview.chromium.org/1124873002/diff/250001/chrome/test/data/webui/mocha_adapter.js File chrome/test/data/webui/mocha_adapter.js (right): https://codereview.chromium.org/1124873002/diff/250001/chrome/test/data/webui/mocha_adapter.js#newcode35 chrome/test/data/webui/mocha_adapter.js:35: if (!stack[i].includes('mocha.js:')) On 2015/06/02 21:32:27, Dan Beam wrote: > ...
5 years, 6 months ago (2015-06-02 21:38:49 UTC) #27
Dan Beam
https://codereview.chromium.org/1124873002/diff/310001/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1124873002/diff/310001/chrome/test/data/webui/polymer_browser_test_base.js#newcode25 chrome/test/data/webui/polymer_browser_test_base.js:25: browsePreload: 'chrome://chrome-urls/', whatever this is satisfying: can we just ...
5 years, 6 months ago (2015-06-02 21:44:50 UTC) #28
michaelpg
https://codereview.chromium.org/1124873002/diff/310001/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1124873002/diff/310001/chrome/test/data/webui/polymer_browser_test_base.js#newcode25 chrome/test/data/webui/polymer_browser_test_base.js:25: browsePreload: 'chrome://chrome-urls/', On 2015/06/02 21:44:50, Dan Beam wrote: > ...
5 years, 6 months ago (2015-06-02 22:57:58 UTC) #29
Dan Beam
lgtm
5 years, 6 months ago (2015-06-02 23:04:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124873002/330001
5 years, 6 months ago (2015-06-02 23:53:59 UTC) #33
commit-bot: I haz the power
Committed patchset #9 (id:330001)
5 years, 6 months ago (2015-06-03 03:21:45 UTC) #34
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 03:22:40 UTC) #35
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8247dfe6962829ae8122df4375099c036e39ac9e
Cr-Commit-Position: refs/heads/master@{#332537}

Powered by Google App Engine
This is Rietveld 408576698