@@ -95,9 +95,7 @@ public function getSelectorTests()
9595 'link_or_button (with-href) ' => array ('test.html ' , 'link_or_button ' , 'link-text ' , 5 , 9 ),
9696 'link_or_button (without-href) ignored ' => array ('test.html ' , 'link_or_button ' , 'bad-link-text ' , 0 ),
9797 'link_or_button* (role=link) ' => array ('test.html ' , 'link_or_button ' , 'link-role-text ' , 4 , 7 ),
98-
99- // bug in selector: 17 instead of 25 and 34 instead of 42, because 8 buttons with `name` attribute were not matched
100- 'link_or_button (input, name/value/title) ' => array ('test.html ' , 'link_or_button ' , 'button-text ' , 17 , 34 ),
98+ 'link_or_button (input, name/value/title) ' => array ('test.html ' , 'link_or_button ' , 'button-text ' , 25 , 42 ),
10199 'link_or_button (type=image, with-alt) ' => array ('test.html ' , 'link_or_button ' , 'button-alt-text ' , 1 , 2 ),
102100 'link_or_button (input type=submit, with-id) ' => array ('test.html ' , 'link_or_button ' , 'input-submit-button ' , 1 ),
103101 'link_or_button (input type=image, with-id) ' => array ('test.html ' , 'link_or_button ' , 'input-image-button ' , 1 ),
@@ -107,9 +105,7 @@ public function getSelectorTests()
107105 'link_or_button (button type=image, with-id) ' => array ('test.html ' , 'link_or_button ' , 'button-image-button ' , 1 ),
108106 'link_or_button (button type=button, with-id) ' => array ('test.html ' , 'link_or_button ' , 'button-button-button ' , 1 ),
109107 'link_or_button (button type=reset, with-id) ' => array ('test.html ' , 'link_or_button ' , 'button-reset-button ' , 1 ),
110-
111- // bug in selector: 8 instead of 12 and 16 instead of 20, because 4 buttons with `name` attribute were not matched
112- 'link_or_button* (role=button, name/value/title) ' => array ('test.html ' , 'link_or_button ' , 'button-role-text ' , 8 , 16 ),
108+ 'link_or_button* (role=button, name/value/title) ' => array ('test.html ' , 'link_or_button ' , 'button-role-text ' , 12 , 20 ),
113109 'link_or_button* (role=button type=submit, with-id) ' => array ('test.html ' , 'link_or_button ' , 'role-button-submit-button ' , 1 ),
114110 'link_or_button* (role=button type=image, with-id) ' => array ('test.html ' , 'link_or_button ' , 'role-button-image-button ' , 1 ),
115111 'link_or_button* (role=button type=button, with-id) ' => array ('test.html ' , 'link_or_button ' , 'role-button-button-button ' , 1 ),
0 commit comments