Changeset 53214 in webkit
- Timestamp:
- Jan 13, 2010 4:20:02 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53207 r53214 1 2010-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 1 13 2010-01-13 Dirk Schulze <krit@webkit.org> 2 14 -
trunk/LayoutTests/storage/quota-tracking.html
r53172 r53214 17 17 } 18 18 19 function errorFunction( tx,error)19 function errorFunction(error) 20 20 { 21 21 log("Test failed - " + error.message); … … 36 36 function addData(db) 37 37 { 38 db.transaction(function(tx) { 38 db.transaction(function(tx) { 39 39 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); 43 45 }); 44 46 } … … 48 50 db.transaction(function(tx) { 49 51 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); 53 57 }); 54 58 } … … 63 67 layoutTestController.waitUntilDone(); 64 68 } 65 69 66 70 database1 = openDatabase("QuotaManagementDatabase1", "1.0", "Test for quota management <rdar://5628468>", 1); 67 71 database2 = openDatabase("QuotaManagementDatabase2", "1.0", "Test for quota management <rdar://5628468>", 1); 68 72 database1.complete = false; 69 73 database2.complete = false; 70 74 71 75 testDatabase(database1); 72 76 }
Note: See TracChangeset
for help on using the changeset viewer.