OLD | NEW |
1 title = $xmlhttprequest - ABP Test Pages | 1 title = $xmlhttprequest |
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 <script> | 8 <script> |
9 function pagelog(message) { | 9 function pagelog(message) { |
10 var log = document.getElementById("testcase-fo-xmlhttprequest"); | 10 var log = document.getElementById("testcase-fo-xmlhttprequest"); |
11 log.innerText = log.innerText + message + "\n"; | 11 log.innerText = log.innerText + message + "\n"; |
(...skipping 20 matching lines...) Expand all Loading... |
32 }; | 32 }; |
33 req.send(); | 33 req.send(); |
34 } | 34 } |
35 | 35 |
36 document.addEventListener('DOMContentLoaded', makerequest, false); | 36 document.addEventListener('DOMContentLoaded', makerequest, false); |
37 </script> | 37 </script> |
38 | 38 |
39 <section class="site-panel"> | 39 <section class="site-panel"> |
40 <h2>$xmlhttprequest</h2> | 40 <h2>$xmlhttprequest</h2> |
41 <p>Check that usage of the $xmlhttprequest filter option works as expected.</p
> | 41 <p>Check that usage of the $xmlhttprequest filter option works as expected.</p
> |
| 42 <p>With the filter displayed below each test case added to ABP (or with the te
stcase subscription installed and active), the XMLHTTPRequest in each test case
panel should be blocked but the images should not.</p> |
42 </section> | 43 </section> |
43 | 44 |
44 <section class="site-panel"> | 45 <section class="site-panel"> |
45 <h2>Test case</h2> | 46 <h2>Test case</h2> |
46 <p>The XMLHTTPRequest should be blocked. The Image should not be blocked.</p> | 47 <p>The XMLHTTPRequest should be blocked. The Image should not be blocked.</p> |
47 <div class="testcase-container"> | 48 <div class="testcase-container"> |
48 <div class="testcase-row"> | 49 <div class="testcase-row"> |
49 <h3>XMLHTTPRequest</h3><div id="testcase-fo-xmlhttprequest"></div> | 50 <h3>XMLHTTPRequest</h3><div id="testcase-fo-xmlhttprequest"></div> |
50 </div> | 51 </div> |
51 <div class="testcase-row"> | 52 <div class="testcase-row"> |
52 <h3>Image</h3><img class="testcase-image" src="/testcasefiles/xmlhttpreque
st/image.jpg"/> | 53 <h3>Image</h3><img class="testcase-image" src="/testcasefiles/xmlhttpreque
st/image.jpg"/> |
53 </div> | 54 </div> |
54 </div> | 55 </div> |
55 <h3>Filters</h3> | 56 <h3>Filters</h3> |
56 testpages.adblockplus.org/testcasefiles/xmlhttprequest/$xmlhttprequest | 57 <pre>testpages.adblockplus.org/testcasefiles/xmlhttprequest/$xmlhttprequest</p
re> |
57 </section> | 58 </section> |
OLD | NEW |