1 // Copyright (c) 2013 Intel Corporation. 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.
5 package org.xwalk.core.internal.xwview.test;
7 import android.test.suitebuilder.annotation.SmallTest;
8 import org.chromium.base.test.util.Feature;
9 import org.xwalk.core.internal.xwview.test.ExtensionEchoInternal;
12 * Test suite for ExtensionEchoInternal().
14 public class ExtensionEchoInternalTest extends XWalkViewInternalTestBase {
15 private final static String PASS_STRING = "Pass";
18 public void setUp() throws Exception {
23 @Feature({"ExtensionEchoInternal"})
24 public void testAsync() throws Throwable {
25 ExtensionEchoInternal echo = new ExtensionEchoInternal();
27 loadAssetFileAndWaitForTitle("echo.html");
28 assertEquals(PASS_STRING, getTitleOnUiThread());
32 @Feature({"ExtensionEchoInternal"})
33 public void testSync() throws Throwable {
34 ExtensionEchoInternal echo = new ExtensionEchoInternal();
36 loadAssetFile("echoSync.html");
37 assertEquals(PASS_STRING, getTitleOnUiThread());
41 @Feature({"ExtensionEchoInternal"})
42 public void testMultiFrames() throws Throwable {
43 ExtensionEchoInternal echo = new ExtensionEchoInternal();
45 loadAssetFileAndWaitForTitle("framesEcho.html");
46 assertEquals(PASS_STRING, getTitleOnUiThread());