Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:Function

28 function MjsUnitAssertionError(message) {
41 MjsUnitAssertionError.prototype.toString = function () {
72 // for tests that doesn't have their own assertXXX function.
85 // Assert that the passed function or eval code throws an exception.
92 // Assert that the passed function or eval code does not throw an exception.
102 (function () { // Scope for utility functions.
104 function classOf(object) {
112 function PrettyPrint(value) {
121 case "function":
151 function PrettyPrintArrayElement(value, index, array) {
157 function fail(expectedText, found, name_opt) {
170 function deepObjectEquals(a, b) {
187 function deepEquals(a, b) {
195 if (typeof a !== "object" && typeof a !== "function") return false;
204 if (objectClass === "Function") return false;
223 assertSame = function assertSame(expected, found, name_opt) {
225 // or the function equivalent Object.is() here.
235 assertEquals = function assertEquals(expected, found, name_opt) {
242 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) {
257 assertPropertiesEqual = function assertPropertiesEqual(expected, found,
266 assertToStringEquals = function assertToStringEquals(expected, found,
274 assertTrue = function assertTrue(value, name_opt) {
279 assertFalse = function assertFalse(value, name_opt) {
284 assertNull = function assertNull(value, name_opt) {
291 assertNotNull = function assertNotNull(value, name_opt) {
298 assertThrows = function assertThrows(code, type_opt, cause_opt) {
301 if (typeof code == 'function') {
308 if (typeof type_opt == 'function') {
321 assertInstanceof = function assertInstanceof(obj, type) {
325 if (typeof actualConstructor == "function") {
335 assertDoesNotThrow = function assertDoesNotThrow(code, name_opt) {
337 if (typeof code == 'function') {
347 assertUnreachable = function assertUnreachable(name_opt) {