@@ -35,22 +35,8 @@ export default test({
3535 const after_reset = [ ] ;
3636
3737 const reset = /** @type {HTMLInputElement } */ ( target . querySelector ( 'input[type=reset]' ) ) ;
38- const [
39- test1 ,
40- test2 ,
41- test3 ,
42- test4 ,
43- test5 ,
44- test6 ,
45- test7 ,
46- test8 ,
47- test9 ,
48- test10 ,
49- test11 ,
50- test12 ,
51- test13
52- ] = target . querySelectorAll ( 'div' ) ;
53- const [ test14 , test15 , test16 , test17 ] = target . querySelectorAll ( 'select' ) ;
38+ const [ test1 , test2 , test3 , test4 , test5 ] = target . querySelectorAll ( 'div' ) ;
39+ const [ test6 , test7 , test8 , test9 ] = target . querySelectorAll ( 'select' ) ;
5440
5541 {
5642 /** @type {NodeListOf<HTMLInputElement | HTMLTextAreaElement> } */
@@ -118,84 +104,12 @@ export default test({
118104 after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , false ) ) ;
119105 }
120106
121- {
122- /** @type {NodeListOf<HTMLInputElement> } */
123- const inputs = test6 . querySelectorAll ( 'input' ) ;
124- check_inputs ( inputs , 'checked' , [ false , true , false ] ) ;
125-
126- set_input ( inputs [ 0 ] , 'checked' , true ) ;
127- flushSync ( ) ;
128- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
129-
130- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
131- }
132-
133- {
134- /** @type {NodeListOf<HTMLInputElement> } */
135- const inputs = test7 . querySelectorAll ( 'input' ) ;
136- check_inputs ( inputs , 'checked' , [ false , true , false ] ) ;
137-
138- set_input ( inputs [ 0 ] , 'checked' , true ) ;
139- flushSync ( ) ;
140- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
141-
142- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
143- }
144-
145- {
146- /** @type {NodeListOf<HTMLInputElement> } */
147- const inputs = test8 . querySelectorAll ( 'input' ) ;
148- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
149-
150- set_input ( inputs [ 3 ] , 'checked' , true ) ;
151- flushSync ( ) ;
152- check_inputs ( inputs , 'checked' , [ false , false , true ] ) ;
153-
154- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
155- }
156-
157- {
158- /** @type {NodeListOf<HTMLInputElement> } */
159- const inputs = test9 . querySelectorAll ( 'input' ) ;
160- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
161-
162- set_input ( inputs [ 3 ] , 'checked' , true ) ;
163- flushSync ( ) ;
164- check_inputs ( inputs , 'checked' , [ false , false , true ] ) ;
165-
166- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
167- }
168-
169- {
170- /** @type {NodeListOf<HTMLInputElement> } */
171- const inputs = test12 . querySelectorAll ( 'input' ) ;
172- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
173-
174- set_input ( inputs [ 3 ] , 'checked' , true ) ;
175- flushSync ( ) ;
176- check_inputs ( inputs , 'checked' , [ true , false , true ] ) ;
177-
178- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
179- }
180-
181- {
182- /** @type {NodeListOf<HTMLInputElement> } */
183- const inputs = test13 . querySelectorAll ( 'input' ) ;
184- check_inputs ( inputs , 'checked' , [ true , false , false ] ) ;
185-
186- set_input ( inputs [ 3 ] , 'checked' , true ) ;
187- flushSync ( ) ;
188- check_inputs ( inputs , 'checked' , [ true , false , true ] ) ;
189-
190- after_reset . push ( ( ) => check_inputs ( inputs , 'checked' , [ false , true , false ] ) ) ;
191- }
192-
193107 {
194108 /** @type {NodeListOf<HTMLOptionElement> } */
195- const options = test14 . querySelectorAll ( 'option' ) ;
109+ const options = test6 . querySelectorAll ( 'option' ) ;
196110 check_inputs ( options , 'selected' , [ false , true , false ] ) ;
197111
198- select_option ( options [ 3 ] ) ;
112+ select_option ( options [ 2 ] ) ;
199113 flushSync ( ) ;
200114 check_inputs ( options , 'selected' , [ false , false , true ] ) ;
201115
@@ -204,10 +118,10 @@ export default test({
204118
205119 {
206120 /** @type {NodeListOf<HTMLOptionElement> } */
207- const options = test15 . querySelectorAll ( 'option' ) ;
121+ const options = test7 . querySelectorAll ( 'option' ) ;
208122 check_inputs ( options , 'selected' , [ false , true , false ] ) ;
209123
210- select_option ( options [ 3 ] ) ;
124+ select_option ( options [ 2 ] ) ;
211125 flushSync ( ) ;
212126 check_inputs ( options , 'selected' , [ false , false , true ] ) ;
213127
@@ -216,7 +130,7 @@ export default test({
216130
217131 {
218132 /** @type {NodeListOf<HTMLOptionElement> } */
219- const options = test16 . querySelectorAll ( 'option' ) ;
133+ const options = test8 . querySelectorAll ( 'option' ) ;
220134 check_inputs ( options , 'selected' , [ false , false , true ] ) ;
221135
222136 select_option ( options [ 0 ] ) ;
@@ -228,7 +142,7 @@ export default test({
228142
229143 {
230144 /** @type {NodeListOf<HTMLOptionElement> } */
231- const options = test17 . querySelectorAll ( 'option' ) ;
145+ const options = test9 . querySelectorAll ( 'option' ) ;
232146 check_inputs ( options , 'selected' , [ false , false , true ] ) ;
233147
234148 select_option ( options [ 0 ] ) ;
0 commit comments