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

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

Issue 29874607: Issue 6769 - Avoid hardcoding the URL (Closed)
Patch Set: Created Sept. 4, 2018, 4:23 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 = $ping 1 title = $ping
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 do_ping() { 10 function do_ping() {
(...skipping 20 matching lines...) Expand all
31 </section> 31 </section>
32 32
33 <section class="site-panel"> 33 <section class="site-panel">
34 <h2>Test case</h2> 34 <h2>Test case</h2>
35 <div class="testcase-container"> 35 <div class="testcase-container">
36 <div class="testcase-row"><h3>Ping</h3> 36 <div class="testcase-row"><h3>Ping</h3>
37 <a href="http://example.com" target="_blank" ping="/en/filters/ping">Link based ping</a> 37 <a href="http://example.com" target="_blank" ping="/en/filters/ping">Link based ping</a>
38 </div> 38 </div>
39 </div> 39 </div>
40 <h3>Filters</h3> 40 <h3>Filters</h3>
41 <pre>testpages.adblockplus.org/*^$ping</pre> 41 <pre>{{ site_url|strip_proto }}/*^$ping</pre>
42 </section> 42 </section>
43 43
44 <section class="site-panel"> 44 <section class="site-panel">
45 <h2>navigator.sendBeacon()</h2> 45 <h2>navigator.sendBeacon()</h2>
46 <div class="testcase-container"> 46 <div class="testcase-container">
47 <div class="testcase-row"><h3>Ping</h3> 47 <div class="testcase-row"><h3>Ping</h3>
48 <div id="testcase-fo-ping"> 48 <div id="testcase-fo-ping">
49 <button id="ping-button" onclick="do_ping()">Send Ping</button> 49 <button id="ping-button" onclick="do_ping()">Send Ping</button>
50 <div id="testcase-output"></div> 50 <div id="testcase-output"></div>
51 </div> 51 </div>
52 </div> 52 </div>
53 </div> 53 </div>
54 <h3>Filters</h3> 54 <h3>Filters</h3>
55 <pre>testpages.adblockplus.org/*^$ping</pre> 55 <pre>{{ site_url|strip_proto }}/*^$ping</pre>
56 </section> 56 </section>
OLDNEW

Powered by Google App Engine
This is Rietveld