2011-01-24 Andrei Popescu <andreip@google.com>
authorandreip@google.com <andreip@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jan 2011 19:43:59 +0000 (19:43 +0000)
committerandreip@google.com <andreip@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Jan 2011 19:43:59 +0000 (19:43 +0000)
        Reviewed by Jeremy Orlow.

        LayoutTest/storage/indexeddb/objectstore-autoincrement.html is failing after r76533
        https://bugs.webkit.org/show_bug.cgi?id=53032

        This fixes the layout test by modifying the arguments to IDBDatabase::transaction.

        * storage/indexeddb/objectstore-autoincrement-expected.txt:
        * storage/indexeddb/objectstore-autoincrement.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@76538 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/objectstore-autoincrement-expected.txt
LayoutTests/storage/indexeddb/objectstore-autoincrement.html

index 2267707..450431d 100644 (file)
@@ -1,5 +1,17 @@
 2011-01-24  Andrei Popescu  <andreip@google.com>
 
+        Reviewed by Jeremy Orlow.
+
+        LayoutTest/storage/indexeddb/objectstore-autoincrement.html is failing after r76533
+        https://bugs.webkit.org/show_bug.cgi?id=53032
+
+        This fixes the layout test by modifying the arguments to IDBDatabase::transaction.
+
+        * storage/indexeddb/objectstore-autoincrement-expected.txt:
+        * storage/indexeddb/objectstore-autoincrement.html:
+
+2011-01-24  Andrei Popescu  <andreip@google.com>
+
         Reviewed by Nate Chapin.
 
         IndexedDatabase methods should not take arguments of type OptionsObject
index 8e36c96..45331bd 100644 (file)
@@ -55,7 +55,7 @@ PASS storeNames.contains('StoreWithAutoIncrement') is true
 PASS storeNames.contains('PlainOldStore') is true
 PASS storeNames.length is 3
 setVersionCompleted():
-trans = db.transaction({mode: webkitIDBTransaction.READ_WRITE})
+trans = db.transaction([], mode: webkitIDBTransaction.READ_WRITE)
 store = trans.objectStore('StoreWithKeyPath')
 Insert in object store with key gen and key path
 store.add({name: 'Lincoln', number: '7012'})
index 2b44a7a..3084496 100644 (file)
@@ -68,7 +68,7 @@ function setVersionCompleted()
 {
     debug("setVersionCompleted():");
 
-    window.trans = evalAndLog("trans = db.transaction({mode: webkitIDBTransaction.READ_WRITE})");
+    window.trans = evalAndLog("trans = db.transaction([], webkitIDBTransaction.READ_WRITE)");
     trans.onabort = unexpectedAbortCallback;
     trans.oncomplete = done;