Lines Matching refs:new
111 var x = new Wrapper(null);
117 var x = new Boolean(true);
123 var x = new Boolean(false);
134 testNotEqual(null, new Wrapper(null));
138 testNotEqual(null, new Object());
139 testNotEqual(undefined, new Wrapper(undefined));
143 testNotEqual(undefined, new Object());
165 testEqual(new Boolean(true), true);
166 testEqual(new Boolean(true), 1); // First to primtive boolean, then to number.
167 testEqual(new Boolean(false), false);
168 testEqual(new Boolean(false), 0);
170 testEqual(new Wrapper(true), true);
171 testEqual(new Wrapper(true), 1);
172 testEqual(new Wrapper(false), false);
173 testEqual(new Wrapper(false), 0);
175 testEqual(new Wrapper2(true), true);
176 testEqual(new Wrapper2(true), 1);
177 testEqual(new Wrapper2(false), false);
178 testEqual(new Wrapper2(false), 0);
180 testEqual(new Number(1), true);
181 testEqual(new Number(1), 1);
182 testEqual(new Number(0), false);
183 testEqual(new Number(0), 0);
187 testEqual(new Date(42), String(new Date(42)));
188 testNotEqual(new Date(42), Number(new Date(42)));
189 var dnow = new Date();
206 testNotEqual(new Wrapper(null), new Wrapper(null));
207 testNotEqual(new Boolean(true), new Boolean(true));
208 testNotEqual(new Boolean(false), new Boolean(false));
209 testNotEqual(new String("a"), new String("a"));
210 testNotEqual(new Number(42), new Number(42));
211 testNotEqual(new Date(42), new Date(42));
212 testNotEqual(new Array(42), new Array(42));
213 testNotEqual(new Object(), new Object());