Bug 146356 - Test existence of controls on MediaSession
Summary: Test existence of controls on MediaSession
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 145411
  Show dependency treegraph
 
Reported: 2015-06-26 12:00 PDT by Matt Rajca
Modified: 2015-06-29 09:51 PDT (History)
7 users (show)

See Also:


Attachments
Patch (2.37 KB, patch)
2015-06-26 18:27 PDT, Matt Rajca
eric.carlson: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (548.25 KB, application/zip)
2015-06-26 19:01 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-mavericks-wk2 (574.27 KB, application/zip)
2015-06-26 19:23 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rajca 2015-06-26 12:00:54 PDT
Only Media Sessions created with the "content" kind should have media remote controls.
Comment 1 Radar WebKit Bug Importer 2015-06-26 12:01:54 PDT
<rdar://problem/21569300>
Comment 2 Matt Rajca 2015-06-26 18:27:24 PDT
Created attachment 255682 [details]
Patch
Comment 3 Build Bot 2015-06-26 19:01:18 PDT
Comment on attachment 255682 [details]
Patch

Attachment 255682 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5461893003083776

New failing tests:
media/session/controls-existence.html
Comment 4 Build Bot 2015-06-26 19:01:23 PDT
Created attachment 255683 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-06-26 19:23:21 PDT
Comment on attachment 255682 [details]
Patch

Attachment 255682 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4581045944975360

New failing tests:
media/session/controls-existence.html
Comment 6 Build Bot 2015-06-26 19:23:25 PDT
Created attachment 255684 [details]
Archive of layout-test-results from ews107 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Eric Carlson 2015-06-27 07:27:13 PDT
Comment on attachment 255682 [details]
Patch

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

> LayoutTests/ChangeLog:9
> +        * media/session/controls-existence-expected.txt: Added.
> +        * media/session/controls-existence.html: Added.

You need to mark the new test as Skipped in LayoutTests/platform/mac/TestExpectations.

> LayoutTests/media/session/controls-existence-expected.txt:6
> +EXPECTED (session.controls != 'null') OK
> +EXPECTED (session.controls == 'null') OK
> +EXPECTED (session.controls == 'null') OK
> +EXPECTED (session.controls == 'null') OK

Nit: It can be helpful to have more context about what is being tested in the results, so it would be helpful to log the session type. For example:

    run("session = new MediaSession('content')");
    testExpected("session.controls", null, '!=');

or maybe

    testExpected("new MediaSession('content').controls", null, '!=');

etc.
Comment 8 Matt Rajca 2015-06-29 09:49:55 PDT
(In reply to comment #7)
> Comment on attachment 255682 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=255682&action=review
> 
> > LayoutTests/ChangeLog:9
> > +        * media/session/controls-existence-expected.txt: Added.
> > +        * media/session/controls-existence.html: Added.
> 
> You need to mark the new test as Skipped in
> LayoutTests/platform/mac/TestExpectations.

Done. Wasn't sure if they were opt-in or opt-out.

> 
> > LayoutTests/media/session/controls-existence-expected.txt:6
> > +EXPECTED (session.controls != 'null') OK
> > +EXPECTED (session.controls == 'null') OK
> > +EXPECTED (session.controls == 'null') OK
> > +EXPECTED (session.controls == 'null') OK
> 
> Nit: It can be helpful to have more context about what is being tested in
> the results, so it would be helpful to log the session type. For example:
> 
>     run("session = new MediaSession('content')");
>     testExpected("session.controls", null, '!=');

I'll do that.

> 
> or maybe
> 
>     testExpected("new MediaSession('content').controls", null, '!=');
> 
> etc.
Comment 9 Matt Rajca 2015-06-29 09:51:41 PDT
Committed r186070: <http://trac.webkit.org/changeset/186070>