EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.content_shell_apk]

COVERAGE SUMMARY FOR SOURCE FILE [ContentShellUrlTest.java]

nameclass, %method, %block, %line, %
ContentShellUrlTest.java100% (1/1)100% (2/2)100% (16/16)100% (5/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentShellUrlTest100% (1/1)100% (2/2)100% (16/16)100% (5/5)
ContentShellUrlTest (): void 100% (1/1)100% (3/3)100% (1/1)
testBaseStartup (): void 100% (1/1)100% (13/13)100% (4/4)

1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4 
5package org.chromium.content_shell_apk;
6 
7import android.test.suitebuilder.annotation.SmallTest;
8 
9import org.chromium.base.test.util.Feature;
10import org.chromium.content_shell_apk.ContentShellActivity;
11 
12/**
13 * Example test that just starts the content shell.
14 */
15public class ContentShellUrlTest extends ContentShellTestBase {
16    // URL used for base tests.
17    private static final String URL = "data:text";
18 
19    @SmallTest
20    @Feature({"Main"})
21    public void testBaseStartup() throws Exception {
22        ContentShellActivity activity = launchContentShellWithUrl(URL);
23 
24        // Make sure the activity was created as expected.
25        assertNotNull(activity);
26 
27        // Make sure that the URL is set as expected.
28        assertEquals(URL, activity.getActiveShell().getContentView().getUrl());
29    }
30}

[all classes][org.chromium.content_shell_apk]
EMMA 2.0.5312 (C) Vladimir Roubtsov