Lines Matching refs:remove
1 description("This test checks the behavior of the remove() method on the select.options object.");
6 debug("1.1 Remove (object) from empty Options");
8 shouldBe("select1.options.remove(value)", "undefined");
13 debug("1.2 Remove (string) from empty Options");
15 shouldBe("select1.options.remove(value)", "undefined");
20 debug("1.3 Remove (float) from empty Options");
22 shouldBe("select1.options.remove(value)", "undefined");
27 debug("1.4 Remove (boolean) from empty Options");
29 shouldBe("select1.options.remove(value)", "undefined");
34 debug("1.5 Remove (undefined) from empty Options");
36 shouldBe("select1.options.remove(value)", "undefined");
41 debug("1.6 Remove (null) from empty Options");
43 shouldBe("select1.options.remove(value)", "undefined");
48 debug("1.7 Remove (negative infinity) from empty Options");
50 shouldBe("select1.options.remove(value)", "undefined");
55 debug("1.8 Remove (NaN) from empty Options");
57 shouldBe("select1.options.remove(value)", "undefined");
62 debug("1.9 Remove (positive infinity) from empty Options");
64 shouldBe("select1.options.remove(value)", "undefined");
69 debug("1.10 Remove no args from empty Options");
70 shouldBe("select1.options.remove()", "undefined");
75 debug("1.11 Remove too many args from empty Options");
76 shouldBe("select1.options.remove(0, 'foo')", "undefined");
81 debug("1.12 Remove invalid index -2 from empty Options");
82 shouldBe("select1.options.remove(-2)", "undefined");
87 debug("1.13 Remove invalid index -1 from empty Options");
88 shouldBe("select1.options.remove(-1)", "undefined");
93 debug("1.14 Remove index 0 from empty Options");
94 shouldBe("select1.options.remove(0)", "undefined");
99 debug("1.15 Remove index 1 from empty Options");
100 shouldBe("select1.options.remove(1)", "undefined");
110 debug("2.1 Remove (object) from non-empty Options");
112 shouldBe("select2.options.remove(value)", "undefined");
118 debug("2.2 Remove (string) from non-empty Options");
120 shouldBe("select2.options.remove(value)", "undefined");
126 debug("2.3 Remove (float) from non-empty Options");
128 shouldBe("select2.options.remove(value)", "undefined");
134 debug("2.4 Remove (boolean true) from non-empty Options");
136 shouldBe("select2.options.remove(value)", "undefined");
142 debug("2.5 Remove (boolean false) from non-empty Options");
144 shouldBe("select2.options.remove(value)", "undefined");
150 debug("2.6 Remove (undefined) from non-empty Options");
152 shouldBe("select2.options.remove(value)", "undefined");
158 debug("2.7 Remove (null) from non-empty Options");
160 shouldBe("select2.options.remove(value)", "undefined");
166 debug("2.8 Remove (negative infinity) from non-empty Options");
168 shouldBe("select2.options.remove(value)", "undefined");
174 debug("2.9 Remove (NaN) from non-empty Options");
176 shouldBe("select2.options.remove(value)", "undefined");
182 debug("2.10 Remove (positive infinity) from non-empty Options");
184 shouldBe("select2.options.remove(value)", "undefined");
190 debug("2.11 Remove no args from non-empty Options");
191 shouldBe("select2.options.remove()", "undefined");
197 debug("2.12 Remove too many args from non-empty Options");
198 shouldBe("select2.options.remove(0, 'foo')", "undefined");
204 debug("2.13 Remove invalid index -2 from non-empty Options");
205 shouldBe("select2.options.remove(-2)", "undefined");
211 debug("2.14 Remove invalid index -1 from non-empty Options");
212 shouldBe("select2.options.remove(-1)", "undefined");
218 debug("2.15 Remove index 0 from non-empty Options");
219 shouldBe("select2.options.remove(0)", "undefined");
225 debug("2.16 Remove index 1 from non-empty Options");
226 shouldBe("select2.options.remove(1)", "undefined");