Bug 83828 - There are no shared worker filesystem tests
Summary: There are no shared worker filesystem tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Eric U.
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 15:53 PDT by Eric U.
Modified: 2012-05-23 14:44 PDT (History)
3 users (show)

See Also:


Attachments
Patch (8.39 KB, patch)
2012-04-12 16:23 PDT, Eric U.
no flags Details | Formatted Diff | Diff
Patch (8.08 KB, patch)
2012-04-23 11:10 PDT, Eric U.
levin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric U. 2012-04-12 15:53:02 PDT
We should have at least one that verifies basic functionality.  There shouldn't be any difference in implementation between shared and dedicated workers, so one's probably plenty.
Comment 1 Eric U. 2012-04-12 16:23:05 PDT
Created attachment 136993 [details]
Patch
Comment 2 Kinuko Yasuda 2012-04-16 20:14:10 PDT
Comment on attachment 136993 [details]
Patch

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

> LayoutTests/fast/filesystem/workers/file-writer-events-shared.html:14
> +        //worker.port.postMessage("IMPORT:../../filesystem/simple-persistent.html");

Do we need these commented out lines?

> LayoutTests/fast/js/resources/js-test-pre.js:509
> +var workerPort;

Probably we should put this var together with other global var declarations at the beginning of this file.
Comment 3 Eric U. 2012-04-23 11:10:06 PDT
(In reply to comment #2)
> (From update of attachment 136993 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=136993&action=review
> 
> > LayoutTests/fast/filesystem/workers/file-writer-events-shared.html:14
> > +        //worker.port.postMessage("IMPORT:../../filesystem/simple-persistent.html");
> 
> Do we need these commented out lines?

Nope--accidentally left them in there while experimenting.  Removed.

> > LayoutTests/fast/js/resources/js-test-pre.js:509
> > +var workerPort;
> 
> Probably we should put this var together with other global var declarations at the beginning of this file.

Actually, it doesn't need to be global at all, due to the closures.  Changed to local.
Comment 4 Eric U. 2012-04-23 11:10:44 PDT
Created attachment 138388 [details]
Patch
Comment 5 Eric U. 2012-05-21 15:01:22 PDT
Ping?  This is quite small, and fixes a piece of the test harness that misrepresents itself as supporting shared workers.
Comment 6 Eric Seidel (no email) 2012-05-21 15:20:55 PDT
I suspect Levin could review this tiny patch, even though he's a busy-busy man these days.
Comment 7 David Levin 2012-05-21 15:41:51 PDT
Comment on attachment 138388 [details]
Patch

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

> LayoutTests/fast/filesystem/workers/file-writer-events-shared.html:1
> +<!DOCTYPE HTML>

Personally I would prefer -shared-work instead of just -shared (because I can't figure out what -shared means immediately when I see it like this.).

But I'm not so adamant that I think you must do this before checking in.

Consider this a "If it isn't too much trouble, it sure would be nice if..."
Comment 8 Eric U. 2012-05-23 14:25:48 PDT
Comment on attachment 138388 [details]
Patch

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

>> LayoutTests/fast/filesystem/workers/file-writer-events-shared.html:1
>> +<!DOCTYPE HTML>
> 
> Personally I would prefer -shared-work instead of just -shared (because I can't figure out what -shared means immediately when I see it like this.).
> 
> But I'm not so adamant that I think you must do this before checking in.
> 
> Consider this a "If it isn't too much trouble, it sure would be nice if..."

Switched to -shared-worker.
Comment 9 Eric U. 2012-05-23 14:44:59 PDT
Committed r118246: <http://trac.webkit.org/changeset/118246>