<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="../../resources/testharness.js"></script>
    <script src="../../resources/testharnessreport.js"></script>
</head>
<body>
    <video autoplay id="video"></video>
    <script>
promise_test(async (t) => {
    const stream = await navigator.mediaDevices.getUserMedia({ audio:true, video:true });
    const audioTrack = stream.getAudioTracks()[0];
    const videoTrack = stream.getVideoTracks()[0];
    return Promise.all[
        audioTrack.applyConstraints({ sampleRate: 44100}),
        audioTrack.applyConstraints({ sampleRate: 48000}),
        videoTrack.applyConstraints({ width: 320, height: 240}),
        videoTrack.applyConstraints({ width: 640, height: 480})
    ];
}, "applyConstraints in parallel should resolve");
    </script>
</body>
</html>
