MCPcopy Create free account
hub / github.com/GNOME/gjs / assertFalse

Function assertFalse

modules/script/jsUnit.js:102–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102function assertFalse() {
103 _validateArguments(1, arguments);
104 var booleanValue=nonCommentArg(1, 1, arguments);
105
106 if (typeof(booleanValue) != 'boolean')
107 error('Bad argument to assertFalse(boolean)');
108
109 _assert(commentArg(1, arguments), booleanValue === false, 'Call to assertFalse(boolean) with true');
110}
111
112function assertEquals() {
113 _validateArguments(2, arguments);

Callers

nothing calls this directly

Calls 5

_validateArgumentsFunction · 0.85
nonCommentArgFunction · 0.85
errorFunction · 0.85
_assertFunction · 0.85
commentArgFunction · 0.85

Tested by

no test coverage detected