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

Side by Side Diff: pages/filters/element-hiding-emulation.tmpl

Issue 29755578: Issue 2148 - Rewrite the testpages test suite (Closed)
Patch Set: Created April 18, 2018, 11:54 a.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
(Empty)
1 title = Element Hiding Emulation / Extended Selectors - ABP Test Pages
2 template = testcase
3
4 {% set testcase_moreinfo = [
5 ("Filter Cheatsheet - Extended Selectors", "https://adblockplus.org/filter-che atsheet#elementhideemulation"),
6 ] %}
7
8 <section class="site-panel">
9 <h2>Element Hiding Emulation / Extended Selectors </h2>
10 <p>Check that element hiding emulation functionality is working as expected.</ p>
11 </section>
12
13 <section class="site-panel">
14 <h2>Basic :-abp-properties() usage</h2>
15 <div class="testcase-container">
16 <div class="testcase-contentaside stripes-red testcase-es-prop">Target</div>
17 <div class="testcase-content stripes-grey">Content</div>
18 </div>
19 <h3>Filters</h3>
20 testpages.adblockplus.org#?#div:-abp-properties(width: 213px)
21 </section>
22
23 <section class="site-panel">
24 <h2>Basic :-abp-has() usage</h2>
25 <div class="testcase-container">
26 <div class="testcase-contentaside stripes-red">
27 Target
28 <div>
29 <img class="testcase-es-has">
30 </div>
31 </div>
32 <div class="testcase-content stripes-grey">Content</div>
33 </div>
34 <h3>Filters</h3>
35 testpages.adblockplus.org#?#div:-abp-has(>div>img.testcase-es-has)
36 </section>
37
38
39 <section class="site-panel">
40 <h2>Basic :-abp-contains() usage</h2>
41 <div class="testcase-container">
42 <span class="testcase-contentaside stripes-red">ESContainsTarget</span>
43 <div class="testcase-content stripes-grey">Content</div>
44 </div>
45 <h3>Filters</h3>
46 testpages.adblockplus.org#?#span:-abp-contains(ESContainsTarget)
47 </section>
48
49 <section class="site-panel">
50 <h2>Chained extended selectors</h2>
51 <div class="testcase-container">
52 <div class="testcase-contentaside stripes-red">
53 <div class="testcase-es-chained">Target</div>
54 </div>
55 <div class="testcase-content stripes-grey">Content</div>
56 </div>
57 <h3>Filters</h3>
58 testpages.adblockplus.org#?#div:-abp-has(> div:-abp-properties(width: 214px))
59 </section>
60
61
62 <section class="site-panel">
63 <h2>Case insensative extended selectors</h2>
64 <div class="testcase-container">
65 <div class="testcase-contentaside stripes-red testcase-es-prop">Target</div>
66 <div class="testcase-content stripes-grey">Content</div>
67 </div>
68 <h3>Filters</h3>
69 testpages.adblockplus.org#?#div:-abp-properties(WiDtH: 215px)
70 </section>
71
72 <section class="site-panel">
73 <h2>Wildcard in extended selector</h2>
74 <div class="testcase-container">
75 <div class="testcase-contentaside stripes-red testcase-es-wildcard">Target</ div>
76 <div class="testcase-content stripes-grey">Content</div>
77 </div>
78 <h3>Filters</h3>
79 testpages.adblockplus.org#?#div:-abp-properties(cursor:*)
80 </section>
81
82 <section class="site-panel">
83 <h2>Regular expression in :-abp-properties()</h2>
84 <div class="testcase-container">
85 <div class="testcase-contentaside stripes-red testcase-es-regex-1">Target</d iv>
86 <div class="testcase-contentaside stripes-red testcase-es-regex-2">Target</d iv>
87 <div class="testcase-contentaside stripes-green testcase-es-regex-3">Not a T arget</div>
88 <div class="testcase-content stripes-grey">Content</div>
89 </div>
90 <h3>Filters</h3>
91 testpages.adblockplus.org#?#div:-abp-properties(/width: 12[1-5]px;/)
92 </section>
93
94
95 <section class="site-panel">
96 <h2>Regular expression in :-abp-contains()</h2>
97 <div class="testcase-container">
98 <div class="testcase-contentaside stripes-red">ESContainsRegEx1</div>
99 <div class="testcase-contentaside stripes-red">ESContainsRegEx2</div>
100 <div class="testcase-contentaside stripes-red">ESContainsRegEx3</div>
101 <div class="testcase-content stripes-grey">Content</div>
102 </div>
103 <h3>Filters</h3>
104 testpages.adblockplus.org#?#div > div :-abp-contains(/Target/)
105 </section>
OLDNEW

Powered by Google App Engine
This is Rietveld