0175387e56a43cec97dab916097b11ea6bd43c65
[platform/framework/web/crosswalk.git] / src / xwalk / test / android / core / javatests / src / org / xwalk / core / xwview / test / GetUrlTest.java
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 package org.xwalk.core.xwview.test;
7
8 import android.test.suitebuilder.annotation.SmallTest;
9
10 import org.chromium.base.test.util.Feature;
11
12 /**
13  * Test suite for getUrl().
14  */
15 public class GetUrlTest extends XWalkViewTestBase {
16
17     @Override
18     public void setUp() throws Exception {
19         super.setUp();
20
21         setXWalkClient(new XWalkViewTestBase.TestXWalkClient());
22     }
23
24     @SmallTest
25     @Feature({"GetUrl"})
26     public void testGetUrl() throws Throwable {
27         final String url = "file:///android_asset/www/index.html";
28
29         loadUrlSync(url);
30         assertEquals(url, getUrlOnUiThread());
31     }
32 }