Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: pages/filters/websocket.tmpl

Issue 29755578: Issue 2148 - Rewrite the testpages test suite (Closed)
Patch Set: Addressed Dave's feedback Created June 4, 2018, 1:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 title = $websocket - ABP Test Pages 1 title = $websocket
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 function pagelog(message) { 10 function pagelog(message) {
11 var log = document.getElementById("testcase-fo-websocket"); 11 var log = document.getElementById("testcase-fo-websocket");
(...skipping 29 matching lines...) Expand all
41 websocket.onmessage = function(evt) { ws_message(evt) }; 41 websocket.onmessage = function(evt) { ws_message(evt) };
42 websocket.onerror = function(evt) { ws_error(evt) }; 42 websocket.onerror = function(evt) { ws_error(evt) };
43 } 43 }
44 44
45 document.addEventListener('DOMContentLoaded', ws_connect, false); 45 document.addEventListener('DOMContentLoaded', ws_connect, false);
46 </script> 46 </script>
47 47
48 <section class="site-panel"> 48 <section class="site-panel">
49 <h2>$websocket</h2> 49 <h2>$websocket</h2>
50 <p>Check that usage of the $websocket filter option works as expected.</p> 50 <p>Check that usage of the $websocket filter option works as expected.</p>
51 <p>With the filter displayed below each test case added to ABP (or with the te stcase subscription installed and active), the websocket connection should be bl ocked and not echo back the test message.</p>
51 </section> 52 </section>
52 53
53 <section class="site-panel"> 54 <section class="site-panel">
54 <h2>Test case</h2> 55 <h2>Test case</h2>
55 <div class="testcase-container"> 56 <div class="testcase-container">
56 <div class="testcase-row"><h3>WebSocket Request</h3><div id="testcase-fo-webs ocket"></div></div> 57 <div class="testcase-row"><h3>WebSocket Request</h3><div id="testcase-fo-webs ocket"></div></div>
57 </div> 58 </div>
58 <h3>Filters</h3> 59 <h3>Filters</h3>
59 $websocket,domain=testpages.adblockplus.org 60 <pre>$websocket,domain=testpages.adblockplus.org</pre>
60 </section> 61 </section>
OLDNEW

Powered by Google App Engine
This is Rietveld