Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:Expected

46 // Expected and found values the same objects, or the same primitive
51 // Expected and found values are identical primitive values or functions
58 // as the expected object. The expected object doesn't need to be an Array,
63 // expected object. The type of object isn't checked.
67 // the expected string. Only kept for backwards compatability, please
79 // please just use assertEquals(null, expected).
164 message += ": expected <" + expectedText +
223 assertSame = function assertSame(expected, found, name_opt) {
226 if (found === expected) {
227 if (expected !== 0 || (1 / expected) == (1 / found)) return;
228 } else if ((expected !== expected) && (found !== found)) {
231 fail(PrettyPrint(expected), found, name_opt);
235 assertEquals = function assertEquals(expected, found, name_opt) {
236 if (!deepEquals(found, expected)) {
237 fail(PrettyPrint(expected), found, name_opt);
242 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) {
247 assertEquals(expected.length, found.length, start + "array length");
248 if (expected.length == found.length) {
249 for (var i = 0; i < expected.length; ++i) {
250 assertEquals(expected[i], found[i],
257 assertPropertiesEqual = function assertPropertiesEqual(expected, found,
260 if (!deepObjectEquals(expected, found)) {
261 fail(expected, found, name_opt);
266 assertToStringEquals = function assertToStringEquals(expected, found,
268 if (expected != String(found)) {
269 fail(expected, found, name_opt);