Loading core/tests/coretests/AndroidManifest.xml +7 −0 Original line number Diff line number Diff line Loading @@ -1210,6 +1210,13 @@ android:authorities="android.app.SuggestionProvider"> </provider> <activity android:name="android.webkit.AccessibilityInjectorTestActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" /> </intent-filter> </activity> </application> <instrumentation android:name="android.test.InstrumentationTestRunner" Loading core/tests/coretests/res/layout/accessibility_injector_test.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" /> core/tests/coretests/src/android/webkit/AccessibilityInjectorTest.java +289 −51 File changed.Preview size limit exceeded, changes collapsed. Show changes core/tests/coretests/src/android/webkit/AccessibilityInjectorTestActivity.java 0 → 100644 +38 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.webkit; import com.android.frameworks.coretests.R; import android.app.Activity; import android.os.Bundle; public class AccessibilityInjectorTestActivity extends Activity { private WebView mWebView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.accessibility_injector_test); mWebView = (WebView) findViewById(R.id.webview); } public WebView getWebView() { return mWebView; } } Loading
core/tests/coretests/AndroidManifest.xml +7 −0 Original line number Diff line number Diff line Loading @@ -1210,6 +1210,13 @@ android:authorities="android.app.SuggestionProvider"> </provider> <activity android:name="android.webkit.AccessibilityInjectorTestActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" /> </intent-filter> </activity> </application> <instrumentation android:name="android.test.InstrumentationTestRunner" Loading
core/tests/coretests/res/layout/accessibility_injector_test.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" />
core/tests/coretests/src/android/webkit/AccessibilityInjectorTest.java +289 −51 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/tests/coretests/src/android/webkit/AccessibilityInjectorTestActivity.java 0 → 100644 +38 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.webkit; import com.android.frameworks.coretests.R; import android.app.Activity; import android.os.Bundle; public class AccessibilityInjectorTestActivity extends Activity { private WebView mWebView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.accessibility_injector_test); mWebView = (WebView) findViewById(R.id.webview); } public WebView getWebView() { return mWebView; } }