mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix IndexedDB WPT coverage (#37607)
The settings for WPT IndexedDB coverage is incorrect. We never ran the IndexedDB tests actually. Testing: `tests/wpt/tests/IndexedDB` --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
476b05676f
commit
25fe003af2
230 changed files with 7240 additions and 38 deletions
|
@ -72,6 +72,8 @@ impl KvsEngine for HeedEngine {
|
|||
.create_database(&mut write_txn, Some(&*store_name.to_string()))
|
||||
.expect("Failed to create idb store");
|
||||
|
||||
write_txn.commit().expect("Failed to commit transaction");
|
||||
|
||||
let key_generator = { if auto_increment { Some(0) } else { None } };
|
||||
|
||||
let store = Store {
|
||||
|
@ -96,6 +98,8 @@ impl KvsEngine for HeedEngine {
|
|||
.create_database(&mut write_txn, Some(&*store_name.to_string()))
|
||||
.expect("Failed to create idb store");
|
||||
store.clear(&mut write_txn).expect("Could not clear store");
|
||||
write_txn.commit().expect("Failed to commit transaction");
|
||||
|
||||
let mut open_stores = self.open_stores.write().unwrap();
|
||||
open_stores.retain(|key, _| key != &store_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue