@@ -24,27 +24,13 @@ def test_all_your_base_are_belong_to_us(self):
24
24
self .set_text_content ("#n-aboutsite a" , "BELONG" )
25
25
self .set_text_content ("#n-contactpage a" , "TO" )
26
26
self .set_text_content ("#n-sitesupport a" , "US" )
27
- self .set_text_content (".tocsection-1 span.toctext" , "ALL" )
28
- self .set_text_content (".tocsection-2 span.toctext" , "YOUR" )
29
- self .set_text_content (".tocsection-3 span.toctext" , "BASE" )
30
- self .set_text_content (".tocsection-4 span.toctext" , "ARE" )
31
- self .set_text_content (".tocsection-5 span.toctext" , "BELONG" )
32
- self .set_text_content (".tocsection-6 span.toctext" , "TO" )
33
- self .set_text_content (".tocsection-7 span.toctext" , "US" )
34
- self .highlight ("h1#firstHeading" , loops = 2 , scroll = False )
35
- self .highlight ("#ca-history a" , loops = 2 , scroll = False )
36
- self .highlight ("nav#p-navigation" , loops = 2 , scroll = False )
37
- self .highlight ("div#toc" , loops = 2 , scroll = False )
38
- self .highlight (".tocsection-1 span.toctext" , loops = 1 , scroll = False )
39
- self .highlight (".tocsection-2 span.toctext" , loops = 1 , scroll = False )
40
- self .highlight (".tocsection-3 span.toctext" , loops = 2 , scroll = False )
41
- self .highlight (".tocsection-4 span.toctext" , loops = 1 , scroll = False )
42
- self .highlight (".tocsection-5 span.toctext" , loops = 1 , scroll = False )
43
- self .highlight (".tocsection-6 span.toctext" , loops = 1 , scroll = False )
44
- self .highlight (".tocsection-7 span.toctext" , loops = 2 , scroll = False )
45
- zoom_in = "div.thumbinner{zoom: 1.4;-moz-transform: scale(1.4);}"
27
+ self .highlight ("h1#firstHeading" , loops = 5 , scroll = False )
28
+ zoom_in = "#ca-history a{zoom: 1.8;-moz-transform: scale(1.8);}"
46
29
self .add_css_style (zoom_in )
47
- self .highlight ("div.thumbinner" , loops = 8 , scroll = False )
30
+ self .highlight ("#ca-history a" , loops = 5 , scroll = False )
31
+ zoom_in = "div.thumbinner{zoom: 1.6;-moz-transform: scale(1.6);}"
32
+ self .add_css_style (zoom_in )
33
+ self .highlight ("div.thumbinner" , loops = 10 , scroll = False )
48
34
49
35
if not self .headless :
50
36
self .open ("https://www.apple.com/store" )
@@ -170,8 +156,7 @@ def test_all_your_base_are_belong_to_us(self):
170
156
171
157
self .open ("https://xkcd.com/286/" )
172
158
self .set_text_content ('a[href="/archive"]' , "ALL" )
173
- self .set_text_content ('a[href*="what-if"]' , "YOUR" )
174
- self .set_text_content ('a[href*="//blag."]' , "BASE" )
159
+ self .set_text_content ('a[href*="what-if"]' , "YOUR BASE" )
175
160
self .set_text_content ('a[href*="/about"]' , abtu )
176
161
self .remove_element ('li:contains("Feed")' )
177
162
self .remove_element ('li:contains("TW")' )
@@ -185,8 +170,7 @@ def test_all_your_base_are_belong_to_us(self):
185
170
self .set_text_content ('a[rel="next"]' , "Base" )
186
171
self .highlight ("#topLeft ul" , loops = 5 , scroll = False )
187
172
self .highlight ('a[href="/archive"]' , loops = 1 , scroll = False )
188
- self .highlight ('a[href*="what-if"]' , loops = 1 , scroll = False )
189
- self .highlight ('a[href*="//blag."]' , loops = 2 , scroll = False )
173
+ self .highlight ('a[href*="what-if"]' , loops = 3 , scroll = False )
190
174
self .highlight ('a[href*="/about"]' , loops = 5 , scroll = False )
191
175
self .highlight ('a[rel="prev"]' , loops = 1 , scroll = False )
192
176
self .highlight ('a[href*="random"]' , loops = 1 , scroll = False )
0 commit comments