mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Update web-platform-tests to revision 6d85a3b422cab97d032ad3db47cb741ca364185f
This commit is contained in:
parent
cd663ea332
commit
b524b7c279
37 changed files with 1446 additions and 178 deletions
|
@ -1,12 +1,5 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="timeout" content="long">
|
||||
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
|
||||
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="support-promises.js"></script>
|
||||
<script>
|
||||
// Infrastructure shared by interleaved-cursors-{small,large}.html
|
||||
|
||||
// Number of objects that each iterator goes over.
|
||||
const itemCount = 10;
|
||||
|
||||
|
@ -169,7 +162,7 @@ function interleaveCursors(testCase, store, cursorCount) {
|
|||
});
|
||||
}
|
||||
|
||||
for (let cursorCount of [1, 10, 100, 500]) {
|
||||
function cursorTest(cursorCount) {
|
||||
promise_test(testCase => {
|
||||
return createDatabase(testCase, (database, transaction) => {
|
||||
const store = database.createObjectStore('cache',
|
||||
|
@ -193,4 +186,3 @@ for (let cursorCount of [1, 10, 100, 500]) {
|
|||
});
|
||||
}, `${cursorCount} cursors`);
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="timeout" content="long">
|
||||
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
|
||||
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="support-promises.js"></script>
|
||||
<script src="interleaved-cursors-common.js"></script>
|
||||
<script>
|
||||
cursorTest(250);
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="timeout" content="long">
|
||||
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
|
||||
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="support-promises.js"></script>
|
||||
<script src="interleaved-cursors-common.js"></script>
|
||||
<script>
|
||||
cursorTest(1);
|
||||
cursorTest(10);
|
||||
cursorTest(100);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue