Add CTS tests for WebSQL database.
Add CTS tests for WebView's WebSQL database (for testing if the
database can be enabled or disabled).
Change-Id: Icaa516fd2bca43fd40899b684030f68c44683e58
diff --git a/tests/assets/webkit/test_databaseaccess.html b/tests/assets/webkit/test_databaseaccess.html
new file mode 100644
index 0000000..dcf7b098
--- /dev/null
+++ b/tests/assets/webkit/test_databaseaccess.html
@@ -0,0 +1,27 @@
+<!-- Copyright (C) 2013 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.
+-->
+
+<html>
+ <head><title>None</title><script>
+ function checkDatabase() {
+ if ('openDatabase' in window) {
+ var db = window.openDatabase('test', '1.0', 'results', 1*1024*1024);
+ }
+ document.title = db ? "Has database" : "No database";
+ }
+ </script></head>
+ <body onload='checkDatabase()'>
+ </body>
+</html>