-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from w3c/master
Catch up to W3C master
- Loading branch information
Showing
2,126 changed files
with
32,001 additions
and
17,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ node_modules | |
scratch | ||
testharness_runner.html | ||
webdriver/.idea | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<!DOCTYPE html> | ||
<title>IndexedDB: Commit ordering of empty transactions</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="support.js"></script> | ||
<script> | ||
|
||
// Call with a test object and array of expected values. Returns a | ||
// function to call with each actual value. Once the expected number | ||
// of values is seen, asserts that the value orders match and completes | ||
// the test. | ||
function expect(t, expected) { | ||
var results = []; | ||
return result => { | ||
results.push(result); | ||
if (results.length === expected.length) { | ||
assert_array_equals(results, expected); | ||
t.done(); | ||
} | ||
}; | ||
} | ||
|
||
indexeddb_test( | ||
(t, db) => { | ||
db.createObjectStore('store'); | ||
}, | ||
(t, db) => { | ||
var saw = expect(t, ['rq1.onsuccess', | ||
'rq2.onsuccess', | ||
'tx1.oncomplete', | ||
'tx2.oncomplete']); | ||
|
||
var tx1 = db.transaction('store', 'readwrite'); | ||
tx1.onabort = t.unreached_func('transaction should commit'); | ||
tx1.oncomplete = t.step_func(() => saw('tx1.oncomplete')); | ||
|
||
var store = tx1.objectStore('store'); | ||
var rq1 = store.put('a', 1); | ||
rq1.onerror = t.unreached_func('put should succeed'); | ||
rq1.onsuccess = t.step_func(() => { | ||
saw('rq1.onsuccess'); | ||
|
||
var tx2 = db.transaction('store', 'readonly'); | ||
tx2.onabort = t.unreached_func('transaction should commit'); | ||
tx2.oncomplete = t.step_func(() => saw('tx2.oncomplete')); | ||
|
||
var rq2 = store.put('b', 2); | ||
rq2.onsuccess = t.step_func(() => saw('rq2.onsuccess')); | ||
rq2.onerror = t.unreached_func('request should succeed'); | ||
}); | ||
|
||
}, | ||
'Transactions without requests complete in the expected order'); | ||
|
||
indexeddb_test( | ||
(t, db) => { | ||
db.createObjectStore('store'); | ||
}, | ||
(t, db) => { | ||
var saw = expect(t, ['rq1.onsuccess', | ||
'rq2.onsuccess', | ||
'tx1.oncomplete', | ||
'tx2.oncomplete', | ||
'tx3.oncomplete']); | ||
var tx1 = db.transaction('store', 'readwrite'); | ||
tx1.onabort = t.unreached_func('transaction should commit'); | ||
tx1.oncomplete = t.step_func(() => saw('tx1.oncomplete')); | ||
|
||
var store = tx1.objectStore('store'); | ||
var rq1 = store.put('a', 1); | ||
rq1.onerror = t.unreached_func('put should succeed'); | ||
rq1.onsuccess = t.step_func(() => { | ||
saw('rq1.onsuccess'); | ||
|
||
var tx2 = db.transaction('store', 'readonly'); | ||
tx2.onabort = t.unreached_func('transaction should commit'); | ||
tx2.oncomplete = t.step_func(() => saw('tx2.oncomplete')); | ||
|
||
var tx3 = db.transaction('store', 'readonly'); | ||
tx3.onabort = t.unreached_func('transaction should commit'); | ||
tx3.oncomplete = t.step_func(() => saw('tx3.oncomplete')); | ||
|
||
var rq2 = store.put('b', 2); | ||
rq2.onsuccess = t.step_func(() => saw('rq2.onsuccess')); | ||
rq2.onerror = t.unreached_func('request should succeed'); | ||
}); | ||
}, | ||
'Multiple transactions without requests complete in the expected order'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// <meta> timeout=long | ||
importScripts("/resources/testharness.js"); | ||
importScripts("../util/helpers.js"); | ||
importScripts("failures.js"); | ||
run_test(["AES-CBC"]); | ||
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// <meta> timeout=long | ||
importScripts("/resources/testharness.js"); | ||
importScripts("../util/helpers.js"); | ||
importScripts("failures.js"); | ||
run_test(["AES-CTR"]); | ||
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// <meta> timeout=long | ||
importScripts("/resources/testharness.js"); | ||
importScripts("../util/helpers.js"); | ||
importScripts("failures.js"); | ||
run_test(["AES-GCM"]); | ||
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// <meta> timeout=long | ||
importScripts("/resources/testharness.js"); | ||
importScripts("../util/helpers.js"); | ||
importScripts("failures.js"); | ||
run_test(["AES-KW"]); | ||
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// <meta> timeout=long | ||
importScripts("/resources/testharness.js"); | ||
importScripts("../util/helpers.js"); | ||
importScripts("failures.js"); | ||
run_test(["ECDH"]); | ||
done(); |
Oops, something went wrong.