Bug 101998 - IndexedDB: non-trivial test conversion batch 2
Summary: IndexedDB: non-trivial test conversion batch 2
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Grogan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 15:27 PST by David Grogan
Modified: 2012-11-14 04:28 PST (History)
9 users (show)

See Also:


Attachments
Patch (29.22 KB, patch)
2012-11-12 15:37 PST, David Grogan
no flags Details | Formatted Diff | Diff
Patch (47.96 KB, patch)
2012-11-12 15:43 PST, David Grogan
no flags Details | Formatted Diff | Diff
Patch (30.29 KB, patch)
2012-11-12 15:43 PST, David Grogan
no flags Details | Formatted Diff | Diff
Patch (26.25 KB, patch)
2012-11-13 15:51 PST, David Grogan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Grogan 2012-11-12 15:27:35 PST
IndexedDB: non-trivial test conversion batch 2
Comment 1 David Grogan 2012-11-12 15:37:32 PST
Created attachment 173740 [details]
Patch
Comment 2 David Grogan 2012-11-12 15:43:05 PST
Created attachment 173743 [details]
Patch
Comment 3 David Grogan 2012-11-12 15:43:55 PST
Created attachment 173744 [details]
Patch
Comment 4 David Grogan 2012-11-12 15:49:20 PST
Josh, could you take a look at these 5 tests?

delete-closed-database-object doesn't work in nrwt/DRT or stand-alone content_shell, only in nrwt/content_shell.  If I let it stay loaded in stand-alone content_shell the connection eventually does get gc'd, allowing the other to proceed.  When you wrote this test, did you struggle with getting gc to collect the dead objects?  Any suggestions?
Comment 5 kov's GTK+ EWS bot 2012-11-12 15:54:57 PST
Comment on attachment 173744 [details]
Patch

Attachment 173744 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/14803914
Comment 6 Joshua Bell 2012-11-12 16:52:56 PST
Comment on attachment 173744 [details]
Patch

lgtm...

View in context: https://bugs.webkit.org/attachment.cgi?id=173744&action=review

> LayoutTests/storage/indexeddb/resources/database-basics.js:58
>      setVersionTrans.onabort = checkMetadata;

Can you change the  setVersionTrans.abort(); call following this line to use evalAndLog() ?

> LayoutTests/storage/indexeddb/resources/database-closepending-flag.js:-74
> -        // FIXME: Should verify 'blocked' not fired. http://webkit.org/b/71130

Blocked event doesn't fire in the new code because we (incorrectly) enter a "pending" state before firing blocked when opening connections, right?
Comment 7 David Grogan 2012-11-12 16:57:27 PST
Comment on attachment 173744 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=173744&action=review

Thanks for the review.  Any thoughts on the delete-closed-database-object troubles from comment 4?

>> LayoutTests/storage/indexeddb/resources/database-basics.js:58
>>      setVersionTrans.onabort = checkMetadata;
> 
> Can you change the  setVersionTrans.abort(); call following this line to use evalAndLog() ?

Will do.

>> LayoutTests/storage/indexeddb/resources/database-closepending-flag.js:-74
>> -        // FIXME: Should verify 'blocked' not fired. http://webkit.org/b/71130
> 
> Blocked event doesn't fire in the new code because we (incorrectly) enter a "pending" state before firing blocked when opening connections, right?

I think we don't fire it because there are no other connections.  The previous connection is closed at line 46/25.
Comment 8 WebKit Review Bot 2012-11-13 00:59:50 PST
Comment on attachment 173744 [details]
Patch

Attachment 173744 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14817540

New failing tests:
storage/indexeddb/delete-closed-database-object.html
Comment 9 David Grogan 2012-11-13 15:51:29 PST
Created attachment 174016 [details]
Patch
Comment 10 David Grogan 2012-11-13 15:53:17 PST
Tony, could you review this?

Patch 4 adds the requested evalAndLog and removes delete-closed-database-object test.
Comment 11 WebKit Review Bot 2012-11-13 21:04:23 PST
Comment on attachment 174016 [details]
Patch

Clearing flags on attachment: 174016

Committed r134533: <http://trac.webkit.org/changeset/134533>
Comment 12 WebKit Review Bot 2012-11-13 21:04:27 PST
All reviewed patches have been landed.  Closing bug.
Comment 13 Kentaro Hara 2012-11-14 04:25:26 PST
This patch causes a layout test failure on chromium:
http://code.google.com/p/chromium/issues/detail?id=160961

For the time being, we updated expectation results (in order to roll out WebKit DEPS). Would you fix the bug and re-update expectation results? See the above chromium issue for more details.
Comment 14 jochen 2012-11-14 04:28:00 PST
storage/indexeddb/database-basics.html now shows on content_browsertests. I've temporarily disabled the test in chromium to not block the wk roll even longer

FAIL Error function called unexpectedly: (AbortError) Version change transaction was aborted in upgradeneeded event handler.