OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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.graphics.Point; | 8 import android.graphics.Point; |
9 import android.net.http.SslError; | 9 import android.net.http.SslError; |
10 import android.os.Build; | 10 import android.os.Build; |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 import org.apache.http.Header; | 23 import org.apache.http.Header; |
24 import org.apache.http.HttpRequest; | 24 import org.apache.http.HttpRequest; |
25 import org.chromium.android_webview.AwContents; | 25 import org.chromium.android_webview.AwContents; |
26 import org.chromium.android_webview.AwSettings; | 26 import org.chromium.android_webview.AwSettings; |
27 import org.chromium.android_webview.AwWebResourceResponse; | 27 import org.chromium.android_webview.AwWebResourceResponse; |
28 import org.chromium.android_webview.test.util.CommonResources; | 28 import org.chromium.android_webview.test.util.CommonResources; |
29 import org.chromium.android_webview.test.util.ImagePageGenerator; | 29 import org.chromium.android_webview.test.util.ImagePageGenerator; |
30 import org.chromium.android_webview.test.util.VideoTestUtil; | 30 import org.chromium.android_webview.test.util.VideoTestUtil; |
31 import org.chromium.android_webview.test.util.VideoTestWebServer; | 31 import org.chromium.android_webview.test.util.VideoTestWebServer; |
| 32 import org.chromium.base.test.util.DisabledTest; |
32 import org.chromium.base.test.util.Feature; | 33 import org.chromium.base.test.util.Feature; |
33 import org.chromium.base.test.util.TestFileUtil; | 34 import org.chromium.base.test.util.TestFileUtil; |
34 import org.chromium.base.test.util.UrlUtils; | 35 import org.chromium.base.test.util.UrlUtils; |
35 import org.chromium.content.browser.test.util.CallbackHelper; | 36 import org.chromium.content.browser.test.util.CallbackHelper; |
36 import org.chromium.content.browser.test.util.HistoryUtils; | 37 import org.chromium.content.browser.test.util.HistoryUtils; |
37 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; | 38 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; |
38 import org.chromium.content_public.browser.WebContents; | 39 import org.chromium.content_public.browser.WebContents; |
39 import org.chromium.net.test.util.TestWebServer; | 40 import org.chromium.net.test.util.TestWebServer; |
40 import org.chromium.ui.gfx.DeviceDisplayInfo; | 41 import org.chromium.ui.gfx.DeviceDisplayInfo; |
41 | 42 |
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 @Feature({"AndroidWebView", "Preferences"}) | 1597 @Feature({"AndroidWebView", "Preferences"}) |
1597 public void testLoadsImagesAutomaticallyWithTwoViews() throws Throwable { | 1598 public void testLoadsImagesAutomaticallyWithTwoViews() throws Throwable { |
1598 ViewPair views = createViews(); | 1599 ViewPair views = createViews(); |
1599 runPerViewSettingsTest( | 1600 runPerViewSettingsTest( |
1600 new AwSettingsLoadImagesAutomaticallyTestHelper( | 1601 new AwSettingsLoadImagesAutomaticallyTestHelper( |
1601 views.getContainer0(), views.getClient0(), new ImagePageGene
rator(0, true)), | 1602 views.getContainer0(), views.getClient0(), new ImagePageGene
rator(0, true)), |
1602 new AwSettingsLoadImagesAutomaticallyTestHelper( | 1603 new AwSettingsLoadImagesAutomaticallyTestHelper( |
1603 views.getContainer1(), views.getClient1(), new ImagePageGene
rator(1, true))); | 1604 views.getContainer1(), views.getClient1(), new ImagePageGene
rator(1, true))); |
1604 } | 1605 } |
1605 | 1606 |
1606 @SmallTest | 1607 /* |
1607 @Feature({"AndroidWebView", "Preferences"}) | 1608 * Disabled due to document.defaultCharset removal. crbug.com/587484 |
| 1609 * @SmallTest |
| 1610 * @Feature({"AndroidWebView", "Preferences"}) |
| 1611 */ |
| 1612 @DisabledTest |
1608 public void testDefaultTextEncodingWithTwoViews() throws Throwable { | 1613 public void testDefaultTextEncodingWithTwoViews() throws Throwable { |
1609 ViewPair views = createViews(); | 1614 ViewPair views = createViews(); |
1610 runPerViewSettingsTest( | 1615 runPerViewSettingsTest( |
1611 new AwSettingsDefaultTextEncodingTestHelper( | 1616 new AwSettingsDefaultTextEncodingTestHelper( |
1612 views.getContainer0(), views.getClient0()), | 1617 views.getContainer0(), views.getClient0()), |
1613 new AwSettingsDefaultTextEncodingTestHelper( | 1618 new AwSettingsDefaultTextEncodingTestHelper( |
1614 views.getContainer1(), views.getClient1())); | 1619 views.getContainer1(), views.getClient1())); |
1615 } | 1620 } |
1616 | 1621 |
1617 // The test verifies that the default user agent string follows the format | 1622 // The test verifies that the default user agent string follows the format |
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3009 final AwContents awContents = webView.getAwContents(); | 3014 final AwContents awContents = webView.getAwContents(); |
3010 runTestOnUiThread(new Runnable() { | 3015 runTestOnUiThread(new Runnable() { |
3011 @Override | 3016 @Override |
3012 public void run() { | 3017 public void run() { |
3013 awContents.getContentViewCore().sendDoubleTapForTest( | 3018 awContents.getContentViewCore().sendDoubleTapForTest( |
3014 SystemClock.uptimeMillis(), x, y); | 3019 SystemClock.uptimeMillis(), x, y); |
3015 } | 3020 } |
3016 }); | 3021 }); |
3017 } | 3022 } |
3018 } | 3023 } |
OLD | NEW |