mirror of
https://github.com/servo/servo.git
synced 2025-09-03 19:48:21 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -4,17 +4,12 @@
|
|||
<meta name=timeout content=long>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="support.js"></script>
|
||||
<script>
|
||||
|
||||
function getkey_test(func, name) {
|
||||
return async_test(function(t) {
|
||||
var del = indexedDB.deleteDatabase(name);
|
||||
del.onerror = t.unreached_func('deleteDatabase failed');
|
||||
var open = indexedDB.open(name);
|
||||
open.onerror = t.unreached_func('open failed');
|
||||
open.onupgradeneeded = t.step_func(function() {
|
||||
var db = open.result;
|
||||
|
||||
indexeddb_test(
|
||||
function(t, db, tx) {
|
||||
var basic = db.createObjectStore('basic');
|
||||
var key_path_store = db.createObjectStore('key path',
|
||||
{keyPath: 'id'});
|
||||
|
@ -30,12 +25,10 @@ function getkey_test(func, name) {
|
|||
key_generator_store.put('value: ' + i);
|
||||
key_generator_and_path_store.put({});
|
||||
}
|
||||
});
|
||||
open.onsuccess = t.step_func(function() {
|
||||
var db = open.result;
|
||||
func(t, db);
|
||||
});
|
||||
}, name);
|
||||
},
|
||||
func,
|
||||
name
|
||||
);
|
||||
}
|
||||
|
||||
getkey_test(function(t, db) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue