Skip to content

Commit

Permalink
Bug 1619038 [wpt PR 22027] - WPT: Upstream and add some transaction s…
Browse files Browse the repository at this point in the history
…cheduling tests, a=testonly

Automatic update from web-platform-tests
WPT: Upstream and add some transaction scheduling tests (#22027)

In service of w3c/IndexedDB#253 move some
transaction scheduling tests from Blink to WPT.

This involved converting them from js-test.js to testharness.js, but
the overall logic of each test was retained.

This also adds one new test which verifies the change described
in w3c/IndexedDB#319 - all browsers implicitly
block R-O transactions behind overlapping R/W transactions.

Change-Id: I596aaa75b79bf3bf3e17a2553abb4e11329d59ab
Bug: 921193
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081237
Reviewed-by: Daniel Murphy <dmurphchromium.org>
Commit-Queue: Joshua Bell <jsbellchromium.org>
Auto-Submit: Joshua Bell <jsbellchromium.org>
Cr-Commit-Position: refs/heads/master{#746553}

Co-authored-by: Joshua Bell <inexorabletashgmail.com>

--

wpt-commits: 5e1160e543827227c05b10c7660795436a76b307
wpt-pr: 22027

UltraBlame original commit: 6b1929e476680a2aafc78037914b756199333f09
  • Loading branch information
marco-c committed Mar 9, 2020
1 parent bb716bd commit c4bac83
Show file tree
Hide file tree
Showing 8 changed files with 3,035 additions and 0 deletions.
126 changes: 126 additions & 0 deletions testing/web-platform/tests/IndexedDB/support.js
Expand Up @@ -676,6 +676,73 @@ description
)
;
}
/
/
Usage
:
/
/
indexeddb_test
(
/
/
(
test_object
db_connection
upgrade_tx
open_request
)
=
>
{
/
/
/
/
Database
creation
logic
.
/
/
}
/
/
(
test_object
db_connection
open_request
)
=
>
{
/
/
/
/
Test
logic
.
/
/
test_object
.
done
(
)
;
/
/
}
/
/
'
Test
case
description
'
)
;
function
indexeddb_test
(
Expand Down Expand Up @@ -1282,3 +1349,62 @@ false
}
;
}
/
/
Returns
a
new
function
.
After
it
is
called
|
count
|
times
|
func
|
/
/
will
be
called
.
function
barrier_func
(
count
func
)
{
let
n
=
0
;
return
(
)
=
>
{
if
(
+
+
n
=
=
=
count
)
func
(
)
;
}
;
}

0 comments on commit c4bac83

Please sign in to comment.