LEFT | RIGHT |
1 title = $webrtc | 1 title = $webrtc |
2 template = testcase | 2 template = testcase |
3 | 3 |
4 {% set testcase_moreinfo = [ | 4 {% set testcase_moreinfo = [ |
5 ("Filter Options", "https://adblockplus.org/filters#options"), | 5 ("Filter Options", "https://adblockplus.org/filters#options"), |
6 ] %} | 6 ] %} |
7 | 7 |
8 | 8 |
9 <script> | 9 <script> |
10 | 10 |
11 // Borrowed from https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Sim
ple_RTCDataChannel_sample | 11 // Borrowed from https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Sim
ple_RTCDataChannel_sample |
12 | |
13 function pagelog(message) { | |
14 var log = document.getElementById("testcase-fo-webrtc"); | |
15 log.innerText = log.innerText + message + "\n"; | |
16 console.log(message); | |
17 } | |
18 | 12 |
19 function handleReceiveMessage(event) { | 13 function handleReceiveMessage(event) { |
20 pagelog(event.data); | 14 pagelog(event.data); |
21 } | 15 } |
22 | 16 |
23 function handleLocalAddCandidateSuccess() { | 17 function handleLocalAddCandidateSuccess() { |
24 pagelog("handleLocalAddCandidateSuccess()") | 18 pagelog("handleLocalAddCandidateSuccess()") |
25 } | 19 } |
26 | 20 |
27 function handleRemoteAddCandidateSuccess() { | 21 function handleRemoteAddCandidateSuccess() { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 <h2>$webrtc</h2> | 82 <h2>$webrtc</h2> |
89 <p>Check that usage of the $webrtc filter option works as expected.</p> | 83 <p>Check that usage of the $webrtc filter option works as expected.</p> |
90 <p>With the filter displayed below each test case added to ABP (or with the te
stcase subscription installed and active), the WebRTC connection should be block
ed.</p> | 84 <p>With the filter displayed below each test case added to ABP (or with the te
stcase subscription installed and active), the WebRTC connection should be block
ed.</p> |
91 <p>Note: This test does not work correctly yet.</p> | 85 <p>Note: This test does not work correctly yet.</p> |
92 </section> | 86 </section> |
93 | 87 |
94 <section class="site-panel"> | 88 <section class="site-panel"> |
95 <h2>Test case</h2> | 89 <h2>Test case</h2> |
96 <div class="testcase-container"> | 90 <div class="testcase-container"> |
97 <div class="testcase-row"> | 91 <div class="testcase-row"> |
98 <h3>WebRTC Request</h3><div id="testcase-fo-webrtc"></div> | 92 <h3>WebRTC Request</h3><div id="testcase-output"></div> |
99 </div> | 93 </div> |
100 </div> | 94 </div> |
101 <h3>Filters</h3> | 95 <h3>Filters</h3> |
102 <pre>$webrtc,domain=testpages.adblockplus.org</pre> | 96 <pre>$webrtc,domain=testpages.adblockplus.org</pre> |
103 </section> | 97 </section> |
LEFT | RIGHT |