Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: LayoutTests/storage/indexeddb/transaction-error-expected.txt

Issue 14146002: Remove all generic expected results for which a generic Chromium expected result exists (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/indexeddb/transaction-error-expected.txt
diff --git a/LayoutTests/storage/indexeddb/transaction-error-expected.txt b/LayoutTests/storage/indexeddb/transaction-error-expected.txt
deleted file mode 100644
index f6bd83cbd1bfa40cec833562e19e66904f47859c..0000000000000000000000000000000000000000
--- a/LayoutTests/storage/indexeddb/transaction-error-expected.txt
+++ /dev/null
@@ -1,66 +0,0 @@
-CONSOLE MESSAGE: line 73: Error: This should *NOT* be caught!
-Test IDBTransaction.error cases.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-
-dbname = "transaction-error.html"
-indexedDB.deleteDatabase(dbname)
-indexedDB.open(dbname)
-store = db.createObjectStore('storeName')
-store.add('value', 'key')
-
-trans = db.transaction('storeName')
-
-IDBTransaction.error should be null if transaction is not finished:
-PASS trans.error is null
-
-If IDBTransaction.abort() is explicitly called, IDBTransaction.error should be null:
-trans.abort()
-PASS trans.error is null
-
-If the transaction is aborted due to a request error that is not prevented, IDBTransaction.error should match:
-trans = db.transaction('storeName', 'readwrite')
-request = trans.objectStore('storeName').add('value2', 'key')
-PASS request.error.name is 'ConstraintError'
-request_error = request.error
-Transaction received abort event.
-PASS trans.error is non-null.
-trans.webkitErrorMessage = Key already exists in the object store.
-PASS trans.webkitErrorMessage is non-null.
-PASS trans.error is request_error
-
-If the transaction is aborted due to an exception thrown from event callback, IDBTransaction.error should be AbortError:
-trans = db.transaction('storeName', 'readwrite')
-request = trans.objectStore('storeName').add('value2', 'key')
-PASS request.error.name is 'ConstraintError'
-Throwing exception...
-Transaction received abort event.
-PASS trans.error is non-null.
-trans.webkitErrorMessage = Uncaught exception in event handler.
-PASS trans.webkitErrorMessage is non-null.
-PASS trans.error.name is 'AbortError'
-
-If the transaction is aborted due to an error during commit, IDBTransaction.error should reflect that error:
-trans = db.transaction('storeName', 'readwrite')
-request = trans.objectStore('storeName').add({id: 1}, 'record1')
-request = trans.objectStore('storeName').add({id: 1}, 'record2')
-request = indexedDB.open(dbname, 2)
-trans = request.transaction
-This should fail due to the unique constraint:
-indexName = 'Also test utf8: 漢'
-trans.objectStore('storeName').createIndex(indexName, 'id', {unique: true})
-Transaction received abort event.
-PASS trans.error is non-null.
-PASS trans.error.name is 'ConstraintError'
-trans.webkitErrorMessage = Unable to add key to index 'Also test utf8: æ¼¢': at least one key does not satisfy the uniqueness requirements.
-PASS trans.webkitErrorMessage is non-null.
-Note: This fails because of http://wkb.ug/37327
-FAIL trans.webkitErrorMessage.indexOf(indexName) should not be -1.
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Powered by Google App Engine
This is Rietveld 408576698