<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add tests for parsing of Media Constraints in getUserMedia()"
   href="https://bugs.webkit.org/show_bug.cgi?id=160791#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add tests for parsing of Media Constraints in getUserMedia()"
   href="https://bugs.webkit.org/show_bug.cgi?id=160791">bug 160791</a>
              from <span class="vcard"><a class="email" href="mailto:gruan&#64;apple.com" title="George Ruan &lt;gruan&#64;apple.com&gt;"> <span class="fn">George Ruan</span></a>
</span></b>
        <pre>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 'exact' values
- Checking that mandatory constraints with scalar values are treated as 'ideal' 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 'exact' and 'ideal' key.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>