Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:SameValue

30 // Test the SameValue internal method.
35 assertTrue(natives.SameValue(0, 0));
36 assertTrue(natives.SameValue(+0, +0));
37 assertTrue(natives.SameValue(-0, -0));
38 assertTrue(natives.SameValue(1, 1));
39 assertTrue(natives.SameValue(2, 2));
40 assertTrue(natives.SameValue(-1, -1));
41 assertTrue(natives.SameValue(0.5, 0.5));
42 assertTrue(natives.SameValue(true, true));
43 assertTrue(natives.SameValue(false, false));
44 assertTrue(natives.SameValue(NaN, NaN));
45 assertTrue(natives.SameValue(null, null));
46 assertTrue(natives.SameValue("foo", "foo"));
47 assertTrue(natives.SameValue(obj1, obj1));
49 assertTrue(natives.SameValue());
50 assertTrue(natives.SameValue(undefined, undefined));
52 assertFalse(natives.SameValue(0,1));
53 assertFalse(natives.SameValue("foo", "bar"));
54 assertFalse(natives.SameValue(obj1, obj2));
55 assertFalse(natives.SameValue(true, false));
57 assertFalse(natives.SameValue(obj1, true));
58 assertFalse(natives.SameValue(obj1, "foo"));
59 assertFalse(natives.SameValue(obj1, 1));
60 assertFalse(natives.SameValue(obj1, undefined));
61 assertFalse(natives.SameValue(obj1, NaN));
63 assertFalse(natives.SameValue(undefined, true));
64 assertFalse(natives.SameValue(undefined, "foo"));
65 assertFalse(natives.SameValue(undefined, 1));
66 assertFalse(natives.SameValue(undefined, obj1));
67 assertFalse(natives.SameValue(undefined, NaN));
69 assertFalse(natives.SameValue(NaN, true));
70 assertFalse(natives.SameValue(NaN, "foo"));
71 assertFalse(natives.SameValue(NaN, 1));
72 assertFalse(natives.SameValue(NaN, obj1));
73 assertFalse(natives.SameValue(NaN, undefined));
75 assertFalse(natives.SameValue("foo", true));
76 assertFalse(natives.SameValue("foo", 1));
77 assertFalse(natives.SameValue("foo", obj1));
78 assertFalse(natives.SameValue("foo", undefined));
79 assertFalse(natives.SameValue("foo", NaN));
81 assertFalse(natives.SameValue(true, 1));
82 assertFalse(natives.SameValue(true, obj1));
83 assertFalse(natives.SameValue(true, undefined));
84 assertFalse(natives.SameValue(true, NaN));
85 assertFalse(natives.SameValue(true, "foo"));
87 assertFalse(natives.SameValue(1, true));
88 assertFalse(natives.SameValue(1, obj1));
89 assertFalse(natives.SameValue(1, undefined));
90 assertFalse(natives.SameValue(1, NaN));
91 assertFalse(natives.SameValue(1, "foo"));
94 assertFalse(natives.SameValue("1", 1));
95 assertFalse(natives.SameValue("true", true));
96 assertFalse(natives.SameValue("false", false));
97 assertFalse(natives.SameValue("undefined", undefined));
98 assertFalse(natives.SameValue("NaN", NaN));
101 assertFalse(natives.SameValue(+0, -0));
102 assertFalse(natives.SameValue(-0, +0));