Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:function

28 function MjsUnitAssertionError(message) {
41 MjsUnitAssertionError.prototype.toString = function () {
76 // for tests that doesn't have their own assertXXX function.
89 // Assert that the passed function or eval code throws an exception.
96 // Assert that the passed function or eval code does not throw an exception.
106 // Assert that the function code is (not) optimized. If "no sync" is passed
114 (function () { // Scope for utility functions.
116 function classOf(object) {
124 function PrettyPrint(value) {
133 case "function":
163 function PrettyPrintArrayElement(value, index, array) {
169 function fail(expectedText, found, name_opt) {
182 function deepObjectEquals(a, b) {
199 function deepEquals(a, b) {
207 if (typeof a !== "object" && typeof a !== "function") return false;
216 if (objectClass === "Function") return false;
234 function checkArity(args, arity, name) {
241 assertSame = function assertSame(expected, found, name_opt) {
245 // or the function equivalent Object.is() here.
255 assertEquals = function assertEquals(expected, found, name_opt) {
265 function assertEqualsDelta(expected, found, delta, name_opt) {
270 assertArrayEquals = function assertArrayEquals(expected, found, name_opt) {
285 assertPropertiesEqual = function assertPropertiesEqual(expected, found,
294 assertToStringEquals = function assertToStringEquals(expected, found,
302 assertTrue = function assertTrue(value, name_opt) {
307 assertFalse = function assertFalse(value, name_opt) {
312 assertNull = function assertNull(value, name_opt) {
319 assertNotNull = function assertNotNull(value, name_opt) {
326 assertThrows = function assertThrows(code, type_opt, cause_opt) {
329 if (typeof code == 'function') {
336 if (typeof type_opt == 'function') {
349 assertInstanceof = function assertInstanceof(obj, type) {
353 if (typeof actualConstructor == "function") {
363 assertDoesNotThrow = function assertDoesNotThrow(code, name_opt) {
365 if (typeof code == 'function') {
375 assertUnreachable = function assertUnreachable(name_opt) {
386 var OptimizationStatus = function(fun, sync_opt) {
389 OptimizationStatusImpl = new Function(
398 assertUnoptimized = function assertUnoptimized(fun, sync_opt, name_opt) {
403 assertOptimized = function assertOptimized(fun, sync_opt, name_opt) {