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

Issue 9625020: Ported NTP4 UI tests to WebUI. (Closed)

Created:
8 years, 9 months ago by Danh Nguyen
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Ported NTP4 UI tests to WebUI. This CL moves UI tests from the patch off issue 9420040 to WebUI testing framework. TEST=browser_tests --gtest_filter=NTP4*WebUITest* ui_tests --gtest_filter=NewTabUI* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126965

Patch Set 1 #

Total comments: 46

Patch Set 2 : Updated per review comments from scr and dbeam. #

Patch Set 3 : Missed changes to the .gypi file when renaming test files. #

Total comments: 8

Patch Set 4 : More updates per review comments. #

Total comments: 18

Patch Set 5 : Some more updates per review comments. #

Total comments: 2

Patch Set 6 : Few last changes. #

Total comments: 4

Patch Set 7 : Fixed failures on ChromeOS. #

Patch Set 8 : Fixed a typo. #

Patch Set 9 : Excludes one irrelevant test for ChromeOS. #

Total comments: 4

Patch Set 10 : Tests that apps are not shown in ChromeOS. #

Total comments: 13

Patch Set 11 : Fixed nits and an assertion. #

Total comments: 2

Patch Set 12 : Fixed nits on assertion messages. #

Patch Set 13 : Removed extra space in copyright header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -82 lines) Patch
M chrome/browser/ui/webui/ntp/new_tab_ui_uitest.cc View 1 chunk +4 lines, -75 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/webui/ntp4.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +71 lines, -6 lines 0 comments Download
A chrome/test/data/webui/ntp4_browsertest.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/test/data/webui/ntp4_browsertest.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Danh Nguyen
There are two tests involving actions(navigating to chrome://hang) which block the process. Thus they can't ...
8 years, 9 months ago (2012-03-07 21:01:54 UTC) #1
Sheridan Rawlins
https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/chrome_tests.gypi#newcode2863 chrome/chrome_tests.gypi:2863: 'test/data/webui/ntp4_test.cc', s/test/browsertest/ these two lines. https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): ...
8 years, 9 months ago (2012-03-07 22:25:35 UTC) #2
Dan Beam
https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/test/data/webui/ntp4.js#newcode27 chrome/test/data/webui/ntp4.js:27: for (var i = 0; i < cardSlider.cardCount; ++i) ...
8 years, 9 months ago (2012-03-07 22:49:44 UTC) #3
Sheridan Rawlins
https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): https://chromiumcodereview.appspot.com/9625020/diff/1/chrome/test/data/webui/ntp4.js#newcode52 chrome/test/data/webui/ntp4.js:52: 'There should be only one selected tile page.'); Sho ...
8 years, 9 months ago (2012-03-07 23:00:38 UTC) #4
Danh Nguyen
I've renamed the _test_*.h,cc files to _browsertest_*.h.cc as Sheridan suggested. Please take another look. Thanks, ...
8 years, 9 months ago (2012-03-08 16:44:18 UTC) #5
Sheridan Rawlins
Danh, I don't see try jobs. Can you run git try From within your src ...
8 years, 9 months ago (2012-03-08 17:49:30 UTC) #6
Dan Beam
I think there are still possibly issues with your indentation, but they're hard to explain ...
8 years, 9 months ago (2012-03-08 17:58:33 UTC) #7
Danh Nguyen
Hi Dan, I re-fixed the indentation and other things. Please take a quick look again. ...
8 years, 9 months ago (2012-03-08 18:46:14 UTC) #8
Sheridan Rawlins
http://codereview.chromium.org/9625020/diff/15001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/9625020/diff/15001/chrome/chrome_tests.gypi#newcode2863 chrome/chrome_tests.gypi:2863: 'test/data/webui/ntp4_browsertest.cc', Please sort alphabetically; maybe fix some of the ...
8 years, 9 months ago (2012-03-08 19:10:30 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/9625020/diff/15001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://chromiumcodereview.appspot.com/9625020/diff/15001/chrome/chrome_tests.gypi#newcode2863 chrome/chrome_tests.gypi:2863: 'test/data/webui/ntp4_browsertest.cc', On 2012/03/08 19:10:30, Sheridan Rawlins wrote: > Please ...
8 years, 9 months ago (2012-03-08 19:23:18 UTC) #10
Danh Nguyen
I hope I didn't miss anything this time. Please take quick look again. Thanks, Danh ...
8 years, 9 months ago (2012-03-08 21:35:16 UTC) #11
Dan Beam
lgtm, wait for scr@'s LG though (I'm also not an OWNER of this folder if ...
8 years, 9 months ago (2012-03-08 21:48:59 UTC) #12
Sheridan Rawlins
LGTM with nits. https://chromiumcodereview.appspot.com/9625020/diff/19002/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): https://chromiumcodereview.appspot.com/9625020/diff/19002/chrome/test/data/webui/ntp4.js#newcode1 chrome/test/data/webui/ntp4.js:1: // Copyright (c) 2011 The Chromium ...
8 years, 9 months ago (2012-03-08 21:50:58 UTC) #13
Danh Nguyen
Hi Evan, Scott, I need your owner's blessing to check in this CL. Could you ...
8 years, 9 months ago (2012-03-08 22:05:38 UTC) #14
Sheridan Rawlins
On 2012/03/08 22:05:38, Danh Nguyen wrote: > Hi Evan, Scott, > > I need your ...
8 years, 9 months ago (2012-03-08 22:08:31 UTC) #15
sky
chrome/test/data/OWNERS is *, so you don't need me.
8 years, 9 months ago (2012-03-08 22:32:32 UTC) #16
Evan Stade
http://codereview.chromium.org/9625020/diff/22003/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/22003/chrome/test/data/webui/ntp4.js#newcode43 chrome/test/data/webui/ntp4.js:43: assertGE(navDots.length, 2, 'There should be at least two navdots.'); ...
8 years, 9 months ago (2012-03-09 18:28:31 UTC) #17
Evan Stade
make that templateData.showAppsPage (soon to be changed to templateData.showApps)
8 years, 9 months ago (2012-03-09 18:29:26 UTC) #18
Sheridan Rawlins
http://codereview.chromium.org/9625020/diff/22003/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/22003/chrome/test/data/webui/ntp4.js#newcode81 chrome/test/data/webui/ntp4.js:81: assertTrue(userName != null); assertNotEquals(null, userName)
8 years, 9 months ago (2012-03-12 17:57:41 UTC) #19
Danh Nguyen
H Evan, All the try bot results are now green with the latest patch. Could ...
8 years, 9 months ago (2012-03-13 15:02:20 UTC) #20
Dan Beam
http://codereview.chromium.org/9625020/diff/32005/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/32005/chrome/test/data/webui/ntp4.js#newcode37 chrome/test/data/webui/ntp4.js:37: if (window.templateData.showAppsPage) { you should test the opposite of ...
8 years, 9 months ago (2012-03-14 03:48:13 UTC) #21
Danh Nguyen
Thanks Dan for your suggestions. Tests were added. I also updated showAppsPage => showApps. Danh ...
8 years, 9 months ago (2012-03-14 16:15:05 UTC) #22
Dan Beam
slgtm w/nits http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js#newcode1 chrome/test/data/webui/ntp4.js:1: // Copyright (c) 2012 The Chromium Authors. ...
8 years, 9 months ago (2012-03-15 00:12:55 UTC) #23
Dan Beam
http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js#newcode52 chrome/test/data/webui/ntp4.js:52: assertGE(navDots.length, 0, 'There should be no navdot.'); On 2012/03/15 ...
8 years, 9 months ago (2012-03-15 00:13:27 UTC) #24
Dan Beam
http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/39001/chrome/test/data/webui/ntp4.js#newcode56 chrome/test/data/webui/ntp4.js:56: TEST_F('NTP4WebUITest', 'NTPHasSelectedPageAndDot', function() { and this should also be ...
8 years, 9 months ago (2012-03-15 00:15:25 UTC) #25
Danh Nguyen
I've fixed all the nits and the assertion Dan pointed out. The results from the ...
8 years, 9 months ago (2012-03-15 15:42:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danhn@chromium.org/9625020/44001
8 years, 9 months ago (2012-03-15 15:42:43 UTC) #27
commit-bot: I haz the power
Presubmit check for 9625020-44001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-15 15:42:48 UTC) #28
Evan Stade
lgtm with nits http://codereview.chromium.org/9625020/diff/44001/chrome/test/data/webui/ntp4.js File chrome/test/data/webui/ntp4.js (right): http://codereview.chromium.org/9625020/diff/44001/chrome/test/data/webui/ntp4.js#newcode49 chrome/test/data/webui/ntp4.js:49: assertEquals(1, navDots.length, 'There should be only ...
8 years, 9 months ago (2012-03-15 15:54:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danhn@chromium.org/9625020/41004
8 years, 9 months ago (2012-03-15 16:04:40 UTC) #30
commit-bot: I haz the power
Presubmit check for 9625020-41004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-15 16:04:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danhn@chromium.org/9625020/40009
8 years, 9 months ago (2012-03-15 16:17:31 UTC) #32
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 19:24:41 UTC) #33
Change committed as 126965

Powered by Google App Engine
This is Rietveld 408576698