summaryrefslogtreecommitdiffstats
path: root/LayoutTests/platform
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-03-02 00:15:52 +0000
committerSteve Block <steveblock@google.com>2010-03-02 11:13:18 +0000
commit57edeb8d163884b3484a8b0c5ec461d76ad71a42 (patch)
treeec10ddac345a807b705ebec5ed7c191b8d8109d6 /LayoutTests/platform
parent60aebe4c6428cce670cda380ae44c26711e9d56b (diff)
downloadexternal_webkit-57edeb8d163884b3484a8b0c5ec461d76ad71a42.zip
external_webkit-57edeb8d163884b3484a8b0c5ec461d76ad71a42.tar.gz
external_webkit-57edeb8d163884b3484a8b0c5ec461d76ad71a42.tar.bz2
Adds Android-specific expected results for some storage LayoutTests when using V8
These expected results are mostly copied from their counterparts in LayoutTests/storage. Minor modifications have been made to account for the different output with V8. Change-Id: Ie606e4fbe1dd0154ef0bb643e13668966592e09c
Diffstat (limited to 'LayoutTests/platform')
-rw-r--r--LayoutTests/platform/android-v8/storage/domstorage/localstorage/string-conversion-expected.txt15
-rw-r--r--LayoutTests/platform/android-v8/storage/domstorage/sessionstorage/string-conversion-expected.txt15
-rw-r--r--LayoutTests/platform/android-v8/storage/statement-error-callback-expected.txt6
-rw-r--r--LayoutTests/platform/android-v8/storage/transaction-callback-exception-crash-expected.txt2
-rw-r--r--LayoutTests/platform/android-v8/storage/transaction-error-callback-expected.txt9
5 files changed, 47 insertions, 0 deletions
diff --git a/LayoutTests/platform/android-v8/storage/domstorage/localstorage/string-conversion-expected.txt b/LayoutTests/platform/android-v8/storage/domstorage/localstorage/string-conversion-expected.txt
new file mode 100644
index 0000000..7a56a24
--- /dev/null
+++ b/LayoutTests/platform/android-v8/storage/domstorage/localstorage/string-conversion-expected.txt
@@ -0,0 +1,15 @@
+This test case verifies that local storage only stores strings.
+Length is 0
+Testing implicit setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+Testing explicit setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+Testing index setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+
diff --git a/LayoutTests/platform/android-v8/storage/domstorage/sessionstorage/string-conversion-expected.txt b/LayoutTests/platform/android-v8/storage/domstorage/sessionstorage/string-conversion-expected.txt
new file mode 100644
index 0000000..cf1ee06
--- /dev/null
+++ b/LayoutTests/platform/android-v8/storage/domstorage/sessionstorage/string-conversion-expected.txt
@@ -0,0 +1,15 @@
+This test case verifies that session storage only stores strings.
+Length is 0
+Testing implicit setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+Testing explicit setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+Testing index setters
+Type/value for null is string/null
+Type/value for 0 is string/0
+Type/value for function(){} is string/function (){}
+
diff --git a/LayoutTests/platform/android-v8/storage/statement-error-callback-expected.txt b/LayoutTests/platform/android-v8/storage/statement-error-callback-expected.txt
new file mode 100644
index 0000000..44eef7a
--- /dev/null
+++ b/LayoutTests/platform/android-v8/storage/statement-error-callback-expected.txt
@@ -0,0 +1,6 @@
+CONSOLE MESSAGE: line 54: Uncaught Exception in Statement error callback
+This test confirms that if the statement error callback returns true or throws an exception we do not execute any further statements in that transaction and instead execute the transaction error callback immediately.
+PASS - the transaction error callback was invoked.
+PASS - the transaction error callback was invoked.
+Test Complete
+
diff --git a/LayoutTests/platform/android-v8/storage/transaction-callback-exception-crash-expected.txt b/LayoutTests/platform/android-v8/storage/transaction-callback-exception-crash-expected.txt
new file mode 100644
index 0000000..49ab0e7
--- /dev/null
+++ b/LayoutTests/platform/android-v8/storage/transaction-callback-exception-crash-expected.txt
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 13: Uncaught TransactionCallbackError
+If WebKit doesn't crash, this test has passed
diff --git a/LayoutTests/platform/android-v8/storage/transaction-error-callback-expected.txt b/LayoutTests/platform/android-v8/storage/transaction-error-callback-expected.txt
new file mode 100644
index 0000000..cbebda9
--- /dev/null
+++ b/LayoutTests/platform/android-v8/storage/transaction-error-callback-expected.txt
@@ -0,0 +1,9 @@
+CONSOLE MESSAGE: line 63: Uncaught #<an Object>
+CONSOLE MESSAGE: line 63: Uncaught #<an Object>
+This test confirms that SQLTransactionErrorCallback is invoked correctly and regardless of its output, the transaction is always rolled back on failure.
+Testing transaction failing mid-way and error callback returning true : SUCCESS
+Testing transaction failing mid-way and error callback return false : SUCCESS
+Testing statement callback throwing exception and error callback returning true : SUCCESS
+Testing statement callback throwing exception and error callback returning false : SUCCESS
+All Tests are complete.
+