From 57edeb8d163884b3484a8b0c5ec461d76ad71a42 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 2 Mar 2010 00:15:52 +0000 Subject: 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 --- .../localstorage/string-conversion-expected.txt | 15 +++++++++++++++ .../sessionstorage/string-conversion-expected.txt | 15 +++++++++++++++ .../storage/statement-error-callback-expected.txt | 6 ++++++ .../transaction-callback-exception-crash-expected.txt | 2 ++ .../storage/transaction-error-callback-expected.txt | 9 +++++++++ 5 files changed, 47 insertions(+) create mode 100644 LayoutTests/platform/android-v8/storage/domstorage/localstorage/string-conversion-expected.txt create mode 100644 LayoutTests/platform/android-v8/storage/domstorage/sessionstorage/string-conversion-expected.txt create mode 100644 LayoutTests/platform/android-v8/storage/statement-error-callback-expected.txt create mode 100644 LayoutTests/platform/android-v8/storage/transaction-callback-exception-crash-expected.txt create mode 100644 LayoutTests/platform/android-v8/storage/transaction-error-callback-expected.txt (limited to 'LayoutTests/platform') 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 # +CONSOLE MESSAGE: line 63: Uncaught # +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. + -- cgit v1.1