Changeset 129170 in webkit


Ignore:
Timestamp:
Sep 20, 2012 2:45:57 PM (12 years ago)
Author:
dgrogan@chromium.org
Message:

Fix IndexedDB unit tests
https://bugs.webkit.org/show_bug.cgi?id=97149

Reviewed by Tony Chang.

  • tests/IDBDatabaseBackendTest.cpp:

Specify a desired version of -1 so that no version change transaction
is run.

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r129167 r129170  
     12012-09-20  David Grogan  <dgrogan@chromium.org>
     2
     3        Fix IndexedDB unit tests
     4        https://bugs.webkit.org/show_bug.cgi?id=97149
     5
     6        Reviewed by Tony Chang.
     7
     8        * tests/IDBDatabaseBackendTest.cpp:
     9        Specify a desired version of -1 so that no version change transaction
     10        is run.
     11
    1122012-09-20  Dirk Pranke  <dpranke@chromium.org>
    213
  • trunk/Source/WebKit/chromium/tests/IDBDatabaseBackendTest.cpp

    r129048 r129170  
    114114};
    115115
    116 TEST(IDBDatabaseBackendTest, DISABLED_ConnectionLifecycle)
     116TEST(IDBDatabaseBackendTest, ConnectionLifecycle)
    117117{
    118118    RefPtr<IDBFakeBackingStore> backingStore = adoptRef(new IDBFakeBackingStore());
     
    126126    RefPtr<MockIDBCallbacks> request1 = MockIDBCallbacks::create();
    127127    RefPtr<FakeIDBDatabaseCallbacks> connection1 = FakeIDBDatabaseCallbacks::create();
    128     db->openConnection(request1, connection1);
     128    db->openConnectionWithVersion(request1, connection1, IDBDatabaseMetadata::NoIntVersion);
    129129
    130130    RefPtr<MockIDBCallbacks> request2 = MockIDBCallbacks::create();
    131131    RefPtr<FakeIDBDatabaseCallbacks> connection2 = FakeIDBDatabaseCallbacks::create();
    132     db->openConnection(request2, connection2);
     132    db->openConnectionWithVersion(request2, connection2, IDBDatabaseMetadata::NoIntVersion);
    133133
    134134    db->close(connection1);
     
    173173};
    174174
    175 TEST(IDBDatabaseBackendTest, DISABLED_ForcedClose)
     175TEST(IDBDatabaseBackendTest, ForcedClose)
    176176{
    177177    RefPtr<IDBFakeBackingStore> backingStore = adoptRef(new IDBFakeBackingStore());
     
    189189    RefPtr<MockIDBDatabaseBackendProxy> proxy = MockIDBDatabaseBackendProxy::create(webDatabase);
    190190    RefPtr<MockIDBCallbacks> request = MockIDBCallbacks::create();
    191     backend->openConnection(request, connectionProxy);
     191    backend->openConnectionWithVersion(request, connectionProxy, IDBDatabaseMetadata::NoIntVersion);
    192192
    193193    ScriptExecutionContext* context = 0;
Note: See TracChangeset for help on using the changeset viewer.