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

Side by Side Diff: pages/exceptions/xmlhttprequest.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 = $xmlhttprequest Exception - ABP Test Pages 1 title = $xmlhttprequest Exception
2 template = testcase
3 2
4 {% set testcase_moreinfo = [ 3 {% set testcase_moreinfo = [
5 ("Filter Options", "https://adblockplus.org/filters#options"), 4 ("Filter Options", "https://adblockplus.org/filters#options"),
6 ] %} 5 ] %}
7 6
8 <script> 7 <script>
9 function pagelog(message) { 8 function pagelog(message) {
10 var log = document.getElementById("testcase-ex-xmlhttprequest"); 9 var log = document.getElementById("testcase-ex-xmlhttprequest");
11 log.innerText = log.innerText + message + "\n"; 10 log.innerText = log.innerText + message + "\n";
12 console.log(message); 11 console.log(message);
(...skipping 19 matching lines...) Expand all
32 }; 31 };
33 req.send(); 32 req.send();
34 } 33 }
35 34
36 document.addEventListener('DOMContentLoaded', makerequest, false); 35 document.addEventListener('DOMContentLoaded', makerequest, false);
37 </script> 36 </script>
38 37
39 <section class="site-panel"> 38 <section class="site-panel">
40 <h2>$xmlhttprequest Exception</h2> 39 <h2>$xmlhttprequest Exception</h2>
41 <p>Check that usage of the $xmlhttprequest filter option in an exception filte r works as expected.</p> 40 <p>Check that usage of the $xmlhttprequest filter option in an exception filte r works as expected.</p>
41 <p>With the filter(s) displayed below each test case added to ABP (or with the testcase subscription installed and active), the XMLHTTPRequest should not be b locked while the image should be.</p>
42 </section> 42 </section>
43 43
44 <section class="site-panel"> 44 <section class="site-panel">
45 <h2>Test case</h2> 45 <h2>Test case</h2>
46 <p>The XMLHTTPRequest should not be blocked. The Image should be blocked.</p> 46 <p>The XMLHTTPRequest should not be blocked. The Image should be blocked.</p>
47 <div class="testcase-container"> 47 <div class="testcase-container">
48 <div class="testcase-row"> 48 <div class="testcase-row">
49 <h3>XMLHTTPRequest</h3><div id="testcase-ex-xmlhttprequest"></div> 49 <h3>XMLHTTPRequest</h3><div id="testcase-ex-xmlhttprequest"></div>
50 </div> 50 </div>
51 <div class="testcase-row"> 51 <div class="testcase-row">
52 <h3>Image</h3><img class="testcase-image" src="/testcasefiles/xmlhttpreque stexception/image.jpg"/> 52 <h3>Image</h3><img class="testcase-image" src="/testcasefiles/xmlhttpreque stexception/image.jpg"/>
53 </div> 53 </div>
54 </div> 54 </div>
55 <h3>Filters</h3> 55 <h3>Filters</h3>
56 ||testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/*<br> 56 <pre>||testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/*</pre>
57 @@testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/$xmlhttprequ est 57 <pre>@@testpages.adblockplus.org/testcasefiles/xmlhttprequestexception/$xmlhtt prequest</pre>
58 </section> 58 </section>
OLDNEW

Powered by Google App Engine
This is Rietveld