[common][webrtc]fix TNINE3691 RTCRtpParameters encodings fails 43/311143/1
authorchen <chen89.chen@samsung.com>
Wed, 15 May 2024 04:23:56 +0000 (12:23 +0800)
committerchen <chen89.chen@samsung.com>
Wed, 15 May 2024 04:24:02 +0000 (12:24 +0800)
Change-Id: I6fe7f6d8695fb6d669a7c3ca7e207eee77d71f0a
Signed-off-by: chen <chen89.chen@samsung.com>
common/tct-webrtc-w3c-tests/tests.xml
common/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html

index cd251e3716f3e28c14de7abbda385b02f66c9a6e..21cc23baab586e9a0f5f986182e5584707a9315c 100755 (executable)
       </testcase>
       <testcase purpose="addTransceiver() with undefined sendEncodings should have default encoding parameter with active set to true" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_1">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=1</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=1</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="addTransceiver() with empty list sendEncodings should have default encoding parameter with active set to true" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_2">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=2</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=2</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.getParameters() should return sendEncodings set by addTransceiver()" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_3">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=3</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=3</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.setParameters() with mismatch number of encodings should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_4">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=4</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=4</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.setParameters() with encodings unset should reject with TypeError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_5">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=5</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=5</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.rid field should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_6">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=6</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=6</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with encoding.scaleResolutionDownBy field set to less than 1.0 should reject with RangeError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_7">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=7</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=7</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with encoding.scaleResolutionDownBy field set to greater than 1.0 should succeed" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_8">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=8</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=8</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.active should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_9">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=9</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=9</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.active should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_10">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=10</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=10</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.maxBitrate should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_11">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=11</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=11</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.maxBitrate should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_12">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=12</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=12</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_13">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=13</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=13</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_14">
+      <!-- <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_14">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=14</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=14</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_15">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=15</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_16">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=16</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_17">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=17</test_script_entry>
+        </description>
+      </testcase> -->
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_18">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=18</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_19">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=19</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_20">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=20</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_21">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=21</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_22">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=22</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_23">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=23</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_24">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=24</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_25">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=25</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_26">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=26</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_27">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=27</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_28">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=28</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_29">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=29</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_30">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=30</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_31">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=31</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_32">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=32</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_33">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=33</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_34">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=34</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_35">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=35</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_36">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=36</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_37">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=37</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_38">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=38</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_39">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=39</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_40">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=40</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_41">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=41</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_42">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=42</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified headerExtensions should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-headerExtensions">
         <description>
           <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-codecs.html?total_num=6&amp;locator_key=id&amp;value=6</test_script_entry>
         </description>
-      </testcase>
+      </testcase> -->
       <testcase purpose="addTransceiver() with undefined sendEncodings should have default encoding parameter with active set to true" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_1">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=1</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=1</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="addTransceiver() with empty list sendEncodings should have default encoding parameter with active set to true" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_2">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=2</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=2</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.getParameters() should return sendEncodings set by addTransceiver()" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_3">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=3</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=3</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.setParameters() with mismatch number of encodings should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_4">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=4</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=4</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="sender.setParameters() with encodings unset should reject with TypeError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_5">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=5</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=5</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.rid field should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_6">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=6</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=6</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with encoding.scaleResolutionDownBy field set to less than 1.0 should reject with RangeError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_7">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=7</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=7</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with encoding.scaleResolutionDownBy field set to greater than 1.0 should succeed" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_8">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=8</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=8</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.active should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_9">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=9</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=9</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.active should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_10">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=10</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=10</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.maxBitrate should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_11">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=11</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=11</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.maxBitrate should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_12">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=12</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=12</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_13">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=13</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=13</test_script_entry>
+        </description>
+      </testcase>
+      <!-- <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_14">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=14</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_15">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=15</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_16">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=16</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_17">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=17</test_script_entry>
+        </description>
+      </testcase> -->
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_18">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=18</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_19">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=19</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed with RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_20">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=20</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_21">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=21</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_22">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=22</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_23">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=23</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_24">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=24</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_25">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=25</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_26">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=26</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_27">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=27</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_28">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=28</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_29">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=29</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_30">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=30</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_31">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=31</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_32">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=32</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_33">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=33</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_34">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=34</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_35">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=35</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_36">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=36</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_37">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=37</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_38">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=38</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_39">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=39</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_40">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=40</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_41">
+        <description>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=41</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_14">
+      <testcase purpose="setParameters() with modified encoding.scaleResolutionDownBy should succeed without RTCRtpTransceiverInit" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-encodings_42">
         <description>
