OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.android_webview.test; | 5 package org.chromium.android_webview.test; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.os.Build; | 8 import android.os.Build; |
9 import android.os.SystemClock; | 9 import android.os.SystemClock; |
10 import android.test.suitebuilder.annotation.LargeTest; | 10 import android.test.suitebuilder.annotation.LargeTest; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 import java.util.regex.Matcher; | 43 import java.util.regex.Matcher; |
44 import java.util.regex.Pattern; | 44 import java.util.regex.Pattern; |
45 import java.util.ArrayList; | 45 import java.util.ArrayList; |
46 import java.util.List; | 46 import java.util.List; |
47 | 47 |
48 /** | 48 /** |
49 * A test suite for ContentSettings class. The key objective is to verify that e
ach | 49 * A test suite for ContentSettings class. The key objective is to verify that e
ach |
50 * settings applies either to each individual view or to all views of the | 50 * settings applies either to each individual view or to all views of the |
51 * application | 51 * application |
52 */ | 52 */ |
53 public class AwSettingsTest extends AndroidWebViewTestBase { | 53 public class AwSettingsTest extends AwTestBase { |
54 private static final long TEST_TIMEOUT = 20000L; | 54 private static final long TEST_TIMEOUT = 20000L; |
55 private static final int CHECK_INTERVAL = 100; | 55 private static final int CHECK_INTERVAL = 100; |
56 | 56 |
57 private static final boolean ENABLED = true; | 57 private static final boolean ENABLED = true; |
58 private static final boolean DISABLED = false; | 58 private static final boolean DISABLED = false; |
59 | 59 |
60 /** | 60 /** |
61 * A helper class for testing a particular preference from ContentSettings. | 61 * A helper class for testing a particular preference from ContentSettings. |
62 * The generic type T is the type of the setting. Usually, to test an | 62 * The generic type T is the type of the setting. Usually, to test an |
63 * effect of the preference, JS code is executed that sets document's title. | 63 * effect of the preference, JS code is executed that sets document's title. |
(...skipping 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 awContents.onTouchEvent(MotionEvent.obtain( | 2765 awContents.onTouchEvent(MotionEvent.obtain( |
2766 secondTapTime, secondTapTime, MotionEvent.ACTION_DOWN, | 2766 secondTapTime, secondTapTime, MotionEvent.ACTION_DOWN, |
2767 x, y, 0)); | 2767 x, y, 0)); |
2768 awContents.onTouchEvent(MotionEvent.obtain( | 2768 awContents.onTouchEvent(MotionEvent.obtain( |
2769 secondTapTime, secondTapTime, MotionEvent.ACTION_UP, | 2769 secondTapTime, secondTapTime, MotionEvent.ACTION_UP, |
2770 x, y, 0)); | 2770 x, y, 0)); |
2771 } | 2771 } |
2772 }); | 2772 }); |
2773 } | 2773 } |
2774 } | 2774 } |
OLD | NEW |