Lines Matching refs:found
157 function fail(expectedText, found, name_opt) { argument
165 "> found <" + PrettyPrint(found) + ">";
223 assertSame = function assertSame(expected, found, name_opt) { argument
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) { argument
236 if (!deepEquals(found, expected)) {
237 fail(PrettyPrint(expected), found, name_opt);
242 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) { argument
247 assertEquals(expected.length, found.length, start + "array length");
248 if (expected.length == found.length) {
250 assertEquals(expected[i], found[i],
257 assertPropertiesEqual = function assertPropertiesEqual(expected, found, argument
260 if (!deepObjectEquals(expected, found)) {
261 fail(expected, found, name_opt);
266 assertToStringEquals = function assertToStringEquals(expected, found, argument
268 if (expected != String(found)) {
269 fail(expected, found, name_opt);