Upstream IDBCursor.continuePrimaryKey test to WPT. (issue 2657533002 by pwnall@chromium.org)

0 views
Skip to first unread message

pwn...@chromium.org

unread,
Jan 23, 2017, 9:17:18 PM1/23/17
to jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
Reviewers: jsbell
CL: https://codereview.chromium.org/2657533002/

Message:
PTAL?

This is an upstream from storage/indexeddb/cursor-continueprimarykey.html

I didn't remove the test because
storage/indexeddb/resources/cursor-continueprimarykey.js made me think that our
test possibly runs in workers as well. I can upstream the test using .any.js
instead of .html, but AFAIK we don't support running those tests.

WDYT?

Description:
Upstream IDBCursor.continuePrimaryKey test to WPT.

BUG=683463

Affected files (+140, -0 lines):
A third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm
M third_party/WebKit/LayoutTests/external/wpt/MANIFEST.json


jsb...@chromium.org

unread,
Jan 24, 2017, 12:20:39 PM1/24/17
to pwn...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
On 2017/01/24 02:17:17, pwnall wrote:
> PTAL?
>
> This is an upstream from storage/indexeddb/cursor-continueprimarykey.html
>
> I didn't remove the test because
> storage/indexeddb/resources/cursor-continueprimarykey.js made me think that
our
> test possibly runs in workers as well. I can upstream the test using .any.js
> instead of .html, but AFAIK we don't support running those tests.
>
> WDYT?

Searching doesn't show a reference to that script from a worker test - it
probably just copied the style of an existing test. I'd go ahead and remove.

https://codereview.chromium.org/2657533002/

pwn...@chromium.org

unread,
Jan 24, 2017, 2:39:28 PM1/24/17
to jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
Done.
Can you please take a look at the test migration from js-test to testharness,
and see if it is acceptable?

Thank you!

https://codereview.chromium.org/2657533002/

jsb...@chromium.org

unread,
Jan 24, 2017, 4:59:49 PM1/24/17
to pwn...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
lgtm with a couple nits


https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm
File
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm
(right):

https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm#newcode55
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm:55:
{ call: (cursor) => { cursor.continue(); },
nit: no need for () around single argument => functions

https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm#newcode103
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm:103:
txn.oncomplete = verifyContinueCalls;
Needs t.step_func() wrapper

https://codereview.chromium.org/2657533002/

pwn...@chromium.org

unread,
Jan 25, 2017, 7:22:06 PM1/25/17
to jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
jsbell: Thank you very much for the quick feedback!

Should I CQ these tests, or wait for the outcome of
https://github.com/w3c/web-platform-tests/issues/4622 ?



https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm
File
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm
(right):

https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm#newcode55
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm:55:
{ call: (cursor) => { cursor.continue(); },
On 2017/01/24 21:59:49, jsbell wrote:
> nit: no need for () around single argument => functions

Done.


https://codereview.chromium.org/2657533002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm#newcode103
third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continuePrimaryKey.htm:103:
txn.oncomplete = verifyContinueCalls;
On 2017/01/24 21:59:49, jsbell wrote:
> Needs t.step_func() wrapper

Done.

https://codereview.chromium.org/2657533002/

jsb...@chromium.org

unread,
Jan 25, 2017, 8:20:00 PM1/25/17
to pwn...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
On 2017/01/26 00:22:06, pwnall wrote:
> jsbell: Thank you very much for the quick feedback!
>
> Should I CQ these tests, or wait for the outcome of
> https://github.com/w3c/web-platform-tests/issues/4622 ?
>

If you can just make sure the test fails promptly (and doesn't timeout) in
stable w/o the experimental flag, I think it's okay to upstream.

That wpt issue seems to be pointing at some issue with testharness, rather than
an issue with the test.

https://codereview.chromium.org/2657533002/

commit-bot@chromium.org via codereview.chromium.org

unread,
Jan 25, 2017, 8:30:15 PM1/25/17
to pwn...@chromium.org, jsb...@chromium.org, commi...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org

commit-bot@chromium.org via codereview.chromium.org

unread,
Jan 25, 2017, 8:37:25 PM1/25/17
to pwn...@chromium.org, jsb...@chromium.org, commi...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org

pwn...@chromium.org

unread,
Jan 25, 2017, 9:35:11 PM1/25/17
to jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, jeff...@chromium.org
On 2017/01/26 01:20:00, jsbell wrote:
> On 2017/01/26 00:22:06, pwnall wrote:
> > jsbell: Thank you very much for the quick feedback!
> >
> > Should I CQ these tests, or wait for the outcome of
> > https://github.com/w3c/web-platform-tests/issues/4622 ?
> >
>
> If you can just make sure the test fails promptly (and doesn't timeout) in
> stable w/o the experimental flag, I think it's okay to upstream.

Closing the loop -- the test completes immediately without any console output.
The document output includes "Harness: the test ran to completion."

https://codereview.chromium.org/2657533002/

jeff...@chromium.org

unread,
Jan 26, 2017, 12:31:57 AM1/26/17
to pwn...@chromium.org, jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org
Upstreamed in https://github.com/w3c/web-platform-tests/pull/4631

(also: would it be useful if the bot posted status notifications like this to
the CL?)

https://codereview.chromium.org/2657533002/

jsb...@chromium.org

unread,
Jan 26, 2017, 1:49:03 PM1/26/17
to pwn...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org
On 2017/01/26 05:31:57, jeffcarp wrote:

> Upstreamed in https://github.com/w3c/web-platform-tests/pull/4631
>
> (also: would it be useful if the bot posted status notifications like this to
> the CL?)

pwn...@chromium.org

unread,
Jan 26, 2017, 9:21:12 PM1/26/17
to jsb...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org
On 2017/01/26 18:49:03, jsbell wrote:
> On 2017/01/26 05:31:57, jeffcarp wrote:
>
> > Upstreamed in https://github.com/w3c/web-platform-tests/pull/4631
> >
> > (also: would it be useful if the bot posted status notifications like this
to
> > the CL?)
>
> Yes!

An enthusiastic "Yes!" from me too.

https://codereview.chromium.org/2657533002/
Reply all
Reply to author
Forward
0 new messages