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

Issue 2847032: Add a simple UI test for --app mode. (Closed)

Created:
10 years, 5 months ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a simple UI test for --app mode. The --app browser launch code path was previously untested, which resulted in us shipping a release where it was broken. BUG=47544 TEST=ui_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51100

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M chrome/browser/browser_uitest.cc View 1 3 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
scherkus (not reviewing)
My extension code broke --app mode :(
10 years, 5 months ago (2010-06-29 01:21:28 UTC) #1
Evan Martin
LGTM, you are awesome for writing this http://codereview.chromium.org/2847032/diff/1/2 File chrome/browser/browser_uitest.cc (right): http://codereview.chromium.org/2847032/diff/1/2#newcode311 chrome/browser/browser_uitest.cc:311: test_file = ...
10 years, 5 months ago (2010-06-29 01:23:52 UTC) #2
scherkus (not reviewing)
10 years, 5 months ago (2010-06-29 01:50:48 UTC) #3
thanks for review

will check in after try results

http://codereview.chromium.org/2847032/diff/1/2
File chrome/browser/browser_uitest.cc (right):

http://codereview.chromium.org/2847032/diff/1/2#newcode311
chrome/browser/browser_uitest.cc:311: test_file =
test_file.AppendASCII("title1.html");
On 2010/06/29 01:23:52, Evan Martin wrote:
> Does this exist?  If so, I wouldn't call it a "dummy URL", but rather
something
> about how the file contents don't matter much.

copied from other tests, but yes it does exist

I'll update all the comments

http://codereview.chromium.org/2847032/diff/1/2#newcode319
chrome/browser/browser_uitest.cc:319: TEST_F(AppModeTest, EnableAppModeTest) {
On 2010/06/29 01:23:52, Evan Martin wrote:
> Can you put a comment above this summarizing what it's intending to test? 
E.g.
> "that a basic app shows up ok".

Done.

http://codereview.chromium.org/2847032/diff/1/2#newcode324
chrome/browser/browser_uitest.cc:324: // Check if browser is an application.
On 2010/06/29 01:23:52, Evan Martin wrote:
> s/check if/verify/ to match above

Done.

Powered by Google App Engine
This is Rietveld 408576698