<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>160791</bug_id>
          
          <creation_ts>2016-08-11 17:36:10 -0700</creation_ts>
          <short_desc>Add tests for parsing of Media Constraints in getUserMedia()</short_desc>
          <delta_ts>2017-08-30 11:46:41 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Local Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=146746</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="George Ruan">gruan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1219475</commentid>
    <comment_count>0</comment_count>
    <who name="George Ruan">gruan</who>
    <bug_when>2016-08-11 17:36:10 -0700</bug_when>
    <thetext>Currently there is only limited testing on the parsing of mandatory constraints in getUserMedia.

Full testing can be made possible after implementation of getSettings(): https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-getsettings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219477</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-08-11 17:37:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/27815747&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219480</commentid>
    <comment_count>2</comment_count>
    <who name="George Ruan">gruan</who>
    <bug_when>2016-08-11 17:41:02 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Currently there is only limited testing on the parsing of mandatory
&gt; constraints in getUserMedia.
&gt; 
&gt; Full testing can be made possible after implementation of getSettings():
&gt; https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-getsettings.

I mispoke. getSettings() is already implemented. Full testing is possible after there is support for a media stream track being able to set its settings according to the constraints passed through to getUserMedia.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1219506</commentid>
    <comment_count>3</comment_count>
    <who name="George Ruan">gruan</who>
    <bug_when>2016-08-11 18:47:03 -0700</bug_when>
    <thetext>Some tests that come to mind include:
- Checking that arbitrary constraints are ignored.
- Checking that supported constraints with empty scalar value are ignored.
- Checking that supported constraints with empty dictionary values are ignored.
- Checking that supported string constraints with empty array values are ignored.

- Checking that advanced constraints with scalar values are treated as &apos;exact&apos; values
- Checking that mandatory constraints with scalar values are treated as &apos;ideal&apos; values

- Checking that boolean, double, and long constraints can accept only scalar and dictionary values.
- Checking that string constraints can handle sequences, scalar, and dictionary values
- Checking that string dictionary constraint values can handle both scalars and sequences for the &apos;exact&apos; and &apos;ideal&apos; key.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>