-          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=14&amp;locator_key=id&amp;value=14</test_script_entry>
+          <test_script_entry>/opt/tct-webrtc-w3c-tests/webrtc/RTCRtpParameters-encodings.html?total_num=42&amp;locator_key=id&amp;value=42</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="setParameters() with modified headerExtensions should reject with InvalidModificationError" component="W3C_HTML5 APIs/TBD/WebRTC" execution_type="auto" priority="P1" id="RTCRtpParameters-headerExtensions">
index 956defd1e201cda2f67c7d747c1deb3caf411b0c..fe38af873f4b1e72fa7278a6997d82bf6eeffdfc 100755 (executable)
@@ -12,7 +12,6 @@
   // https://w3c.github.io/webrtc-pc/archives/20170605/webrtc.html
 
   // The following helper functions are called from RTCRtpParameters-helper.js:
-  //   doOfferAnswerExchange
   //   validateSenderRtpParameters
 
   /*
         - encodings is set to the value of the [[send encodings]] internal slot.
    */
 
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('video');
+
+    const param = transceiver.sender.getParameters();
+    assert_equals(param.encodings.length, 1);
+    // Do not call this in every test; it does not make sense to disable all of
+    // the tests below for an implementation that is missing support for
+    // fields that are not related to the test.
+    validateSenderRtpParameters(param);
+  }, `getParameters should return RTCRtpEncodingParameters with all required fields`);
+
   /*
     5.1.  addTransceiver
       7. Create an RTCRtpSender with track, streams and sendEncodings and let sender
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
     const transceiver = pc.addTransceiver('audio');
-    await doOfferAnswerExchange(t, pc);
 
     const param = transceiver.sender.getParameters();
-    validateSenderRtpParameters(param);
     const { encodings } = param;
-    const encoding = getFirstEncoding(param);
+    assert_equals(encodings.length, 1);
+    const encoding = param.encodings[0];
+
+    assert_equals(encoding.active, true);
+    assert_not_own_property(encoding, "maxBitrate");
+    assert_not_own_property(encoding, "rid");
+    assert_not_own_property(encoding, "scaleResolutionDownBy");
+    // We do not check props from extension specifications here; those checks
+    // need to go in a test-case for that extension specification.
+  }, 'addTransceiver(audio) with undefined sendEncodings should have default encoding parameter with active set to true');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('video');
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_equals(encodings.length, 1);
+    const encoding = param.encodings[0];
 
     assert_equals(encoding.active, true);
-  }, 'addTransceiver() with undefined sendEncodings should have default encoding parameter with active set to true');
+    // spec says to return an encoding without a scaleResolutionDownBy value
+    // when addTransceiver does not pass any encodings, however spec also says
+    // to throw if setParameters is missing a scaleResolutionDownBy. One of
+    // these two requirements needs to be removed, but it is unclear right now
+    // which will be removed. For now, allow scaleResolutionDownBy, but don't
+    // require it.
+    // https://github.com/w3c/webrtc-pc/issues/2730
+    assert_not_own_property(encoding, "maxBitrate");
+    assert_not_own_property(encoding, "rid");
+    assert_equals(encoding.scaleResolutionDownBy, undefined);
+    // We do not check props from extension specifications here; those checks
+    // need to go in a test-case for that extension specification.
+  }, 'addTransceiver(video) with undefined sendEncodings should have default encoding parameter with active set to true and scaleResolutionDownBy set to 1');
 
   promise_test(async t => {
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
     const transceiver = pc.addTransceiver('audio', { sendEncodings: [] });
-    await doOfferAnswerExchange(t, pc);
 
     const param = transceiver.sender.getParameters();
-    validateSenderRtpParameters(param);
     const { encodings } = param;
-    const encoding = getFirstEncoding(param);
+    assert_equals(encodings.length, 1);
+    const encoding = param.encodings[0];
 
     assert_equals(encoding.active, true);
-  }, 'addTransceiver() with empty list sendEncodings should have default encoding parameter with active set to true');
+    assert_not_own_property(encoding, "maxBitrate");
+    assert_not_own_property(encoding, "rid");
+    assert_not_own_property(encoding, "scaleResolutionDownBy");
+    // We do not check props from extension specifications here; those checks
+    // need to go in a test-case for that extension specification.
+  }, 'addTransceiver(audio) with empty list sendEncodings should have default encoding parameter with active set to true');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('video', { sendEncodings: [] });
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_equals(encodings.length, 1);
+    const encoding = param.encodings[0];
+
+    assert_equals(encoding.active, true);
+    assert_not_own_property(encoding, "maxBitrate");
+    assert_not_own_property(encoding, "rid");
+    assert_equals(encoding.scaleResolutionDownBy, undefined);
+    // We do not check props from extension specifications here; those checks
+    // need to go in a test-case for that extension specification.
+  }, 'addTransceiver(video) with empty list sendEncodings should have default encoding parameter with active set to true and scaleResolutionDownBy set to 1');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('video', {sendEncodings: [{rid: "foo"}, {rid: "bar", scaleResolutionDownBy: 3.0}]});
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_equals(encodings.length, 2);
+    assert_equals(encodings[0].scaleResolutionDownBy, undefined);
+    assert_equals(encodings[1].scaleResolutionDownBy, 3.0);
+  }, `addTransceiver(video) should auto-set scaleResolutionDownBy to 1 when some encodings have it, but not all`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('video', {sendEncodings: [{rid: "foo"}, {rid: "bar"}]});
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_equals(encodings.length, 2);
+    assert_equals(encodings[0].scaleResolutionDownBy, undefined);
+    assert_equals(encodings[1].scaleResolutionDownBy, undefined);
+  }, `addTransceiver should auto-set scaleResolutionDownBy to powers of 2 (descending) when absent`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const sendEncodings = [];
+    for (let i = 0; i < 1000; i++) {
+      sendEncodings.push({rid: i});
+    }
+    const transceiver = pc.addTransceiver('video', {sendEncodings});
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_less_than(encodings.length, 1000, `1000 encodings is clearly too many`);
+  }, `addTransceiver with a ridiculous number of encodings should truncate the list`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const transceiver = pc.addTransceiver('audio', {sendEncodings: [{rid: "foo"}, {rid: "bar"}]});
+
+    const param = transceiver.sender.getParameters();
+    const { encodings } = param;
+    assert_equals(encodings.length, 1);
+    assert_not_own_property(encodings[0], "maxBitrate");
+    assert_not_own_property(encodings[0], "rid");
+    assert_not_own_property(encodings[0], "scaleResolutionDownBy");
+    // We do not check props from extension specifications here; those checks
+    // need to go in a test-case for that extension specification.
+  }, `addTransceiver(audio) with multiple encodings should result in one encoding with no properties other than active`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const {sender} = pc.addTransceiver('audio', {sendEncodings: [{rid: "foo", scaleResolutionDownBy: 2.0}]});
+    const {encodings} = sender.getParameters();
+    assert_equals(encodings.length, 1);
+    assert_not_own_property(encodings[0], "scaleResolutionDownBy");
+  }, `addTransceiver(audio) should remove valid scaleResolutionDownBy`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const {sender} = pc.addTransceiver('audio', {sendEncodings: [{rid: "foo", scaleResolutionDownBy: -1.0}]});
+    const {encodings} = sender.getParameters();
+    assert_equals(encodings.length, 1);
+    assert_not_own_property(encodings[0], "scaleResolutionDownBy");
+  }, `addTransceiver(audio) should remove invalid scaleResolutionDownBy`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const {sender} = pc.addTransceiver('audio');
+    let params = sender.getParameters();
+    assert_equals(params.encodings.length, 1);
+    params.encodings[0].scaleResolutionDownBy = 2;
+    await sender.setParameters(params);
+    const {encodings} = sender.getParameters();
+    assert_equals(encodings.length, 1);
+    assert_not_own_property(encodings[0], "scaleResolutionDownBy");
+  }, `setParameters with scaleResolutionDownBy on an audio sender should succeed, but remove the scaleResolutionDownBy`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const {sender} = pc.addTransceiver('audio');
+    let params = sender.getParameters();
+    assert_equals(params.encodings.length, 1);
+    params.encodings[0].scaleResolutionDownBy = -1;
+    await sender.setParameters(params);
+    const {encodings} = sender.getParameters();
+    assert_equals(encodings.length, 1);
+    assert_not_own_property(encodings[0], "scaleResolutionDownBy");
+  }, `setParameters with an invalid scaleResolutionDownBy on an audio sender should succeed, but remove the scaleResolutionDownBy`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "foo"}, {rid: "foo"}] }));
+  }, 'addTransceiver with duplicate rid and multiple encodings throws TypeError');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "foo"}, {}] }));
+  }, 'addTransceiver with missing rid and multiple encodings throws TypeError');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: ""}] }));
+  }, 'addTransceiver with empty rid throws TypeError');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "!?"}] }));
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "(╯°□°)╯︵ ┻━┻"}] }));
+    // RFC 8851 says '-' and '_' are allowed, but RFC 8852 says they are not.
+    // RFC 8852 needs to be adhered to, otherwise we can't put the rid in RTP
+    // https://github.com/w3c/webrtc-pc/issues/2732
+    // https://www.rfc-editor.org/errata/eid7132
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "foo-bar"}] }));
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: "foo_bar"}] }));
+  }, 'addTransceiver with invalid rid characters throws TypeError');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    // https://github.com/w3c/webrtc-pc/issues/2732
+    assert_throws_js(TypeError, () => pc.addTransceiver('video', { sendEncodings: [{rid: 'a'.repeat(256)}] }));
+  }, 'addTransceiver with rid longer than 255 characters throws TypeError');
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+
+    assert_throws_js(RangeError, () => pc.addTransceiver('video', { sendEncodings: [{scaleResolutionDownBy: -1}] }));
+    assert_throws_js(RangeError, () => pc.addTransceiver('video', { sendEncodings: [{scaleResolutionDownBy: 0}] }));
+    assert_throws_js(RangeError, () => pc.addTransceiver('video', { sendEncodings: [{scaleResolutionDownBy: 0.5}] }));
+  }, `addTransceiver with scaleResolutionDownBy < 1 throws RangeError`);
 
   /*
     5.2.  create an RTCRtpSender
         rid: 'foo'
       }]
     });
-    await doOfferAnswerExchange(t, pc);
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
-    const encoding = getFirstEncoding(param);
+    const encoding = param.encodings[0];
 
     assert_equals(encoding.active, false);
     assert_equals(encoding.maxBitrate, 8);
   promise_test(async t => {
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
-    const { sender } = pc.addTransceiver('audio');
-    await doOfferAnswerExchange(t, pc);
+    const { sender } = pc.addTransceiver('video');
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
 
     const { encodings } = param;
     assert_equals(encodings.length, 1);
 
-    // {} is valid RTCRtpEncodingParameters because all fields are optional
-    encodings.push({});
+    // While {} is valid RTCRtpEncodingParameters because all fields are
+    // optional, it is still invalid to be missing a rid when there are multiple
+    // encodings. Only trigger one kind of error here.
+    encodings.push({ rid: "foo" });
     assert_equals(param.encodings.length, 2);
 
     return promise_rejects_dom(t, 'InvalidModificationError',
       sender.setParameters(param));
-  }, `sender.setParameters() with mismatch number of encodings should reject with InvalidModificationError`);
+  }, `sender.setParameters() with added encodings should reject with InvalidModificationError`);
 
   promise_test(async t => {
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
-    const { sender } = pc.addTransceiver('audio');
-    await doOfferAnswerExchange(t, pc);
+    const { sender } = pc.addTransceiver('video', {sendEncodings: [{rid: "foo"}, {rid: "bar"}]});
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
 
-    param.encodings = undefined;
+    const { encodings } = param;
+    assert_equals(encodings.length, 2);
+
+    encodings.pop();
+    assert_equals(param.encodings.length, 1);
+
+    return promise_rejects_dom(t, 'InvalidModificationError',
+      sender.setParameters(param));
+  }, `sender.setParameters() with removed encodings should reject with InvalidModificationError`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const { sender } = pc.addTransceiver('video', {sendEncodings: [{rid: "foo"}, {rid: "bar"}]});
+
+    const param = sender.getParameters();
+
+    const { encodings } = param;
+    assert_equals(encodings.length, 2);
+    encodings.push(encodings.shift());
+    assert_equals(param.encodings.length, 2);
+
+    return promise_rejects_dom(t, 'InvalidModificationError',
+      sender.setParameters(param));
+  }, `sender.setParameters() with reordered encodings should reject with InvalidModificationError`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const { sender } = pc.addTransceiver('video');
+
+    const param = sender.getParameters();
+
+    delete param.encodings;
 
     return promise_rejects_js(t, TypeError,
       sender.setParameters(param));
     const { sender } = pc.addTransceiver('video', {
       sendEncodings: [{ rid: 'foo' }, { rid: 'baz' }],
     });
-    await doOfferAnswerExchange(t, pc);
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
-    const encoding = getFirstEncoding(param);
+    const encoding = param.encodings[0];
 
     assert_equals(encoding.rid, 'foo');
 
   promise_test(async t => {
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
-    const { sender } = pc.addTransceiver('audio');
-    await doOfferAnswerExchange(t, pc);
+    const { sender } = pc.addTransceiver('video');
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
-    const encoding = getFirstEncoding(param);
+    const encoding = param.encodings[0];
 
     encoding.scaleResolutionDownBy = 0.5;
-    return promise_rejects_js(t, RangeError,
-      sender.setParameters(param));
+    return promise_rejects_js(t, RangeError, sender.setParameters(param));
+    encoding.scaleResolutionDownBy = 0;
+    return promise_rejects_js(t, RangeError, sender.setParameters(param));
+    encoding.scaleResolutionDownBy = -1;
+    return promise_rejects_js(t, RangeError, sender.setParameters(param));
   }, `setParameters() with encoding.scaleResolutionDownBy field set to less than 1.0 should reject with RangeError`);
 
   promise_test(async t => {
     const pc = new RTCPeerConnection();
     t.add_cleanup(() => pc.close());
     const { sender } = pc.addTransceiver('video');
-    await doOfferAnswerExchange(t, pc);
+
+    let param = sender.getParameters();
+    const encoding = param.encodings[0];
+
+    delete encoding.scaleResolutionDownBy;
+    await sender.setParameters(param);
+    param = sender.getParameters();
+    assert_equals(param.encodings[0].scaleResolutionDownBy, undefined);
+  }, `setParameters() with missing encoding.scaleResolutionDownBy field should succeed, and set the value back to 1`);
+
+  promise_test(async t => {
+    const pc = new RTCPeerConnection();
+    t.add_cleanup(() => pc.close());
+    const { sender } = pc.addTransceiver('video');
 
     const param = sender.getParameters();
-    validateSenderRtpParameters(param);
-    const encoding = getFirstEncoding(param);
+    const encoding = param.encodings[0];
 
     encoding.scaleResolutionDownBy = 1.5;
     return sender.setParameters(param)
     .then(() => {
       const param = sender.getParameters();
-      validateSenderRtpParameters(param);
-      const encoding = getFirstEncoding(param);
+      const encoding = param.encodings[0];
 
       assert_approx_equals(encoding.scaleResolutionDownBy, 1.5, 0.01);
     });
   }, `setParameters() with encoding.scaleResolutionDownBy field set to greater than 1.0 should succeed`);
 
+  test_modified_encoding('video', 'active', false, true,
+    'setParameters() with encoding.active false->true should succeed (video)');
+
+  test_modified_encoding('video', 'active', true, false,
+    'setParameters() with encoding.active true->false should succeed (video)');
+
+  test_modified_encoding('video', 'maxBitrate', 10000, 20000,
+    'setParameters() with modified encoding.maxBitrate should succeed (video)');
+
   test_modified_encoding('audio', 'active', false, true,
-    'setParameters() with modified encoding.active should succeed');
+    'setParameters() with encoding.active false->true should succeed (audio)');
+
+  test_modified_encoding('audio', 'active', true, false,
+    'setParameters() with encoding.active true->false should succeed (audio)');
 
   test_modified_encoding('audio', 'maxBitrate', 10000, 20000,
-    'setParameters() with modified encoding.maxBitrate should succeed');
+    'setParameters() with modified encoding.maxBitrate should succeed (audio)');
 
   test_modified_encoding('video', 'scaleResolutionDownBy', 2, 4,
     'setParameters() with modified encoding.scaleResolutionDownBy should succeed');
 
-</script>
+</script>
\ No newline at end of file