Changeset 53214 in webkit


Ignore:
Timestamp:
Jan 13, 2010 4:20:02 PM (14 years ago)
Author:
dumi@chromium.org
Message:

Cleaning up quota-tracking.html. Removing trailing whitespaces and
fixing the errorFunction() to work correctly with both
transaction() and executeSql().

Reviewed by Dimitri Glazkov.

https://bugs.webkit.org/show_bug.cgi?id=33628

  • storage/quota-tracking.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53207 r53214  
     12010-01-13  Dumitru Daniliuc  <dumi@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Cleaning up quota-tracking.html. Removing trailing whitespaces and
     6        fixing the errorFunction() to work correctly with both
     7        transaction() and executeSql().
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=33628
     10
     11        * storage/quota-tracking.html:
     12
    1132010-01-13  Dirk Schulze  <krit@webkit.org>
    214
  • trunk/LayoutTests/storage/quota-tracking.html

    r53172 r53214  
    1717}
    1818
    19 function errorFunction(tx, error)
     19function errorFunction(error)
    2020{
    2121    log("Test failed - " + error.message);
     
    3636function addData(db)
    3737{
    38     db.transaction(function(tx) { 
     38    db.transaction(function(tx) {
    3939        log("Inserting some data");
    40         tx.executeSql("INSERT INTO DataTest (randomData) VALUES (ZEROBLOB(17408))", [], function(tx, result) { }, errorFunction);
    41     }, errorFunction, function() {
    42         checkCompletion(db);
     40        tx.executeSql("INSERT INTO DataTest (randomData) VALUES (ZEROBLOB(17408))", [],
     41                      function(tx, result) { },
     42                      function(tx, error) { errorFunction(error); });
     43    }, errorFunction, function() {
     44        checkCompletion(db);
    4345    });
    4446}
     
    4850    db.transaction(function(tx) {
    4951        log("Adding a table");
    50         tx.executeSql("CREATE TABLE DataTest (randomData)", [], function(tx, result) { }, errorFunction);
    51     }, errorFunction, function() {
    52         addData(db);
     52        tx.executeSql("CREATE TABLE DataTest (randomData)", [],
     53                      function(tx, result) { },
     54                      function(tx, error) { errorFunction(error); });
     55    }, errorFunction, function() {
     56        addData(db);
    5357    });
    5458}
     
    6367        layoutTestController.waitUntilDone();
    6468    }
    65    
     69
    6670    database1 = openDatabase("QuotaManagementDatabase1", "1.0", "Test for quota management <rdar://5628468>", 1);
    6771    database2 = openDatabase("QuotaManagementDatabase2", "1.0", "Test for quota management <rdar://5628468>", 1);
    6872    database1.complete = false;
    6973    database2.complete = false;
    70    
     74
    7175    testDatabase(database1);
    7276}
Note: See TracChangeset for help on using the changeset viewer.