Best JavaScript code snippet using playwright-internal
Unit_Types_Is.js
Source:Unit_Types_Is.js
...65 66 __Internal__.d = tools.createObject(null);67 __Internal__.symbol = types.hasSymbolsEnabled() && types.getSymbol("symbol") || undefined;68 test.runCommand(types.isNothing, "Doodad.Types.isNothing", function(command, options) {69 command.runStep(true, {repetitions: 100}, /**/ undefined);70 command.runStep(true, {repetitions: 100}, /**/ null);71 command.runStep(false, {repetitions: 100}, /**/ '');72 command.runStep(false, {repetitions: 100}, /**/ ' ');73 command.runStep(false, {repetitions: 100}, /**/ 'a');74 command.runStep(false, {repetitions: 100}, /**/ '1');75 command.runStep(false, {repetitions: 100}, /**/ 0);76 command.runStep(false, {repetitions: 100}, /**/ 1);77 command.runStep(false, {repetitions: 100}, /**/ 0.1);78 command.runStep(false, {repetitions: 100}, /**/ NaN);79 command.runStep(false, {repetitions: 100}, /**/ Infinity);80 command.runStep(false, {repetitions: 100}, /**/ true);81 command.runStep(false, {repetitions: 100}, /**/ false);82 command.runStep(false, {repetitions: 100}, /**/ {});83 command.runStep(false, {repetitions: 100}, /**/ {a: 1});84 command.runStep(false, {repetitions: 100}, /**/ []);85 command.runStep(false, {repetitions: 100}, /**/ [1]);86 command.runStep(false, {repetitions: 100}, /**/ new String(''));87 command.runStep(false, {repetitions: 100}, /**/ new String(' '));88 command.runStep(false, {repetitions: 100}, /**/ new String('a'));89 command.runStep(false, {repetitions: 100}, /**/ new String('1'));90 command.runStep(false, {repetitions: 100}, /**/ new Number(0));91 command.runStep(false, {repetitions: 100}, /**/ new Number(1));92 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));93 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));94 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));95 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));96 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");97 command.runStep(false, {repetitions: 100}, /**/ new Date);98 command.runStep(false, {repetitions: 100}, /**/ new Error);99 command.runStep(false, {repetitions: 100}, /**/ (function(){}));100 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);101 command.runStep(false, {repetitions: 100}, /**/ Object);102 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");103 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);104 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);105 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);106 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);107 });108 test.runCommand(types.isPrimitive, "Doodad.Types.isPrimitive", function(command, options) {109 command.runStep(true, {repetitions: 100}, /**/ undefined);110 command.runStep(true, {repetitions: 100}, /**/ null);111 command.runStep(true, {repetitions: 100}, /**/ '');112 command.runStep(true, {repetitions: 100}, /**/ ' ');113 command.runStep(true, {repetitions: 100}, /**/ 'a');114 command.runStep(true, {repetitions: 100}, /**/ '1');115 command.runStep(true, {repetitions: 100}, /**/ 0);116 command.runStep(true, {repetitions: 100}, /**/ 1);117 command.runStep(true, {repetitions: 100}, /**/ 0.1);118 command.runStep(true, {repetitions: 100}, /**/ NaN);119 command.runStep(true, {repetitions: 100}, /**/ Infinity);120 command.runStep(true, {repetitions: 100}, /**/ true);121 command.runStep(true, {repetitions: 100}, /**/ false);122 command.runStep(false, {repetitions: 100}, /**/{});123 command.runStep(false, {repetitions: 100}, /**/{a: 1});124 command.runStep(false, {repetitions: 100}, /**/[]);125 command.runStep(false, {repetitions: 100}, /**/[1]);126 command.runStep(false, {repetitions: 100}, /**/new String(''));127 command.runStep(false, {repetitions: 100}, /**/new String(' '));128 command.runStep(false, {repetitions: 100}, /**/new String('a'));129 command.runStep(false, {repetitions: 100}, /**/new String('1'));130 command.runStep(false, {repetitions: 100}, /**/new Number(0));131 command.runStep(false, {repetitions: 100}, /**/new Number(1));132 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));133 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));134 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));135 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));136 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");137 command.runStep(false, {repetitions: 100}, /**/ new Date);138 command.runStep(false, {repetitions: 100}, /**/ new Error);139 command.runStep(false, {repetitions: 100}, /**/ (function(){}));140 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);141 command.runStep(false, {repetitions: 100}, /**/ Object);142 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");143 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);144 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);145 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);146 command.runStep(false, {repetitions: 100}, /**/ __Internal__.d);147 command.runStep(true, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);148 });149 150 test.runCommand(types.isNumber, "Doodad.Types.isNumber", function(command, options) {151 command.runStep(false, {repetitions: 100}, /**/undefined);152 command.runStep(false, {repetitions: 100}, /**/ null);153 command.runStep(false, {repetitions: 100}, /**/'');154 command.runStep(false, {repetitions: 100}, /**/' ');155 command.runStep(false, {repetitions: 100}, /**/'a');156 command.runStep(false, {repetitions: 100}, /**/'1');157 command.runStep(true, {repetitions: 100}, /**/ 0);158 command.runStep(true, {repetitions: 100}, /**/ 1);159 command.runStep(true, {repetitions: 100}, /**/ 0.1);160 command.runStep(false, {repetitions: 100}, /**/ NaN);161 command.runStep(true, {repetitions: 100}, /**/ Infinity);162 command.runStep(false, {repetitions: 100}, /**/ true);163 command.runStep(false, {repetitions: 100}, /**/ false);164 command.runStep(false, {repetitions: 100}, /**/{});165 command.runStep(false, {repetitions: 100}, /**/{a: 1});166 command.runStep(false, {repetitions: 100}, /**/[]);167 command.runStep(false, {repetitions: 100}, /**/[1]);168 command.runStep(false, {repetitions: 100}, /**/new String(''));169 command.runStep(false, {repetitions: 100}, /**/new String(' '));170 command.runStep(false, {repetitions: 100}, /**/new String('a'));171 command.runStep(false, {repetitions: 100}, /**/new String('1'));172 command.runStep(true, {repetitions: 100}, /**/ new Number(0));173 command.runStep(true, {repetitions: 100}, /**/ new Number(1));174 command.runStep(true, {repetitions: 100}, /**/ new Number(0.1));175 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));176 command.runStep(true, {repetitions: 100}, /**/ new Number(Infinity));177 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));178 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");179 command.runStep(false, {repetitions: 100}, /**/ new Date);180 command.runStep(false, {repetitions: 100}, /**/ new Error);181 command.runStep(false, {repetitions: 100}, /**/ (function(){}));182 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);183 command.runStep(false, {repetitions: 100}, /**/ Object);184 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");185 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);186 command.runStep(true, {repetitions: 100}, /**/ __Internal__.b);187 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);188 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);189 });190 test.runCommand(types.isInteger, "Doodad.Types.isInteger", function(command, options) {191 command.runStep(false, {repetitions: 100}, /**/undefined);192 command.runStep(false, {repetitions: 100}, /**/ null);193 command.runStep(false, {repetitions: 100}, /**/'');194 command.runStep(false, {repetitions: 100}, /**/' ');195 command.runStep(false, {repetitions: 100}, /**/'a');196 command.runStep(false, {repetitions: 100}, /**/'1');197 command.runStep(true, {repetitions: 100}, /**/ 0);198 command.runStep(true, {repetitions: 100}, /**/ 1);199 command.runStep(false, {repetitions: 100}, /**/ 0.1);200 command.runStep(false, {repetitions: 100}, /**/ NaN);201 command.runStep(false, {repetitions: 100}, /**/ Infinity);202 command.runStep(false, {repetitions: 100}, /**/ true);203 command.runStep(false, {repetitions: 100}, /**/ false);204 command.runStep(false, {repetitions: 100}, /**/{});205 command.runStep(false, {repetitions: 100}, /**/{a: 1});206 command.runStep(false, {repetitions: 100}, /**/[]);207 command.runStep(false, {repetitions: 100}, /**/[1]);208 command.runStep(false, {repetitions: 100}, /**/new String(''));209 command.runStep(false, {repetitions: 100}, /**/new String(' '));210 command.runStep(false, {repetitions: 100}, /**/new String('a'));211 command.runStep(false, {repetitions: 100}, /**/new String('1'));212 command.runStep(true, {repetitions: 100}, /**/ new Number(0));213 command.runStep(true, {repetitions: 100}, /**/ new Number(1));214 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));215 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));216 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));217 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));218 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");219 command.runStep(false, {repetitions: 100}, /**/ new Date);220 command.runStep(false, {repetitions: 100}, /**/ new Error);221 command.runStep(false, {repetitions: 100}, /**/ (function(){}));222 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);223 command.runStep(false, {repetitions: 100}, /**/ Object);224 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");225 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);226 command.runStep(true, {repetitions: 100}, /**/ __Internal__.b);227 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);228 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);229 });230 test.runCommand(types.isBoolean, "Doodad.Types.isBoolean", function(command, options) {231 command.runStep(false, {repetitions: 100}, /**/undefined);232 command.runStep(false, {repetitions: 100}, /**/ null);233 command.runStep(false, {repetitions: 100}, /**/'');234 command.runStep(false, {repetitions: 100}, /**/' ');235 command.runStep(false, {repetitions: 100}, /**/'a');236 command.runStep(false, {repetitions: 100}, /**/'1');237 command.runStep(false, {repetitions: 100}, /**/0);238 command.runStep(false, {repetitions: 100}, /**/1);239 command.runStep(false, {repetitions: 100}, /**/ 0.1);240 command.runStep(false, {repetitions: 100}, /**/ NaN);241 command.runStep(false, {repetitions: 100}, /**/ Infinity);242 command.runStep(true, {repetitions: 100}, /**/ true);243 command.runStep(true, {repetitions: 100}, /**/ false);244 command.runStep(false, {repetitions: 100}, /**/{});245 command.runStep(false, {repetitions: 100}, /**/{a: 1});246 command.runStep(false, {repetitions: 100}, /**/[]);247 command.runStep(false, {repetitions: 100}, /**/[1]);248 command.runStep(false, {repetitions: 100}, /**/new String(''));249 command.runStep(false, {repetitions: 100}, /**/new String(' '));250 command.runStep(false, {repetitions: 100}, /**/new String('a'));251 command.runStep(false, {repetitions: 100}, /**/new String('1'));252 command.runStep(false, {repetitions: 100}, /**/new Number(0));253 command.runStep(false, {repetitions: 100}, /**/new Number(1));254 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));255 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));256 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));257 command.runStep(true, {repetitions: 100}, /**/ new Boolean(false));258 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");259 command.runStep(false, {repetitions: 100}, /**/ new Date);260 command.runStep(false, {repetitions: 100}, /**/ new Error);261 command.runStep(false, {repetitions: 100}, /**/ (function(){}));262 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);263 command.runStep(false, {repetitions: 100}, /**/ Object);264 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");265 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);266 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);267 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);268 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);269 });270 271 test.runCommand(types.isInfinite, "Doodad.Types.isInfinite", function(command, options) {272 command.runStep(false, {repetitions: 100}, /**/undefined);273 command.runStep(false, {repetitions: 100}, /**/ null);274 command.runStep(false, {repetitions: 100}, /**/'');275 command.runStep(false, {repetitions: 100}, /**/' ');276 command.runStep(false, {repetitions: 100}, /**/'a');277 command.runStep(false, {repetitions: 100}, /**/'1');278 command.runStep(false, {repetitions: 100}, /**/0);279 command.runStep(false, {repetitions: 100}, /**/1);280 command.runStep(false, {repetitions: 100}, /**/ 0.1);281 command.runStep(false, {repetitions: 100}, /**/ NaN);282 command.runStep(true, {repetitions: 100}, /**/ Infinity);283 command.runStep(false, {repetitions: 100}, /**/ true);284 command.runStep(false, {repetitions: 100}, /**/ false);285 command.runStep(false, {repetitions: 100}, /**/{});286 command.runStep(false, {repetitions: 100}, /**/{a: 1});287 command.runStep(false, {repetitions: 100}, /**/[]);288 command.runStep(false, {repetitions: 100}, /**/[1]);289 command.runStep(false, {repetitions: 100}, /**/new String(''));290 command.runStep(false, {repetitions: 100}, /**/new String(' '));291 command.runStep(false, {repetitions: 100}, /**/new String('a'));292 command.runStep(false, {repetitions: 100}, /**/new String('1'));293 command.runStep(false, {repetitions: 100}, /**/new Number(0));294 command.runStep(false, {repetitions: 100}, /**/new Number(1));295 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));296 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));297 command.runStep(true, {repetitions: 100}, /**/ new Number(Infinity));298 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));299 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");300 command.runStep(false, {repetitions: 100}, /**/ new Date);301 command.runStep(false, {repetitions: 100}, /**/ new Error);302 command.runStep(false, {repetitions: 100}, /**/ (function(){}));303 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);304 command.runStep(false, {repetitions: 100}, /**/ Object);305 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");306 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);307 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);308 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);309 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);310 });311 312 test.runCommand(types.isFloat, "Doodad.Types.isFloat", function(command, options) {313 command.runStep(false, {repetitions: 100}, /**/undefined);314 command.runStep(false, {repetitions: 100}, /**/ null);315 command.runStep(false, {repetitions: 100}, /**/'');316 command.runStep(false, {repetitions: 100}, /**/' ');317 command.runStep(false, {repetitions: 100}, /**/'a');318 command.runStep(false, {repetitions: 100}, /**/'1');319 command.runStep(true, {repetitions: 100}, /**/0);320 command.runStep(true, {repetitions: 100}, /**/1);321 command.runStep(true, {repetitions: 100}, /**/ 0.1);322 command.runStep(false, {repetitions: 100}, /**/ NaN);323 command.runStep(false, {repetitions: 100}, /**/ Infinity);324 command.runStep(false, {repetitions: 100}, /**/ true);325 command.runStep(false, {repetitions: 100}, /**/ false);326 command.runStep(false, {repetitions: 100}, /**/{});327 command.runStep(false, {repetitions: 100}, /**/{a: 1});328 command.runStep(false, {repetitions: 100}, /**/[]);329 command.runStep(false, {repetitions: 100}, /**/[1]);330 command.runStep(false, {repetitions: 100}, /**/new String(''));331 command.runStep(false, {repetitions: 100}, /**/new String(' '));332 command.runStep(false, {repetitions: 100}, /**/new String('a'));333 command.runStep(false, {repetitions: 100}, /**/new String('1'));334 command.runStep(true, {repetitions: 100}, /**/new Number(0));335 command.runStep(true, {repetitions: 100}, /**/new Number(1));336 command.runStep(true, {repetitions: 100}, /**/ new Number(0.1));337 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));338 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));339 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));340 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");341 command.runStep(false, {repetitions: 100}, /**/ new Date);342 command.runStep(false, {repetitions: 100}, /**/ new Error);343 command.runStep(false, {repetitions: 100}, /**/ (function(){}));344 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);345 command.runStep(false, {repetitions: 100}, /**/ Object);346 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");347 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);348 command.runStep(true, {repetitions: 100}, /**/ __Internal__.b);349 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);350 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);351 });352 353 test.runCommand(types.isString, "Doodad.Types.isString", function(command, options) {354 command.runStep(false, {repetitions: 100}, /**/undefined);355 command.runStep(false, {repetitions: 100}, /**/ null);356 command.runStep(true, {repetitions: 100}, /**/ '');357 command.runStep(true, {repetitions: 100}, /**/ ' ');358 command.runStep(true, {repetitions: 100}, /**/ 'a');359 command.runStep(true, {repetitions: 100}, /**/ '1');360 command.runStep(false, {repetitions: 100}, /**/0);361 command.runStep(false, {repetitions: 100}, /**/1);362 command.runStep(false, {repetitions: 100}, /**/ 0.1);363 command.runStep(false, {repetitions: 100}, /**/ NaN);364 command.runStep(false, {repetitions: 100}, /**/ Infinity);365 command.runStep(false, {repetitions: 100}, /**/ true);366 command.runStep(false, {repetitions: 100}, /**/ false);367 command.runStep(false, {repetitions: 100}, /**/{});368 command.runStep(false, {repetitions: 100}, /**/{a: 1});369 command.runStep(false, {repetitions: 100}, /**/[]);370 command.runStep(false, {repetitions: 100}, /**/[1]);371 command.runStep(true, {repetitions: 100}, /**/ new String(''));372 command.runStep(true, {repetitions: 100}, /**/ new String(' '));373 command.runStep(true, {repetitions: 100}, /**/ new String('a'));374 command.runStep(true, {repetitions: 100}, /**/ new String('1'));375 command.runStep(false, {repetitions: 100}, /**/new Number(0));376 command.runStep(false, {repetitions: 100}, /**/new Number(1));377 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));378 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));379 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));380 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));381 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");382 command.runStep(false, {repetitions: 100}, /**/ new Date);383 command.runStep(false, {repetitions: 100}, /**/ new Error);384 command.runStep(false, {repetitions: 100}, /**/ (function(){}));385 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);386 command.runStep(false, {repetitions: 100}, /**/ Object);387 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");388 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);389 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);390 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);391 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);392 });393 394 test.runCommand(types.isDate, "Doodad.Types.isDate", function(command, options) {395 command.runStep(false, {repetitions: 100}, /**/undefined);396 command.runStep(false, {repetitions: 100}, /**/ null);397 command.runStep(false, {repetitions: 100}, /**/'');398 command.runStep(false, {repetitions: 100}, /**/' ');399 command.runStep(false, {repetitions: 100}, /**/'a');400 command.runStep(false, {repetitions: 100}, /**/'1');401 command.runStep(false, {repetitions: 100}, /**/0);402 command.runStep(false, {repetitions: 100}, /**/1);403 command.runStep(false, {repetitions: 100}, /**/ 0.1);404 command.runStep(false, {repetitions: 100}, /**/ NaN);405 command.runStep(false, {repetitions: 100}, /**/ Infinity);406 command.runStep(false, {repetitions: 100}, /**/ true);407 command.runStep(false, {repetitions: 100}, /**/ false);408 command.runStep(false, {repetitions: 100}, /**/{});409 command.runStep(false, {repetitions: 100}, /**/{a: 1});410 command.runStep(false, {repetitions: 100}, /**/[]);411 command.runStep(false, {repetitions: 100}, /**/[1]);412 command.runStep(false, {repetitions: 100}, /**/new String(''));413 command.runStep(false, {repetitions: 100}, /**/new String(' '));414 command.runStep(false, {repetitions: 100}, /**/new String('a'));415 command.runStep(false, {repetitions: 100}, /**/new String('1'));416 command.runStep(false, {repetitions: 100}, /**/new Number(0));417 command.runStep(false, {repetitions: 100}, /**/new Number(1));418 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));419 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));420 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));421 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));422 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");423 command.runStep(true, {repetitions: 100}, /**/ new Date);424 command.runStep(false, {repetitions: 100}, /**/ new Error);425 command.runStep(false, {repetitions: 100}, /**/ (function(){}));426 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);427 command.runStep(false, {repetitions: 100}, /**/ Object);428 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");429 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);430 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);431 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);432 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);433 });434 435 test.runCommand(types.isArray, "Doodad.Types.isArray", function(command, options) {436 command.runStep(false, {repetitions: 100}, /**/undefined);437 command.runStep(false, {repetitions: 100}, /**/ null);438 command.runStep(false, {repetitions: 100}, /**/'');439 command.runStep(false, {repetitions: 100}, /**/' ');440 command.runStep(false, {repetitions: 100}, /**/'a');441 command.runStep(false, {repetitions: 100}, /**/'1');442 command.runStep(false, {repetitions: 100}, /**/0);443 command.runStep(false, {repetitions: 100}, /**/1);444 command.runStep(false, {repetitions: 100}, /**/ 0.1);445 command.runStep(false, {repetitions: 100}, /**/ NaN);446 command.runStep(false, {repetitions: 100}, /**/ Infinity);447 command.runStep(false, {repetitions: 100}, /**/ true);448 command.runStep(false, {repetitions: 100}, /**/ false);449 command.runStep(false, {repetitions: 100}, /**/{});450 command.runStep(false, {repetitions: 100}, /**/{a: 1});451 command.runStep(true, {repetitions: 100}, /**/ []);452 command.runStep(true, {repetitions: 100}, /**/ [1]);453 command.runStep(false, {repetitions: 100}, /**/new String(''));454 command.runStep(false, {repetitions: 100}, /**/new String(' '));455 command.runStep(false, {repetitions: 100}, /**/new String('a'));456 command.runStep(false, {repetitions: 100}, /**/new String('1'));457 command.runStep(false, {repetitions: 100}, /**/new Number(0));458 command.runStep(false, {repetitions: 100}, /**/new Number(1));459 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));460 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));461 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));462 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));463 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");464 command.runStep(false, {repetitions: 100}, /**/ new Date);465 command.runStep(false, {repetitions: 100}, /**/ new Error);466 command.runStep(false, {repetitions: 100}, /**/ (function(){}));467 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);468 command.runStep(false, {repetitions: 100}, /**/ Object);469 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");470 command.runStep(true, {repetitions: 100}, /**/ __Internal__.a);471 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);472 command.runStep(true, {repetitions: 100}, /**/ __Internal__.c);473 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);474 });475 476 test.runCommand(types.isArrayAndNotEmpty, "Doodad.Types.isArrayAndNotEmpty", function(command, options) {477 command.runStep(false, {repetitions: 100}, /**/undefined);478 command.runStep(false, {repetitions: 100}, /**/ null);479 command.runStep(false, {repetitions: 100}, /**/'');480 command.runStep(false, {repetitions: 100}, /**/' ');481 command.runStep(false, {repetitions: 100}, /**/'a');482 command.runStep(false, {repetitions: 100}, /**/'1');483 command.runStep(false, {repetitions: 100}, /**/0);484 command.runStep(false, {repetitions: 100}, /**/1);485 command.runStep(false, {repetitions: 100}, /**/ 0.1);486 command.runStep(false, {repetitions: 100}, /**/ NaN);487 command.runStep(false, {repetitions: 100}, /**/ Infinity);488 command.runStep(false, {repetitions: 100}, /**/ true);489 command.runStep(false, {repetitions: 100}, /**/ false);490 command.runStep(false, {repetitions: 100}, /**/{});491 command.runStep(false, {repetitions: 100}, /**/{a: 1});492 command.runStep(false, {repetitions: 100}, /**/[]);493 command.runStep(true, {repetitions: 100}, /**/ [1]);494 command.runStep(false, {repetitions: 100}, /**/new String(''));495 command.runStep(false, {repetitions: 100}, /**/new String(' '));496 command.runStep(false, {repetitions: 100}, /**/new String('a'));497 command.runStep(false, {repetitions: 100}, /**/new String('1'));498 command.runStep(false, {repetitions: 100}, /**/new Number(0));499 command.runStep(false, {repetitions: 100}, /**/new Number(1));500 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));501 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));502 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));503 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));504 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");505 command.runStep(false, {repetitions: 100}, /**/ new Date);506 command.runStep(false, {repetitions: 100}, /**/ new Error);507 command.runStep(false, {repetitions: 100}, /**/ (function(){}));508 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);509 command.runStep(false, {repetitions: 100}, /**/ Object);510 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");511 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);512 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);513 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);514 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);515 });516 517 test.runCommand(types.isArrayLike, "Doodad.Types.isArrayLike", function(command, options) {518 command.runStep(false, {repetitions: 100}, /**/undefined);519 command.runStep(false, {repetitions: 100}, /**/ null);520 command.runStep(true, {repetitions: 100}, /**/ '');521 command.runStep(true, {repetitions: 100}, /**/ ' ');522 command.runStep(true, {repetitions: 100}, /**/ 'a');523 command.runStep(true, {repetitions: 100}, /**/ '1');524 command.runStep(false, {repetitions: 100}, /**/0);525 command.runStep(false, {repetitions: 100}, /**/1);526 command.runStep(false, {repetitions: 100}, /**/ 0.1);527 command.runStep(false, {repetitions: 100}, /**/ NaN);528 command.runStep(false, {repetitions: 100}, /**/ Infinity);529 command.runStep(false, {repetitions: 100}, /**/ true);530 command.runStep(false, {repetitions: 100}, /**/ false);531 command.runStep(false, {repetitions: 100}, /**/{});532 command.runStep(false, {repetitions: 100}, /**/{a: 1});533 command.runStep(true, {repetitions: 100}, /**/ []);534 command.runStep(true, {repetitions: 100}, /**/ [1]);535 command.runStep(true, {repetitions: 100}, /**/ new String(''));536 command.runStep(true, {repetitions: 100}, /**/ new String(' '));537 command.runStep(true, {repetitions: 100}, /**/ new String('a'));538 command.runStep(true, {repetitions: 100}, /**/ new String('1'));539 command.runStep(false, {repetitions: 100}, /**/new Number(0));540 command.runStep(false, {repetitions: 100}, /**/new Number(1));541 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));542 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));543 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));544 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));545 command.runStep(true, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is a special function."}, /**/ "document.forms");546 command.runStep(false, {repetitions: 100}, /**/ new Date);547 command.runStep(false, {repetitions: 100}, /**/ new Error);548 command.runStep(false, {repetitions: 100}, /**/ (function(){}));549 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);550 command.runStep(false, {repetitions: 100}, /**/ Object);551 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");552 command.runStep(true, {repetitions: 100}, /**/ __Internal__.a);553 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);554 command.runStep(true, {repetitions: 100}, /**/ __Internal__.c);555 command.runStep(true, {repetitions: 100}, /**/ {length: 3});556 command.runStep(false, {repetitions: 100}, /**/ {length: 3.1});557 command.runStep(false, {repetitions: 100}, /**/ {length: -3});558 command.runStep(false, {repetitions: 100}, /**/ {length: NaN});559 command.runStep(false, {repetitions: 100}, /**/ {length: Infinity});560 command.runStep(false, {repetitions: 100}, /**/ {length: -Infinity});561 command.runStep(false, {repetitions: 100}, /**/ {length: null});562 command.runStep(false, {repetitions: 100}, /**/ {length: {}});563 command.runStep(false, {repetitions: 100}, /**/ {length: []});564 command.runStep(false, {repetitions: 100}, /**/ {length: ''});565 command.runStep(false, {repetitions: 100}, /**/ {length: '3'});566 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);567 });568 569 test.runCommand(types.isArrayLikeAndNotEmpty, "Doodad.Types.isArrayLikeAndNotEmpty", function(command, options) {570 command.runStep(false, {repetitions: 100}, /**/undefined);571 command.runStep(false, {repetitions: 100}, /**/ null);572 command.runStep(false, {repetitions: 100}, /**/'');573 command.runStep(true, {repetitions: 100}, /**/ ' ');574 command.runStep(true, {repetitions: 100}, /**/ 'a');575 command.runStep(true, {repetitions: 100}, /**/ '1');576 command.runStep(false, {repetitions: 100}, /**/0);577 command.runStep(false, {repetitions: 100}, /**/1);578 command.runStep(false, {repetitions: 100}, /**/ 0.1);579 command.runStep(false, {repetitions: 100}, /**/ NaN);580 command.runStep(false, {repetitions: 100}, /**/ Infinity);581 command.runStep(false, {repetitions: 100}, /**/ true);582 command.runStep(false, {repetitions: 100}, /**/ false);583 command.runStep(false, {repetitions: 100}, /**/{});584 command.runStep(false, {repetitions: 100}, /**/{a: 1});585 command.runStep(false, {repetitions: 100}, /**/[]);586 command.runStep(true, {repetitions: 100}, /**/ [1]);587 command.runStep(false, {repetitions: 100}, /**/new String(''));588 command.runStep(true, {repetitions: 100}, /**/ new String(' '));589 command.runStep(true, {repetitions: 100}, /**/ new String('a'));590 command.runStep(true, {repetitions: 100}, /**/ new String('1'));591 command.runStep(false, {repetitions: 100}, /**/new Number(0));592 command.runStep(false, {repetitions: 100}, /**/new Number(1));593 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));594 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));595 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));596 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));597 command.runStep("document.forms.length > 0", {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");598 command.runStep(false, {repetitions: 100}, /**/ new Date);599 command.runStep(false, {repetitions: 100}, /**/ new Error);600 command.runStep(false, {repetitions: 100}, /**/ (function(){}));601 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);602 command.runStep(false, {repetitions: 100}, /**/ Object);603 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");604 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);605 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);606 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);607 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);608 });609 610 test.runCommand(types.isObject, "Doodad.Types.isObject", function(command, options) {611 command.runStep(false, {repetitions: 100}, /**/undefined);612 command.runStep(false, {repetitions: 100}, /**/ null);613 command.runStep(false, {repetitions: 100}, /**/'');614 command.runStep(false, {repetitions: 100}, /**/' ');615 command.runStep(false, {repetitions: 100}, /**/'a');616 command.runStep(false, {repetitions: 100}, /**/'1');617 command.runStep(false, {repetitions: 100}, /**/0);618 command.runStep(false, {repetitions: 100}, /**/1);619 command.runStep(false, {repetitions: 100}, /**/ 0.1);620 command.runStep(false, {repetitions: 100}, /**/ NaN);621 command.runStep(false, {repetitions: 100}, /**/ Infinity);622 command.runStep(false, {repetitions: 100}, /**/ true);623 command.runStep(false, {repetitions: 100}, /**/ false);624 command.runStep(true, {repetitions: 100}, /**/ {});625 command.runStep(true, {repetitions: 100}, /**/ {a: 1});626 command.runStep(false, {repetitions: 100}, /**/[]);627 command.runStep(false, {repetitions: 100}, /**/[1]);628 command.runStep(false, {repetitions: 100}, /**/new String(''));629 command.runStep(false, {repetitions: 100}, /**/new String(' '));630 command.runStep(false, {repetitions: 100}, /**/new String('a'));631 command.runStep(false, {repetitions: 100}, /**/new String('1'));632 command.runStep(false, {repetitions: 100}, /**/new Number(0));633 command.runStep(false, {repetitions: 100}, /**/new Number(1));634 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));635 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));636 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));637 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));638 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");639 command.runStep(false, {repetitions: 100}, /**/ new Date);640 command.runStep(false, {repetitions: 100}, /**/ new Error);641 command.runStep(false, {repetitions: 100}, /**/ (function(){}));642 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);643 command.runStep(false, {repetitions: 100}, /**/ Object);644 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");645 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);646 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);647 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);648 command.runStep(true, {repetitions: 100}, /**/ __Internal__.d);649 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);650 });651 652 test.runCommand(types.isObjectLike, "Doodad.Types.isObjectLike", function(command, options) {653 command.runStep(false, {repetitions: 100}, /**/undefined);654 command.runStep(false, {repetitions: 100}, /**/ null);655 command.runStep(false, {repetitions: 100}, /**/'');656 command.runStep(false, {repetitions: 100}, /**/' ');657 command.runStep(false, {repetitions: 100}, /**/'a');658 command.runStep(false, {repetitions: 100}, /**/'1');659 command.runStep(false, {repetitions: 100}, /**/0);660 command.runStep(false, {repetitions: 100}, /**/1);661 command.runStep(false, {repetitions: 100}, /**/ 0.1);662 command.runStep(false, {repetitions: 100}, /**/ NaN);663 command.runStep(false, {repetitions: 100}, /**/ Infinity);664 command.runStep(false, {repetitions: 100}, /**/ true);665 command.runStep(false, {repetitions: 100}, /**/ false);666 command.runStep(true, {repetitions: 100}, /**/ {});667 command.runStep(true, {repetitions: 100}, /**/ {a: 1});668 command.runStep(true, {repetitions: 100}, /**/ []);669 command.runStep(true, {repetitions: 100}, /**/ [1]);670 command.runStep(true, {repetitions: 100}, /**/ new String(''));671 command.runStep(true, {repetitions: 100}, /**/ new String(' '));672 command.runStep(true, {repetitions: 100}, /**/ new String('a'));673 command.runStep(true, {repetitions: 100}, /**/ new String('1'));674 command.runStep(true, {repetitions: 100}, /**/ new Number(0));675 command.runStep(true, {repetitions: 100}, /**/ new Number(1));676 command.runStep(true, {repetitions: 100}, /**/ new Number(0.1));677 command.runStep(true, {repetitions: 100}, /**/ new Number(NaN));678 command.runStep(true, {repetitions: 100}, /**/ new Number(Infinity));679 command.runStep(true, {repetitions: 100}, /**/ new Boolean(false));680 command.runStep(true, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");681 command.runStep(true, {repetitions: 100}, /**/ new Date);682 command.runStep(true, {repetitions: 100}, /**/ new Error);683 command.runStep(true, {repetitions: 100}, /**/ (function(){}));684 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);685 command.runStep(true, {repetitions: 100}, /**/ Object);686 command.runStep(true, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");687 command.runStep(true, {repetitions: 100}, /**/ __Internal__.a);688 command.runStep(true, {repetitions: 100}, /**/ __Internal__.b);689 command.runStep(true, {repetitions: 100}, /**/ __Internal__.c);690 command.runStep(true, {repetitions: 100}, /**/ __Internal__.d);691 global.symbol && command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);692 });693 694 test.runCommand(types.isFunction, "Doodad.Types.isFunction", function(command, options) {695 command.runStep(false, {repetitions: 100}, /**/undefined);696 command.runStep(false, {repetitions: 100}, /**/ null);697 command.runStep(false, {repetitions: 100}, /**/'');698 command.runStep(false, {repetitions: 100}, /**/' ');699 command.runStep(false, {repetitions: 100}, /**/'a');700 command.runStep(false, {repetitions: 100}, /**/'1');701 command.runStep(false, {repetitions: 100}, /**/0);702 command.runStep(false, {repetitions: 100}, /**/1);703 command.runStep(false, {repetitions: 100}, /**/ 0.1);704 command.runStep(false, {repetitions: 100}, /**/ NaN);705 command.runStep(false, {repetitions: 100}, /**/ Infinity);706 command.runStep(false, {repetitions: 100}, /**/ true);707 command.runStep(false, {repetitions: 100}, /**/ false);708 command.runStep(false, {repetitions: 100}, /**/{});709 command.runStep(false, {repetitions: 100}, /**/{a: 1});710 command.runStep(false, {repetitions: 100}, /**/[]);711 command.runStep(false, {repetitions: 100}, /**/[1]);712 command.runStep(false, {repetitions: 100}, /**/new String(''));713 command.runStep(false, {repetitions: 100}, /**/new String(' '));714 command.runStep(false, {repetitions: 100}, /**/new String('a'));715 command.runStep(false, {repetitions: 100}, /**/new String('1'));716 command.runStep(false, {repetitions: 100}, /**/new Number(0));717 command.runStep(false, {repetitions: 100}, /**/new Number(1));718 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));719 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));720 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));721 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));722 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is a special function."}, /**/ "document.forms");723 command.runStep(false, {repetitions: 100}, /**/ new Date);724 command.runStep(false, {repetitions: 100}, /**/ new Error);725 command.runStep(true, {repetitions: 100}, /**/ (function(){}));726 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);727 command.runStep(true, {repetitions: 100}, /**/ Object);728 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");729 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);730 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);731 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);732 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);733 });734 735 test.runCommand(types.isNativeFunction, "Doodad.Types.isNativeFunction", function(command, options) {736 command.runStep(false, {repetitions: 100}, /**/undefined);737 command.runStep(false, {repetitions: 100}, /**/ null);738 command.runStep(false, {repetitions: 100}, /**/'');739 command.runStep(false, {repetitions: 100}, /**/' ');740 command.runStep(false, {repetitions: 100}, /**/'a');741 command.runStep(false, {repetitions: 100}, /**/'1');742 command.runStep(false, {repetitions: 100}, /**/0);743 command.runStep(false, {repetitions: 100}, /**/1);744 command.runStep(false, {repetitions: 100}, /**/ 0.1);745 command.runStep(false, {repetitions: 100}, /**/ NaN);746 command.runStep(false, {repetitions: 100}, /**/ Infinity);747 command.runStep(false, {repetitions: 100}, /**/ true);748 command.runStep(false, {repetitions: 100}, /**/ false);749 command.runStep(false, {repetitions: 100}, /**/{});750 command.runStep(false, {repetitions: 100}, /**/{a: 1});751 command.runStep(false, {repetitions: 100}, /**/[]);752 command.runStep(false, {repetitions: 100}, /**/[1]);753 command.runStep(false, {repetitions: 100}, /**/new String(''));754 command.runStep(false, {repetitions: 100}, /**/new String(' '));755 command.runStep(false, {repetitions: 100}, /**/new String('a'));756 command.runStep(false, {repetitions: 100}, /**/new String('1'));757 command.runStep(false, {repetitions: 100}, /**/new Number(0));758 command.runStep(false, {repetitions: 100}, /**/new Number(1));759 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));760 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));761 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));762 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));763 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is a special function."}, /**/ "document.forms");764 command.runStep(false, {repetitions: 100}, /**/ new Date);765 command.runStep(false, {repetitions: 100}, /**/ new Error);766 command.runStep(false, {repetitions: 100}, /**/ (function(){}));767 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);768 command.runStep(true, {repetitions: 100}, /**/ Object);769 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");770 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);771 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);772 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);773 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);774 });775 776 test.runCommand(types.isCustomFunction, "Doodad.Types.isCustomFunction", function(command, options) {777 command.runStep(false, {repetitions: 100}, /**/undefined);778 command.runStep(false, {repetitions: 100}, /**/ null);779 command.runStep(false, {repetitions: 100}, /**/'');780 command.runStep(false, {repetitions: 100}, /**/' ');781 command.runStep(false, {repetitions: 100}, /**/'a');782 command.runStep(false, {repetitions: 100}, /**/'1');783 command.runStep(false, {repetitions: 100}, /**/0);784 command.runStep(false, {repetitions: 100}, /**/1);785 command.runStep(false, {repetitions: 100}, /**/ 0.1);786 command.runStep(false, {repetitions: 100}, /**/ NaN);787 command.runStep(false, {repetitions: 100}, /**/ Infinity);788 command.runStep(false, {repetitions: 100}, /**/ true);789 command.runStep(false, {repetitions: 100}, /**/ false);790 command.runStep(false, {repetitions: 100}, /**/{});791 command.runStep(false, {repetitions: 100}, /**/{a: 1});792 command.runStep(false, {repetitions: 100}, /**/[]);793 command.runStep(false, {repetitions: 100}, /**/[1]);794 command.runStep(false, {repetitions: 100}, /**/new String(''));795 command.runStep(false, {repetitions: 100}, /**/new String(' '));796 command.runStep(false, {repetitions: 100}, /**/new String('a'));797 command.runStep(false, {repetitions: 100}, /**/new String('1'));798 command.runStep(false, {repetitions: 100}, /**/new Number(0));799 command.runStep(false, {repetitions: 100}, /**/new Number(1));800 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));801 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));802 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));803 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));804 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is a special function."}, /**/ "document.forms");805 command.runStep(false, {repetitions: 100}, /**/ new Date);806 command.runStep(false, {repetitions: 100}, /**/ new Error);807 command.runStep(true, {repetitions: 100}, /**/ (function(){}));808 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);809 command.runStep(false, {repetitions: 100}, /**/ Object);810 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");811 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);812 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);813 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);814 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);815 });816 817 test.runCommand(types.isNaN, "Doodad.Types.isNaN", function(command, options) {818 command.runStep(false, {repetitions: 100}, /**/undefined);819 command.runStep(false, {repetitions: 100}, /**/ null);820 command.runStep(false, {repetitions: 100}, /**/'');821 command.runStep(false, {repetitions: 100}, /**/' ');822 command.runStep(false, {repetitions: 100}, /**/'a');823 command.runStep(false, {repetitions: 100}, /**/'1');824 command.runStep(false, {repetitions: 100}, /**/0);825 command.runStep(false, {repetitions: 100}, /**/1);826 command.runStep(false, {repetitions: 100}, /**/ 0.1);827 command.runStep(true, {repetitions: 100}, /**/ NaN);828 command.runStep(false, {repetitions: 100}, /**/ Infinity);829 command.runStep(false, {repetitions: 100}, /**/ true);830 command.runStep(false, {repetitions: 100}, /**/ false);831 command.runStep(false, {repetitions: 100}, /**/{});832 command.runStep(false, {repetitions: 100}, /**/{a: 1});833 command.runStep(false, {repetitions: 100}, /**/[]);834 command.runStep(false, {repetitions: 100}, /**/[1]);835 command.runStep(false, {repetitions: 100}, /**/new String(''));836 command.runStep(false, {repetitions: 100}, /**/new String(' '));837 command.runStep(false, {repetitions: 100}, /**/new String('a'));838 command.runStep(false, {repetitions: 100}, /**/new String('1'));839 command.runStep(false, {repetitions: 100}, /**/new Number(0));840 command.runStep(false, {repetitions: 100}, /**/new Number(1));841 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));842 command.runStep(true, {repetitions: 100}, /**/ new Number(NaN));843 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));844 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));845 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");846 command.runStep(false, {repetitions: 100}, /**/ new Date);847 command.runStep(false, {repetitions: 100}, /**/ new Error);848 command.runStep(false, {repetitions: 100}, /**/ (function(){}));849 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);850 command.runStep(false, {repetitions: 100}, /**/ Object);851 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");852 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);853 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);854 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);855 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);856 });857 858 test.runCommand(types.isError, "Doodad.Types.isError", function(command, options) {859 command.runStep(false, {repetitions: 100}, /**/undefined);860 command.runStep(false, {repetitions: 100}, /**/ null);861 command.runStep(false, {repetitions: 100}, /**/'');862 command.runStep(false, {repetitions: 100}, /**/' ');863 command.runStep(false, {repetitions: 100}, /**/'a');864 command.runStep(false, {repetitions: 100}, /**/'1');865 command.runStep(false, {repetitions: 100}, /**/0);866 command.runStep(false, {repetitions: 100}, /**/1);867 command.runStep(false, {repetitions: 100}, /**/ 0.1);868 command.runStep(false, {repetitions: 100}, /**/ NaN);869 command.runStep(false, {repetitions: 100}, /**/ Infinity);870 command.runStep(false, {repetitions: 100}, /**/ true);871 command.runStep(false, {repetitions: 100}, /**/ false);872 command.runStep(false, {repetitions: 100}, /**/{});873 command.runStep(false, {repetitions: 100}, /**/{a: 1});874 command.runStep(false, {repetitions: 100}, /**/[]);875 command.runStep(false, {repetitions: 100}, /**/[1]);876 command.runStep(false, {repetitions: 100}, /**/new String(''));877 command.runStep(false, {repetitions: 100}, /**/new String(' '));878 command.runStep(false, {repetitions: 100}, /**/new String('a'));879 command.runStep(false, {repetitions: 100}, /**/new String('1'));880 command.runStep(false, {repetitions: 100}, /**/new Number(0));881 command.runStep(false, {repetitions: 100}, /**/new Number(1));882 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));883 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));884 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));885 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));886 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");887 command.runStep(false, {repetitions: 100}, /**/ new Date);888 command.runStep(true, {repetitions: 100}, /**/ new Error);889 command.runStep(false, {repetitions: 100}, /**/ (function(){}));890 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);891 command.runStep(false, {repetitions: 100}, /**/ Object);892 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");893 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);894 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);895 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);896 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);897 });898 test.runCommand(client && client.isWindow, "Doodad.Client.isWindow", function(command, options) {899 command.runStep(false, {repetitions: 100}, /**/undefined);900 command.runStep(false, {repetitions: 100}, /**/ null);901 command.runStep(false, {repetitions: 100}, /**/'');902 command.runStep(false, {repetitions: 100}, /**/' ');903 command.runStep(false, {repetitions: 100}, /**/'a');904 command.runStep(false, {repetitions: 100}, /**/'1');905 command.runStep(false, {repetitions: 100}, /**/0);906 command.runStep(false, {repetitions: 100}, /**/1);907 command.runStep(false, {repetitions: 100}, /**/ 0.1);908 command.runStep(false, {repetitions: 100}, /**/ NaN);909 command.runStep(false, {repetitions: 100}, /**/ Infinity);910 command.runStep(false, {repetitions: 100}, /**/ true);911 command.runStep(false, {repetitions: 100}, /**/ false);912 command.runStep(false, {repetitions: 100}, /**/{});913 command.runStep(false, {repetitions: 100}, /**/{a: 1});914 command.runStep(false, {repetitions: 100}, /**/[]);915 command.runStep(false, {repetitions: 100}, /**/[1]);916 command.runStep(false, {repetitions: 100}, /**/new String(''));917 command.runStep(false, {repetitions: 100}, /**/new String(' '));918 command.runStep(false, {repetitions: 100}, /**/new String('a'));919 command.runStep(false, {repetitions: 100}, /**/new String('1'));920 command.runStep(false, {repetitions: 100}, /**/new Number(0));921 command.runStep(false, {repetitions: 100}, /**/new Number(1));922 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));923 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));924 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));925 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));926 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.forms");927 command.runStep(false, {repetitions: 100}, /**/ new Date);928 command.runStep(false, {repetitions: 100}, /**/ new Error);929 command.runStep(false, {repetitions: 100}, /**/ (function(){}));930 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);931 command.runStep(false, {repetitions: 100}, /**/ Object);932 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.body");933 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);934 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);935 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);936 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);937 command.runStep(true, {repetitions: 100}, /**/ global);938 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document");939 command.runStep(false, {repetitions: 100}, /**/ __Internal__.textNode);940 }, {skip: !global.document});941 942 test.runCommand(client && client.isDocument, "Doodad.Client.isDocument", function(command, options) {943 command.runStep(false, {repetitions: 100}, /**/undefined);944 command.runStep(false, {repetitions: 100}, /**/ null);945 command.runStep(false, {repetitions: 100}, /**/'');946 command.runStep(false, {repetitions: 100}, /**/' ');947 command.runStep(false, {repetitions: 100}, /**/'a');948 command.runStep(false, {repetitions: 100}, /**/'1');949 command.runStep(false, {repetitions: 100}, /**/0);950 command.runStep(false, {repetitions: 100}, /**/1);951 command.runStep(false, {repetitions: 100}, /**/ 0.1);952 command.runStep(false, {repetitions: 100}, /**/ NaN);953 command.runStep(false, {repetitions: 100}, /**/ Infinity);954 command.runStep(false, {repetitions: 100}, /**/ true);955 command.runStep(false, {repetitions: 100}, /**/ false);956 command.runStep(false, {repetitions: 100}, /**/{});957 command.runStep(false, {repetitions: 100}, /**/{a: 1});958 command.runStep(false, {repetitions: 100}, /**/[]);959 command.runStep(false, {repetitions: 100}, /**/[1]);960 command.runStep(false, {repetitions: 100}, /**/new String(''));961 command.runStep(false, {repetitions: 100}, /**/new String(' '));962 command.runStep(false, {repetitions: 100}, /**/new String('a'));963 command.runStep(false, {repetitions: 100}, /**/new String('1'));964 command.runStep(false, {repetitions: 100}, /**/new Number(0));965 command.runStep(false, {repetitions: 100}, /**/new Number(1));966 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));967 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));968 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));969 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));970 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.forms");971 command.runStep(false, {repetitions: 100}, /**/ new Date);972 command.runStep(false, {repetitions: 100}, /**/ new Error);973 command.runStep(false, {repetitions: 100}, /**/ (function(){}));974 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);975 command.runStep(false, {repetitions: 100}, /**/ Object);976 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.body");977 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);978 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);979 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);980 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);981 command.runStep(false, {repetitions: 100}, /**/global);982 command.runStep(true, {eval: true, repetitions: 100}, /**/ "document");983 command.runStep(false, {repetitions: 100}, /**/ __Internal__.textNode);984 }, {skip: !global.document});985 986 test.runCommand(client && client.isNode, "Doodad.Client.isNode", function(command, options) {987 command.runStep(false, {repetitions: 100}, /**/undefined);988 command.runStep(false, {repetitions: 100}, /**/ null);989 command.runStep(false, {repetitions: 100}, /**/'');990 command.runStep(false, {repetitions: 100}, /**/' ');991 command.runStep(false, {repetitions: 100}, /**/'a');992 command.runStep(false, {repetitions: 100}, /**/'1');993 command.runStep(false, {repetitions: 100}, /**/0);994 command.runStep(false, {repetitions: 100}, /**/1);995 command.runStep(false, {repetitions: 100}, /**/ 0.1);996 command.runStep(false, {repetitions: 100}, /**/ NaN);997 command.runStep(false, {repetitions: 100}, /**/ Infinity);998 command.runStep(false, {repetitions: 100}, /**/ true);999 command.runStep(false, {repetitions: 100}, /**/ false);1000 command.runStep(false, {repetitions: 100}, /**/{});1001 command.runStep(false, {repetitions: 100}, /**/{a: 1});1002 command.runStep(false, {repetitions: 100}, /**/[]);1003 command.runStep(false, {repetitions: 100}, /**/[1]);1004 command.runStep(false, {repetitions: 100}, /**/new String(''));1005 command.runStep(false, {repetitions: 100}, /**/new String(' '));1006 command.runStep(false, {repetitions: 100}, /**/new String('a'));1007 command.runStep(false, {repetitions: 100}, /**/new String('1'));1008 command.runStep(false, {repetitions: 100}, /**/new Number(0));1009 command.runStep(false, {repetitions: 100}, /**/new Number(1));1010 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1011 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1012 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1013 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1014 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.forms");1015 command.runStep(false, {repetitions: 100}, /**/ new Date);1016 command.runStep(false, {repetitions: 100}, /**/ new Error);1017 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1018 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1019 command.runStep(false, {repetitions: 100}, /**/ Object);1020 command.runStep(true, {eval: true, repetitions: 100}, /**/ "document.body");1021 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1022 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1023 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1024 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1025 command.runStep(false, {repetitions: 100}, /**/global);1026 command.runStep(true, {eval: true, repetitions: 100}, /**/ "document");1027 command.runStep(true, {repetitions: 100}, /**/ __Internal__.textNode);1028 }, {skip: !global.document});1029 1030 test.runCommand(client && client.isElement, "Doodad.Client.isElement", function(command, options) {1031 command.runStep(false, {repetitions: 100}, /**/undefined);1032 command.runStep(false, {repetitions: 100}, /**/ null);1033 command.runStep(false, {repetitions: 100}, /**/'');1034 command.runStep(false, {repetitions: 100}, /**/' ');1035 command.runStep(false, {repetitions: 100}, /**/'a');1036 command.runStep(false, {repetitions: 100}, /**/'1');1037 command.runStep(false, {repetitions: 100}, /**/0);1038 command.runStep(false, {repetitions: 100}, /**/1);1039 command.runStep(false, {repetitions: 100}, /**/ 0.1);1040 command.runStep(false, {repetitions: 100}, /**/ NaN);1041 command.runStep(false, {repetitions: 100}, /**/ Infinity);1042 command.runStep(false, {repetitions: 100}, /**/ true);1043 command.runStep(false, {repetitions: 100}, /**/ false);1044 command.runStep(false, {repetitions: 100}, /**/{});1045 command.runStep(false, {repetitions: 100}, /**/{a: 1});1046 command.runStep(false, {repetitions: 100}, /**/[]);1047 command.runStep(false, {repetitions: 100}, /**/[1]);1048 command.runStep(false, {repetitions: 100}, /**/new String(''));1049 command.runStep(false, {repetitions: 100}, /**/new String(' '));1050 command.runStep(false, {repetitions: 100}, /**/new String('a'));1051 command.runStep(false, {repetitions: 100}, /**/new String('1'));1052 command.runStep(false, {repetitions: 100}, /**/new Number(0));1053 command.runStep(false, {repetitions: 100}, /**/new Number(1));1054 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1055 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1056 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1057 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1058 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.forms");1059 command.runStep(false, {repetitions: 100}, /**/ new Date);1060 command.runStep(false, {repetitions: 100}, /**/ new Error);1061 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1062 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1063 command.runStep(false, {repetitions: 100}, /**/ Object);1064 command.runStep(true, {eval: true, repetitions: 100}, /**/ "document.body");1065 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1066 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1067 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1068 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1069 command.runStep(false, {repetitions: 100}, /**/global);1070 command.runStep(false, {eval: true, repetitions: 100}, /**/ "document");1071 command.runStep(false, {repetitions: 100}, /**/ __Internal__.textNode);1072 }, {skip: !global.document});1073 1074 test.runCommand(types.isNothingOrEmpty, "Doodad.Types.isNothingOrEmpty", function(command, options) {1075 command.runStep(true, {repetitions: 100}, /**/ undefined);1076 command.runStep(true, {repetitions: 100}, /**/ null);1077 command.runStep(true, {repetitions: 100}, /**/ '');1078 command.runStep(false, {repetitions: 100}, /**/' ');1079 command.runStep(false, {repetitions: 100}, /**/'a');1080 command.runStep(false, {repetitions: 100}, /**/'1');1081 command.runStep(false, {repetitions: 100}, /**/0);1082 command.runStep(false, {repetitions: 100}, /**/1);1083 command.runStep(false, {repetitions: 100}, /**/ 0.1);1084 command.runStep(false, {repetitions: 100}, /**/ NaN);1085 command.runStep(false, {repetitions: 100}, /**/ Infinity);1086 command.runStep(false, {repetitions: 100}, /**/ true);1087 command.runStep(false, {repetitions: 100}, /**/ false);1088 command.runStep(true, {repetitions: 100}, /**/ {});1089 command.runStep(false, {repetitions: 100}, /**/{a: 1});1090 command.runStep(true, {repetitions: 100}, /**/ []);1091 command.runStep(false, {repetitions: 100}, /**/[1]);1092 command.runStep(true, {repetitions: 100}, /**/ new String(''));1093 command.runStep(false, {repetitions: 100}, /**/new String(' '));1094 command.runStep(false, {repetitions: 100}, /**/new String('a'));1095 command.runStep(false, {repetitions: 100}, /**/new String('1'));1096 command.runStep(true, {repetitions: 100}, /**/ new Number(0));1097 command.runStep(true, {repetitions: 100}, /**/ new Number(1));1098 command.runStep(true, {repetitions: 100}, /**/ new Number(0.1));1099 command.runStep(true, {repetitions: 100}, /**/ new Number(NaN));1100 command.runStep(true, {repetitions: 100}, /**/ new Number(Infinity));1101 command.runStep(true, {repetitions: 100}, /**/ new Boolean(false));1102 command.runStep("document.forms.length === 0", {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is not an array-like object and property 'length' is an own property."}, /**/ "document.forms");1103 command.runStep(true, {repetitions: 100}, /**/ new Date);1104 command.runStep(true, {repetitions: 100, note: "May fail under MS Internet Explorer because properties 'number' and 'description' are own properties."}, /**/ new Error);1105 command.runStep(true, {repetitions: 100}, /**/ (function(){}));1106 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);1107 //command.runStep(true, {repetitions: 100}, /**/ Object);1108 command.runStep(true, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Chrome, Opera and Safari because properties are owned properties."}, /**/ "document.body");1109 command.runStep(true, {repetitions: 100}, /**/ __Internal__.a);1110 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1111 command.runStep(true, {repetitions: 100}, /**/ __Internal__.c);1112 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1113 });1114 1115 test.runCommand(types.isEmpty, "Doodad.Types.isEmpty", function(command, options) {1116 command.runStep(false, {repetitions: 100}, /**/undefined);1117 command.runStep(false, {repetitions: 100}, /**/ null);1118 command.runStep(true, {repetitions: 100}, /**/ '');1119 command.runStep(false, {repetitions: 100}, /**/' ');1120 command.runStep(false, {repetitions: 100}, /**/'a');1121 command.runStep(false, {repetitions: 100}, /**/'1');1122 command.runStep(false, {repetitions: 100}, /**/0);1123 command.runStep(false, {repetitions: 100}, /**/1);1124 command.runStep(false, {repetitions: 100}, /**/ 0.1);1125 command.runStep(false, {repetitions: 100}, /**/ NaN);1126 command.runStep(false, {repetitions: 100}, /**/ Infinity);1127 command.runStep(false, {repetitions: 100}, /**/ true);1128 command.runStep(false, {repetitions: 100}, /**/ false);1129 command.runStep(true, {repetitions: 100}, /**/ {});1130 command.runStep(false, {repetitions: 100}, /**/{a: 1});1131 command.runStep(true, {repetitions: 100}, /**/ []);1132 command.runStep(false, {repetitions: 100}, /**/[1]);1133 command.runStep(true, {repetitions: 100}, /**/ new String(''));1134 command.runStep(false, {repetitions: 100}, /**/new String(' '));1135 command.runStep(false, {repetitions: 100}, /**/new String('a'));1136 command.runStep(false, {repetitions: 100}, /**/new String('1'));1137 command.runStep(true, {repetitions: 100}, /**/ new Number(0));1138 command.runStep(true, {repetitions: 100}, /**/ new Number(1));1139 command.runStep(true, {repetitions: 100}, /**/ new Number(0.1));1140 command.runStep(true, {repetitions: 100}, /**/ new Number(NaN));1141 command.runStep(true, {repetitions: 100}, /**/ new Number(Infinity));1142 command.runStep(true, {repetitions: 100}, /**/ new Boolean(false));1143 command.runStep("document.forms.length === 0", {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Safari because 'document.forms' is not an array-like object and property 'length' is an own property."}, /**/ "document.forms");1144 command.runStep(true, {repetitions: 100}, /**/ new Date);1145 command.runStep(true, {repetitions: 100, note: "May fail under MS Internet Explorer because properties 'number' and 'description' are own properties."}, /**/ new Error);1146 command.runStep(true, {repetitions: 100}, /**/ (function(){}));1147 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);1148 //command.runStep(true, {repetitions: 100}, /**/ Object);1149 command.runStep(true, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Chrome, Opera and Safari because properties are owned properties."}, /**/ "document.body");1150 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1151 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1152 command.runStep(true, {repetitions: 100}, /**/ __Internal__.c);1153 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1154 });1155 1156 test.runCommand(types.isStringAndNotEmpty, "Doodad.Types.isStringAndNotEmpty", function(command, options) {1157 command.runStep(false, {repetitions: 100}, /**/undefined);1158 command.runStep(false, {repetitions: 100}, /**/ null);1159 command.runStep(false, {repetitions: 100}, /**/'');1160 command.runStep(true, {repetitions: 100}, /**/ ' ');1161 command.runStep(true, {repetitions: 100}, /**/ 'a');1162 command.runStep(true, {repetitions: 100}, /**/ '1');1163 command.runStep(false, {repetitions: 100}, /**/0);1164 command.runStep(false, {repetitions: 100}, /**/1);1165 command.runStep(false, {repetitions: 100}, /**/ 0.1);1166 command.runStep(false, {repetitions: 100}, /**/ NaN);1167 command.runStep(false, {repetitions: 100}, /**/ Infinity);1168 command.runStep(false, {repetitions: 100}, /**/ true);1169 command.runStep(false, {repetitions: 100}, /**/ false);1170 command.runStep(false, {repetitions: 100}, /**/{});1171 command.runStep(false, {repetitions: 100}, /**/{a: 1});1172 command.runStep(false, {repetitions: 100}, /**/[]);1173 command.runStep(false, {repetitions: 100}, /**/[1]);1174 command.runStep(false, {repetitions: 100}, /**/new String(''));1175 command.runStep(true, {repetitions: 100}, /**/ new String(' '));1176 command.runStep(true, {repetitions: 100}, /**/ new String('a'));1177 command.runStep(true, {repetitions: 100}, /**/ new String('1'));1178 command.runStep(false, {repetitions: 100}, /**/new Number(0));1179 command.runStep(false, {repetitions: 100}, /**/new Number(1));1180 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1181 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1182 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1183 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1184 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1185 command.runStep(false, {repetitions: 100}, /**/ new Date);1186 command.runStep(false, {repetitions: 100}, /**/ new Error);1187 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1188 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1189 command.runStep(false, {repetitions: 100}, /**/ Object);1190 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1191 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1192 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1193 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1194 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1195 });1196 1197 test.runCommand(types.isStringAndNotEmptyTrim, "Doodad.Types.isStringAndNotEmptyTrim", function(command, options) {1198 command.runStep(false, {repetitions: 100}, /**/undefined);1199 command.runStep(false, {repetitions: 100}, /**/ null);1200 command.runStep(false, {repetitions: 100}, /**/'');1201 command.runStep(false, {repetitions: 100}, /**/' ');1202 command.runStep(true, {repetitions: 100}, /**/ 'a');1203 command.runStep(true, {repetitions: 100}, /**/ '1');1204 command.runStep(false, {repetitions: 100}, /**/0);1205 command.runStep(false, {repetitions: 100}, /**/1);1206 command.runStep(false, {repetitions: 100}, /**/ 0.1);1207 command.runStep(false, {repetitions: 100}, /**/ NaN);1208 command.runStep(false, {repetitions: 100}, /**/ Infinity);1209 command.runStep(false, {repetitions: 100}, /**/ true);1210 command.runStep(false, {repetitions: 100}, /**/ false);1211 command.runStep(false, {repetitions: 100}, /**/{});1212 command.runStep(false, {repetitions: 100}, /**/{a: 1});1213 command.runStep(false, {repetitions: 100}, /**/[]);1214 command.runStep(false, {repetitions: 100}, /**/[1]);1215 command.runStep(false, {repetitions: 100}, /**/new String(''));1216 command.runStep(false, {repetitions: 100}, /**/new String(' '));1217 command.runStep(true, {repetitions: 100}, /**/ new String('a'));1218 command.runStep(true, {repetitions: 100}, /**/ new String('1'));1219 command.runStep(false, {repetitions: 100}, /**/new Number(0));1220 command.runStep(false, {repetitions: 100}, /**/new Number(1));1221 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1222 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1223 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1224 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1225 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1226 command.runStep(false, {repetitions: 100}, /**/ new Date);1227 command.runStep(false, {repetitions: 100}, /**/ new Error);1228 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1229 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1230 command.runStep(false, {repetitions: 100}, /**/ Object);1231 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1232 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1233 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1234 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1235 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1236 });1237 1238 test.runCommand(types.isObjectAndNotEmpty, "Doodad.Types.isObjectAndNotEmpty", function(command, options) {1239 command.runStep(false, {repetitions: 100}, /**/undefined);1240 command.runStep(false, {repetitions: 100}, /**/ null);1241 command.runStep(false, {repetitions: 100}, /**/'');1242 command.runStep(false, {repetitions: 100}, /**/' ');1243 command.runStep(false, {repetitions: 100}, /**/'a');1244 command.runStep(false, {repetitions: 100}, /**/'1');1245 command.runStep(false, {repetitions: 100}, /**/0);1246 command.runStep(false, {repetitions: 100}, /**/1);1247 command.runStep(false, {repetitions: 100}, /**/ 0.1);1248 command.runStep(false, {repetitions: 100}, /**/ NaN);1249 command.runStep(false, {repetitions: 100}, /**/ Infinity);1250 command.runStep(false, {repetitions: 100}, /**/ true);1251 command.runStep(false, {repetitions: 100}, /**/ false);1252 command.runStep(false, {repetitions: 100}, /**/{});1253 command.runStep(true, {repetitions: 100}, /**/ {a: 1});1254 command.runStep(false, {repetitions: 100}, /**/[]);1255 command.runStep(false, {repetitions: 100}, /**/[1]);1256 command.runStep(false, {repetitions: 100}, /**/new String(''));1257 command.runStep(false, {repetitions: 100}, /**/new String(' '));1258 command.runStep(false, {repetitions: 100}, /**/new String('a'));1259 command.runStep(false, {repetitions: 100}, /**/new String('1'));1260 command.runStep(false, {repetitions: 100}, /**/new Number(0));1261 command.runStep(false, {repetitions: 100}, /**/new Number(1));1262 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1263 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1264 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1265 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1266 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1267 command.runStep(false, {repetitions: 100}, /**/ new Date);1268 command.runStep(false, {repetitions: 100}, /**/ new Error);1269 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1270 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1271 command.runStep(false, {repetitions: 100}, /**/ Object);1272 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1273 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1274 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1275 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1276 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1277 });1278 1279 test.runCommand(types.isObjectLikeAndNotEmpty, "Doodad.Types.isObjectLikeAndNotEmpty", function(command, options) {1280 command.runStep(false, {repetitions: 100}, /**/undefined);1281 command.runStep(false, {repetitions: 100}, /**/ null);1282 command.runStep(false, {repetitions: 100}, /**/'');1283 command.runStep(false, {repetitions: 100}, /**/' ');1284 command.runStep(false, {repetitions: 100}, /**/'a');1285 command.runStep(false, {repetitions: 100}, /**/'1');1286 command.runStep(false, {repetitions: 100}, /**/0);1287 command.runStep(false, {repetitions: 100}, /**/1);1288 command.runStep(false, {repetitions: 100}, /**/ 0.1);1289 command.runStep(false, {repetitions: 100}, /**/ NaN);1290 command.runStep(false, {repetitions: 100}, /**/ Infinity);1291 command.runStep(false, {repetitions: 100}, /**/ true);1292 command.runStep(false, {repetitions: 100}, /**/ false);1293 command.runStep(false, {repetitions: 100}, /**/{});1294 command.runStep(true, {repetitions: 100}, /**/ {a: 1});1295 command.runStep(false, {repetitions: 100}, /**/[]);1296 command.runStep(false, {repetitions: 100}, /**/[1]);1297 command.runStep(false, {repetitions: 100}, /**/new String(''));1298 command.runStep(false, {repetitions: 100}, /**/new String(' '));1299 command.runStep(false, {repetitions: 100}, /**/new String('a'));1300 command.runStep(false, {repetitions: 100}, /**/new String('1'));1301 command.runStep(false, {repetitions: 100}, /**/new Number(0));1302 command.runStep(false, {repetitions: 100}, /**/new Number(1));1303 command.runStep(false, {repetitions: 100}, /**/new Number(0.1));1304 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1305 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1306 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1307 //command.runStep(false, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under most browsers because 'length' is an own property."}, /**/ "document.forms");1308 command.runStep(false, {repetitions: 100}, /**/ new Date);1309 command.runStep(false, {repetitions: 100, note: "May fail under MS Internet Explorer because properties 'number' and 'description' are own properties."}, /**/ new Error);1310 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1311 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1312 //command.runStep(false, {repetitions: 100}, /**/ Object);1313 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document, note: "May fail under Chrome, Opera and Safari because properties are owned properties."}, /**/ "document.body");1314 command.runStep(true, {repetitions: 100}, /**/ __Internal__.a);1315 command.runStep(true, {repetitions: 100}, /**/ __Internal__.b);1316 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1317 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1318 });1319 1320 1321 __Internal__.hasIter = false;1322 try {1323 __Internal__.hasIter = types.isSymbol(global.Symbol ? global.Symbol.iterator : undefined);1324 } catch(ex) {1325 };1326 1327 __Internal__.hasGen = false;1328 try {1329 tools.eval("function*(){}");1330 __Internal__.hasGen = true;1331 } catch(ex) {1332 };1333 1334 1335 1336 test.runCommand(types.isIterable, "Doodad.Types.isIterable", function(command, options) {1337 command.runStep(false, {repetitions: 100}, /**/ undefined);1338 command.runStep(false, {repetitions: 100}, /**/ null);1339 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ '');1340 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ ' ');1341 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ 'a');1342 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ '1');1343 command.runStep(false, {repetitions: 100}, /**/ 0);1344 command.runStep(false, {repetitions: 100}, /**/ 1);1345 command.runStep(false, {repetitions: 100}, /**/ 0.1);1346 command.runStep(false, {repetitions: 100}, /**/ NaN);1347 command.runStep(false, {repetitions: 100}, /**/ Infinity);1348 command.runStep(false, {repetitions: 100}, /**/ true);1349 command.runStep(false, {repetitions: 100}, /**/ false);1350 command.runStep(false, {repetitions: 100}, /**/ {});1351 command.runStep(false, {repetitions: 100}, /**/ {a: 1});1352 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ []);1353 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ [1]);1354 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ new String(''));1355 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ new String(' '));1356 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ new String('a'));1357 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ new String('1'));1358 command.runStep(false, {repetitions: 100}, /**/ new Number(0));1359 command.runStep(false, {repetitions: 100}, /**/ new Number(1));1360 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));1361 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1362 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1363 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1364 //global.document && command.runStep(false, {eval: true, repetitions: 100}, /**/ "document.forms");1365 command.runStep(false, {repetitions: 100}, /**/ new Date);1366 command.runStep(false, {repetitions: 100}, /**/ new Error);1367 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1368 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})");1369 command.runStep(__Internal__.hasIter, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})()");1370 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1371 command.runStep(false, {repetitions: 100}, /**/ Object);1372 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1373 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ __Internal__.a);1374 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1375 command.runStep(__Internal__.hasIter, {repetitions: 100}, /**/ __Internal__.c);1376 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1377 });1378 1379 1380 test.runCommand(types.isIteratorLike, "Doodad.Types.isIteratorLike", function(command, options) {1381 command.runStep(false, {repetitions: 100}, /**/ undefined);1382 command.runStep(false, {repetitions: 100}, /**/ null);1383 command.runStep(false, {repetitions: 100}, /**/ '');1384 command.runStep(false, {repetitions: 100}, /**/ ' ');1385 command.runStep(false, {repetitions: 100}, /**/ 'a');1386 command.runStep(false, {repetitions: 100}, /**/ '1');1387 command.runStep(false, {repetitions: 100}, /**/ 0);1388 command.runStep(false, {repetitions: 100}, /**/ 1);1389 command.runStep(false, {repetitions: 100}, /**/ 0.1);1390 command.runStep(false, {repetitions: 100}, /**/ NaN);1391 command.runStep(false, {repetitions: 100}, /**/ Infinity);1392 command.runStep(false, {repetitions: 100}, /**/ true);1393 command.runStep(false, {repetitions: 100}, /**/ false);1394 command.runStep(false, {repetitions: 100}, /**/{});1395 command.runStep(false, {repetitions: 100}, /**/ {a: 1});1396 command.runStep(false, {repetitions: 100}, /**/ []);1397 command.runStep(false, {repetitions: 100}, /**/ [1]);1398 command.runStep(false, {repetitions: 100}, /**/ new String(''));1399 command.runStep(false, {repetitions: 100}, /**/ new String(' '));1400 command.runStep(false, {repetitions: 100}, /**/ new String('a'));1401 command.runStep(false, {repetitions: 100}, /**/ new String('1'));1402 command.runStep(false, {repetitions: 100}, /**/ new Number(0));1403 command.runStep(false, {repetitions: 100}, /**/ new Number(1));1404 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));1405 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1406 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1407 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1408 //command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1409 command.runStep(false, {repetitions: 100}, /**/ new Date);1410 command.runStep(false, {repetitions: 100}, /**/ new Error);1411 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1412 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})");1413 command.runStep(__Internal__.hasIter, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})()");1414 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1415 command.runStep(false, {repetitions: 100}, /**/ Object);1416 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1417 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1418 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1419 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1420 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1421 });1422 1423 test.runCommand(types.isGeneratorFunction, "Doodad.Types.isGeneratorFunction", function(command, options) {1424 command.runStep(false, {repetitions: 100}, /**/ undefined);1425 command.runStep(false, {repetitions: 100}, /**/ null);1426 command.runStep(false, {repetitions: 100}, /**/ '');1427 command.runStep(false, {repetitions: 100}, /**/ ' ');1428 command.runStep(false, {repetitions: 100}, /**/ 'a');1429 command.runStep(false, {repetitions: 100}, /**/ '1');1430 command.runStep(false, {repetitions: 100}, /**/ 0);1431 command.runStep(false, {repetitions: 100}, /**/ 1);1432 command.runStep(false, {repetitions: 100}, /**/ 0.1);1433 command.runStep(false, {repetitions: 100}, /**/ NaN);1434 command.runStep(false, {repetitions: 100}, /**/ Infinity);1435 command.runStep(false, {repetitions: 100}, /**/ true);1436 command.runStep(false, {repetitions: 100}, /**/ false);1437 command.runStep(false, {repetitions: 100}, /**/ {});1438 command.runStep(false, {repetitions: 100}, /**/ {a: 1});1439 command.runStep(false, {repetitions: 100}, /**/ []);1440 command.runStep(false, {repetitions: 100}, /**/ [1]);1441 command.runStep(false, {repetitions: 100}, /**/ new String(''));1442 command.runStep(false, {repetitions: 100}, /**/ new String(' '));1443 command.runStep(false, {repetitions: 100}, /**/ new String('a'));1444 command.runStep(false, {repetitions: 100}, /**/ new String('1'));1445 command.runStep(false, {repetitions: 100}, /**/ new Number(0));1446 command.runStep(false, {repetitions: 100}, /**/ new Number(1));1447 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));1448 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1449 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1450 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1451 //command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1452 command.runStep(false, {repetitions: 100}, /**/ new Date);1453 command.runStep(false, {repetitions: 100}, /**/ new Error);1454 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1455 command.runStep(true, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})");1456 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})()");1457 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1458 command.runStep(false, {repetitions: 100}, /**/ Object);1459 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1460 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1461 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1462 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1463 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1464 });1465 1466 1467 test.runCommand(types.isGenerator, "Doodad.Types.isGenerator", function(command, options) {1468 command.runStep(false, {repetitions: 100}, /**/ undefined);1469 command.runStep(false, {repetitions: 100}, /**/ null);1470 command.runStep(false, {repetitions: 100}, /**/ '');1471 command.runStep(false, {repetitions: 100}, /**/ ' ');1472 command.runStep(false, {repetitions: 100}, /**/ 'a');1473 command.runStep(false, {repetitions: 100}, /**/ '1');1474 command.runStep(false, {repetitions: 100}, /**/ 0);1475 command.runStep(false, {repetitions: 100}, /**/ 1);1476 command.runStep(false, {repetitions: 100}, /**/ 0.1);1477 command.runStep(false, {repetitions: 100}, /**/ NaN);1478 command.runStep(false, {repetitions: 100}, /**/ Infinity);1479 command.runStep(false, {repetitions: 100}, /**/ true);1480 command.runStep(false, {repetitions: 100}, /**/ false);1481 command.runStep(false, {repetitions: 100}, /**/{});1482 command.runStep(false, {repetitions: 100}, /**/ {a: 1});1483 command.runStep(false, {repetitions: 100}, /**/ []);1484 command.runStep(false, {repetitions: 100}, /**/ [1]);1485 command.runStep(false, {repetitions: 100}, /**/ new String(''));1486 command.runStep(false, {repetitions: 100}, /**/ new String(' '));1487 command.runStep(false, {repetitions: 100}, /**/ new String('a'));1488 command.runStep(false, {repetitions: 100}, /**/ new String('1'));1489 command.runStep(false, {repetitions: 100}, /**/ new Number(0));1490 command.runStep(false, {repetitions: 100}, /**/ new Number(1));1491 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));1492 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1493 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1494 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1495 //command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1496 command.runStep(false, {repetitions: 100}, /**/ new Date);1497 command.runStep(false, {repetitions: 100}, /**/ new Error);1498 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1499 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})");1500 command.runStep(true, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})()");1501 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1502 command.runStep(false, {repetitions: 100}, /**/ Object);1503 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1504 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1505 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1506 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1507 command.runStep(false, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1508 });1509 1510 test.runCommand(types.isSymbol, "Doodad.Types.isSymbol", function(command, options) {1511 command.runStep(false, {repetitions: 100}, /**/ undefined);1512 command.runStep(false, {repetitions: 100}, /**/ null);1513 command.runStep(false, {repetitions: 100}, /**/ '');1514 command.runStep(false, {repetitions: 100}, /**/ ' ');1515 command.runStep(false, {repetitions: 100}, /**/ 'a');1516 command.runStep(false, {repetitions: 100}, /**/ '1');1517 command.runStep(false, {repetitions: 100}, /**/ 0);1518 command.runStep(false, {repetitions: 100}, /**/ 1);1519 command.runStep(false, {repetitions: 100}, /**/ 0.1);1520 command.runStep(false, {repetitions: 100}, /**/ NaN);1521 command.runStep(false, {repetitions: 100}, /**/ Infinity);1522 command.runStep(false, {repetitions: 100}, /**/ true);1523 command.runStep(false, {repetitions: 100}, /**/ false);1524 command.runStep(false, {repetitions: 100}, /**/{});1525 command.runStep(false, {repetitions: 100}, /**/ {a: 1});1526 command.runStep(false, {repetitions: 100}, /**/ []);1527 command.runStep(false, {repetitions: 100}, /**/ [1]);1528 command.runStep(false, {repetitions: 100}, /**/ new String(''));1529 command.runStep(false, {repetitions: 100}, /**/ new String(' '));1530 command.runStep(false, {repetitions: 100}, /**/ new String('a'));1531 command.runStep(false, {repetitions: 100}, /**/ new String('1'));1532 command.runStep(false, {repetitions: 100}, /**/ new Number(0));1533 command.runStep(false, {repetitions: 100}, /**/ new Number(1));1534 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));1535 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));1536 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));1537 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));1538 //command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.forms");1539 command.runStep(false, {repetitions: 100}, /**/ new Date);1540 command.runStep(false, {repetitions: 100}, /**/ new Error);1541 command.runStep(false, {repetitions: 100}, /**/ (function(){}));1542 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})");1543 command.runStep(false, {eval: true, repetitions: 100, skip: !__Internal__.hasGen}, /**/ "(function*(){})()");1544 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);1545 command.runStep(false, {repetitions: 100}, /**/ Object);1546 command.runStep(false, {eval: true, repetitions: 100, skip: !global.document}, /**/ "document.body");1547 command.runStep(false, {repetitions: 100}, /**/ __Internal__.a);1548 command.runStep(false, {repetitions: 100}, /**/ __Internal__.b);1549 command.runStep(false, {repetitions: 100}, /**/ __Internal__.c);1550 command.runStep(true, {repetitions: 100, skip: !__Internal__.symbol}, /**/ __Internal__.symbol);1551 });1552 1553 },1554 },1555 };1556 return mods;1557};...
Unit_Types_Dictionary.js
Source:Unit_Types_Dictionary.js
...82 83 test.runCommand(types.has, "Doodad.Types.hasKey", function(command, options) {84 const dicts = createDicts();85 86 command.runStep(false, {} /**/ );87 command.runStep(false, {}, /**/ undefined, 'a');88 command.runStep(false, {}, /**/ dicts.dict1);89 90 command.runStep(true, {}, /**/ dicts.dict1, 'a');91 command.runStep(true, {}, /**/ dicts.dict1, 'b');92 command.runStep(false, {}, /**/ dicts.dict1, 'c');93 command.runStep(false, {}, /**/ dicts.dict1, 'd');94 command.runStep(false, {}, /**/ dicts.dict1, 'e');95 command.runStep(false, {}, /**/ dicts.dict1, 'f');96 command.runStep(false, {}, /**/ dicts.dict1, 'toString');97 command.runStep(true, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1);98 command.runStep(false, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2);99 command.runStep(true, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString']);100 101 command.runStep(false, {}, /**/ dicts.dict2, 'a');102 command.runStep(false, {}, /**/ dicts.dict2, 'b');103 command.runStep(false, {}, /**/ dicts.dict2, 'c');104 command.runStep(false, {}, /**/ dicts.dict2, 'd');105 command.runStep(false, {}, /**/ dicts.dict2, 'e');106 command.runStep(false, {}, /**/ dicts.dict2, 'f');107 command.runStep(false, {}, /**/ dicts.dict2, 'toString');108 command.runStep(false, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1);109 command.runStep(false, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2);110 command.runStep(false, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString']);111 112 command.runStep(false, {}, /**/ dicts.dict3, 'a');113 command.runStep(false, {}, /**/ dicts.dict3, 'b');114 command.runStep(false, {}, /**/ dicts.dict3, 'c');115 command.runStep(false, {}, /**/ dicts.dict3, 'd');116 command.runStep(true, {}, /**/ dicts.dict3, 'e');117 command.runStep(true, {}, /**/ dicts.dict3, 'f');118 command.runStep(false, {}, /**/ dicts.dict3, 'toString');119 command.runStep(false, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1);120 command.runStep(true, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2);121 command.runStep(true, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString']);122 123 });124 125 test.runCommand(types.hasInherited, "Doodad.Types.hasKeyInherited", function(command, options) {126 const dicts = createDicts();127 128 command.runStep(false, {} /**/ );129 command.runStep(false, {}, /**/ undefined, 'a');130 command.runStep(false, {}, /**/ dicts.dict1);131 132 command.runStep(true, {}, /**/ dicts.dict1, 'a');133 command.runStep(true, {}, /**/ dicts.dict1, 'b');134 command.runStep(false, {}, /**/ dicts.dict1, 'c');135 command.runStep(false, {}, /**/ dicts.dict1, 'd');136 command.runStep(false, {}, /**/ dicts.dict1, 'e');137 command.runStep(false, {}, /**/ dicts.dict1, 'f');138 command.runStep(false, {}, /**/ dicts.dict1, 'toString');139 command.runStep(true, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1);140 command.runStep(false, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2);141 command.runStep(true, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString']);142 143 command.runStep(true, {}, /**/ dicts.dict2, 'a');144 command.runStep(true, {}, /**/ dicts.dict2, 'b');145 command.runStep(true, {}, /**/ dicts.dict2, 'c');146 command.runStep(true, {}, /**/ dicts.dict2, 'd');147 command.runStep(false, {}, /**/ dicts.dict2, 'e');148 command.runStep(false, {}, /**/ dicts.dict2, 'f');149 command.runStep(false, {}, /**/ dicts.dict2, 'toString');150 command.runStep(true, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1);151 command.runStep(false, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2);152 command.runStep(true, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString']);153 154 command.runStep(true, {}, /**/ dicts.dict3, 'a');155 command.runStep(true, {}, /**/ dicts.dict3, 'b');156 command.runStep(true, {}, /**/ dicts.dict3, 'c');157 command.runStep(true, {}, /**/ dicts.dict3, 'd');158 command.runStep(true, {}, /**/ dicts.dict3, 'e');159 command.runStep(true, {}, /**/ dicts.dict3, 'f');160 command.runStep(false, {}, /**/ dicts.dict3, 'toString');161 command.runStep(true, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1);162 command.runStep(true, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2);163 command.runStep(true, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString']);164 165 });166 167 test.runCommand(types.get, "Doodad.Types.get", function(command, options) {168 const dicts = createDicts();169 170 command.runStep(undefined, {} /**/ );171 command.runStep(undefined, {}, /**/ undefined, 'a');172 command.runStep(undefined, {}, /**/ dicts.dict1);173 174 command.runStep(1, {}, /**/ dicts.dict1, 'a');175 command.runStep(2, {}, /**/ dicts.dict1, 'b');176 command.runStep(undefined, {}, /**/ dicts.dict1, 'c');177 command.runStep(undefined, {}, /**/ dicts.dict1, 'd');178 command.runStep(undefined, {}, /**/ dicts.dict1, 'e');179 command.runStep(undefined, {}, /**/ dicts.dict1, 'f');180 command.runStep(undefined, {}, /**/ dicts.dict1, 'toString');181 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1);182 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2);183 184 command.runStep(1, {}, /**/ dicts.dict1, 'a', 2);185 command.runStep(2, {}, /**/ dicts.dict1, 'b', 3);186 command.runStep(4, {}, /**/ dicts.dict1, 'c', 4);187 command.runStep(5, {}, /**/ dicts.dict1, 'd', 5);188 command.runStep(6, {}, /**/ dicts.dict1, 'e', 6);189 command.runStep(7, {}, /**/ dicts.dict1, 'f', 7);190 command.runStep(8, {}, /**/ dicts.dict1, 'toString', 8);191 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11);192 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12);193 194 command.runStep(1, {}, /**/ dicts.dict1, 'a', undefined, true);195 command.runStep(2, {}, /**/ dicts.dict1, 'b', undefined, true);196 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', undefined, true);197 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', undefined, true);198 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', undefined, true);199 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', undefined, true);200 command.runStep(undefined, {}, /**/ dicts.dict1, 'toString', undefined, true);201 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, undefined, true);202 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, undefined, true);203 204 command.runStep(1, {}, /**/ dicts.dict1, 'a', 2, true);205 command.runStep(2, {}, /**/ dicts.dict1, 'b', 3, true);206 command.runStep(4, {}, /**/ dicts.dict1, 'c', 4, true);207 command.runStep(5, {}, /**/ dicts.dict1, 'd', 5, true);208 command.runStep(6, {}, /**/ dicts.dict1, 'e', 6, true);209 command.runStep(7, {}, /**/ dicts.dict1, 'f', 7, true);210 command.runStep(8, {}, /**/ dicts.dict1, 'toString', 8, true);211 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, true);212 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, true);213 214 command.runStep(1, {}, /**/ dicts.dict1, 'a', undefined, false);215 command.runStep(2, {}, /**/ dicts.dict1, 'b', undefined, false);216 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', undefined, false);217 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', undefined, false);218 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', undefined, false);219 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', undefined, false);220 command.runStep(undefined, {}, /**/ dicts.dict1, 'toString', undefined, false);221 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, undefined, false);222 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, undefined, false);223 224 command.runStep(1, {}, /**/ dicts.dict1, 'a', 2, false);225 command.runStep(2, {}, /**/ dicts.dict1, 'b', 3, false);226 command.runStep(4, {}, /**/ dicts.dict1, 'c', 4, false);227 command.runStep(5, {}, /**/ dicts.dict1, 'd', 5, false);228 command.runStep(6, {}, /**/ dicts.dict1, 'e', 6, false);229 command.runStep(7, {}, /**/ dicts.dict1, 'f', 7, false);230 command.runStep(8, {}, /**/ dicts.dict1, 'toString', 8, false);231 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, false);232 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, false);233 234 command.runStep(undefined, {}, /**/ dicts.dict2, 'a');235 command.runStep(undefined, {}, /**/ dicts.dict2, 'b');236 command.runStep(undefined, {}, /**/ dicts.dict2, 'c');237 command.runStep(undefined, {}, /**/ dicts.dict2, 'd');238 command.runStep(undefined, {}, /**/ dicts.dict2, 'e');239 command.runStep(undefined, {}, /**/ dicts.dict2, 'f');240 command.runStep(undefined, {}, /**/ dicts.dict2, 'toString');241 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1);242 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2);243 244 command.runStep(2, {}, /**/ dicts.dict2, 'a', 2);245 command.runStep(3, {}, /**/ dicts.dict2, 'b', 3);246 command.runStep(4, {}, /**/ dicts.dict2, 'c', 4);247 command.runStep(5, {}, /**/ dicts.dict2, 'd', 5);248 command.runStep(6, {}, /**/ dicts.dict2, 'e', 6);249 command.runStep(7, {}, /**/ dicts.dict2, 'f', 7);250 command.runStep(8, {}, /**/ dicts.dict2, 'toString', 8);251 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11);252 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12);253 254 command.runStep(1, {}, /**/ dicts.dict2, 'a', undefined, true);255 command.runStep(2, {}, /**/ dicts.dict2, 'b', undefined, true);256 command.runStep(3, {}, /**/ dicts.dict2, 'c', undefined, true);257 command.runStep(4, {}, /**/ dicts.dict2, 'd', undefined, true);258 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', undefined, true);259 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', undefined, true);260 command.runStep(undefined, {}, /**/ dicts.dict2, 'toString', undefined, true);261 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, undefined, true);262 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, undefined, true);263 264 command.runStep(1, {}, /**/ dicts.dict2, 'a', 2, true);265 command.runStep(2, {}, /**/ dicts.dict2, 'b', 3, true);266 command.runStep(3, {}, /**/ dicts.dict2, 'c', 4, true);267 command.runStep(4, {}, /**/ dicts.dict2, 'd', 5, true);268 command.runStep(6, {}, /**/ dicts.dict2, 'e', 6, true);269 command.runStep(7, {}, /**/ dicts.dict2, 'f', 7, true);270 command.runStep(8, {}, /**/ dicts.dict2, 'toString', 8, true);271 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, true);272 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, true);273 274 command.runStep(undefined, {}, /**/ dicts.dict2, 'a', undefined, false);275 command.runStep(undefined, {}, /**/ dicts.dict2, 'b', undefined, false);276 command.runStep(undefined, {}, /**/ dicts.dict2, 'c', undefined, false);277 command.runStep(undefined, {}, /**/ dicts.dict2, 'd', undefined, false);278 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', undefined, false);279 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', undefined, false);280 command.runStep(undefined, {}, /**/ dicts.dict2, 'toString', undefined, false);281 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, undefined, false);282 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, undefined, false);283 284 command.runStep(2, {}, /**/ dicts.dict2, 'a', 2, false);285 command.runStep(3, {}, /**/ dicts.dict2, 'b', 3, false);286 command.runStep(4, {}, /**/ dicts.dict2, 'c', 4, false);287 command.runStep(5, {}, /**/ dicts.dict2, 'd', 5, false);288 command.runStep(6, {}, /**/ dicts.dict2, 'e', 6, false);289 command.runStep(7, {}, /**/ dicts.dict2, 'f', 7, false);290 command.runStep(8, {}, /**/ dicts.dict2, 'toString', 8, false);291 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, false);292 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, false);293 294 command.runStep(undefined, {}, /**/ dicts.dict3, 'a');295 command.runStep(undefined, {}, /**/ dicts.dict3, 'b');296 command.runStep(undefined, {}, /**/ dicts.dict3, 'c');297 command.runStep(undefined, {}, /**/ dicts.dict3, 'd');298 command.runStep(5, {}, /**/ dicts.dict3, 'e');299 command.runStep(6, {}, /**/ dicts.dict3, 'f');300 command.runStep(undefined, {}, /**/ dicts.dict3, 'toString');301 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1);302 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2);303 304 command.runStep(2, {}, /**/ dicts.dict3, 'a', 2);305 command.runStep(3, {}, /**/ dicts.dict3, 'b', 3);306 command.runStep(4, {}, /**/ dicts.dict3, 'c', 4);307 command.runStep(5, {}, /**/ dicts.dict3, 'd', 5);308 command.runStep(5, {}, /**/ dicts.dict3, 'e', 6);309 command.runStep(6, {}, /**/ dicts.dict3, 'f', 7);310 command.runStep(8, {}, /**/ dicts.dict3, 'toString', 8);311 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11);312 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12);313 314 command.runStep(1, {}, /**/ dicts.dict3, 'a', undefined, true);315 command.runStep(2, {}, /**/ dicts.dict3, 'b', undefined, true);316 command.runStep(3, {}, /**/ dicts.dict3, 'c', undefined, true);317 command.runStep(4, {}, /**/ dicts.dict3, 'd', undefined, true);318 command.runStep(5, {}, /**/ dicts.dict3, 'e', undefined, true);319 command.runStep(6, {}, /**/ dicts.dict3, 'f', undefined, true);320 command.runStep(undefined, {}, /**/ dicts.dict3, 'toString', undefined, true);321 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, undefined, true);322 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, undefined, true);323 324 command.runStep(1, {}, /**/ dicts.dict3, 'a', 2, true);325 command.runStep(2, {}, /**/ dicts.dict3, 'b', 3, true);326 command.runStep(3, {}, /**/ dicts.dict3, 'c', 4, true);327 command.runStep(4, {}, /**/ dicts.dict3, 'd', 5, true);328 command.runStep(5, {}, /**/ dicts.dict3, 'e', 6, true);329 command.runStep(6, {}, /**/ dicts.dict3, 'f', 7, true);330 command.runStep(8, {}, /**/ dicts.dict3, 'toString', 8, true);331 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, true);332 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, true);333 334 command.runStep(undefined, {}, /**/ dicts.dict3, 'a', undefined, false);335 command.runStep(undefined, {}, /**/ dicts.dict3, 'b', undefined, false);336 command.runStep(undefined, {}, /**/ dicts.dict3, 'c', undefined, false);337 command.runStep(undefined, {}, /**/ dicts.dict3, 'd', undefined, false);338 command.runStep(5, {}, /**/ dicts.dict3, 'e', undefined, false);339 command.runStep(6, {}, /**/ dicts.dict3, 'f', undefined, false);340 command.runStep(undefined, {}, /**/ dicts.dict3, 'toString', undefined, false);341 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, undefined, false);342 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, undefined, false);343 344 command.runStep(2, {}, /**/ dicts.dict3, 'a', 2, false);345 command.runStep(3, {}, /**/ dicts.dict3, 'b', 3, false);346 command.runStep(4, {}, /**/ dicts.dict3, 'c', 4, false);347 command.runStep(5, {}, /**/ dicts.dict3, 'd', 5, false);348 command.runStep(5, {}, /**/ dicts.dict3, 'e', 6, false);349 command.runStep(6, {}, /**/ dicts.dict3, 'f', 7, false);350 command.runStep(8, {}, /**/ dicts.dict3, 'toString', 8, false);351 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, false);352 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, false);353 354 command.runStep(undefined, {} /**/ );355 command.runStep(undefined, {}, /**/ undefined, 'a');356 command.runStep(1, {}, /**/ undefined, 'a', 1);357 command.runStep(1, {}, /**/ undefined, 'a', 1, true);358 command.runStep(1, {}, /**/ undefined, 'a', 1, false);359 });360 361 test.runCommand(types.gets, "Doodad.Types.gets", function(command, options) {362 const dicts = createDicts();363 364 command.runStep({}, {} /**/ );365 command.runStep({}, {}, /**/ undefined, 'a');366 command.runStep({}, {}, /**/ dicts.dict1);367 368 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString']);369 command.runStep({a: 1, [__Internal__.symbol1]: 10}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2]);370 command.runStep({}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString']);371 command.runStep({}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2]);372 command.runStep({e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString']);373 command.runStep({e: 5, [__Internal__.symbol2]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2]);374 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], undefined, true);375 command.runStep({a: 1, [__Internal__.symbol1]: 10}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2], undefined, true);376 command.runStep({a: 1, c: 3}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], undefined, true);377 command.runStep({a: 1, c: 3, [__Internal__.symbol1]: 10}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2], undefined, true);378 command.runStep({a: 1, c: 3, e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], undefined, true);379 command.runStep({a: 1, c: 3, [__Internal__.symbol1]: 10, [__Internal__.symbol2]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString', __Internal__.symbol1, __Internal__.symbol2], undefined, true);380 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], undefined, false);381 command.runStep({}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], undefined, false);382 command.runStep({e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], undefined, false);383 384 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});385 command.runStep({a: 7, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});386 command.runStep({a: 7, c: 9, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});387 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);388 command.runStep({a: 1, c: 3, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);389 command.runStep({a: 1, c: 3, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);390 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);391 command.runStep({a: 7, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);392 command.runStep({a: 7, c: 9, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);393 394 command.runStep({a: 1}, {}, /**/ dicts.dict1, 'a');395 command.runStep({}, {} /**/ );396 command.runStep({}, {}, /**/ undefined, ['a']);397 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3});398 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3}, true);399 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3}, false);400 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3});401 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3}, true);402 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3}, false);403 });404 405 test.runCommand(types.set, "Doodad.Types.set", function(command, options) {406 command.chain(function(dummy) {407 const dicts = createDicts();408 command.runStep(undefined, {} /**/ );409 command.runStep(undefined, {}, /**/ undefined, 'a');410 command.runStep(undefined, {}, /**/ dicts.dict1);411 command.runStep(2, {}, /**/ dicts.dict1, 'a', 2);412 command.runStep(3, {}, /**/ dicts.dict1, 'b', 3);413 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', 4);414 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', 5);415 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', 6);416 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', 7);417 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11);418 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12);419 });420 421 command.chain(function(dummy) {422 const dicts = createDicts();423 command.runStep(undefined, {}, /**/ dicts.dict2, 'a', 2);424 command.runStep(undefined, {}, /**/ dicts.dict2, 'b', 3);425 command.runStep(undefined, {}, /**/ dicts.dict2, 'c', 4);426 command.runStep(undefined, {}, /**/ dicts.dict2, 'd', 5);427 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', 6);428 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', 7);429 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11);430 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12);431 });432 433 command.chain(function(dummy) {434 const dicts = createDicts();435 command.runStep(undefined, {}, /**/ dicts.dict3, 'a', 2);436 command.runStep(undefined, {}, /**/ dicts.dict3, 'b', 3);437 command.runStep(undefined, {}, /**/ dicts.dict3, 'c', 4);438 command.runStep(undefined, {}, /**/ dicts.dict3, 'd', 5);439 command.runStep(6, {}, /**/ dicts.dict3, 'e', 6);440 command.runStep(7, {}, /**/ dicts.dict3, 'f', 7);441 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11);442 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12);443 });444 command.chain(function(dummy) {445 const dicts = createDicts();446 command.runStep(2, {}, /**/ dicts.dict1, 'a', 2, true);447 command.runStep(3, {}, /**/ dicts.dict1, 'b', 3, true);448 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', 4, true);449 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', 5, true);450 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', 6, true);451 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', 7, true);452 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, true);453 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, true);454 });455 456 command.chain(function(dummy) {457 const dicts = createDicts();458 command.runStep(2, {}, /**/ dicts.dict2, 'a', 2, true);459 command.runStep(3, {}, /**/ dicts.dict2, 'b', 3, true);460 command.runStep(4, {}, /**/ dicts.dict2, 'c', 4, true);461 command.runStep(5, {}, /**/ dicts.dict2, 'd', 5, true);462 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', 6, true);463 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', 7, true);464 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, true);465 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, true);466 });467 468 command.chain(function(dummy) {469 const dicts = createDicts();470 command.runStep(2, {}, /**/ dicts.dict3, 'a', 2, true);471 command.runStep(3, {}, /**/ dicts.dict3, 'b', 3, true);472 command.runStep(4, {}, /**/ dicts.dict3, 'c', 4, true);473 command.runStep(5, {}, /**/ dicts.dict3, 'd', 5, true);474 command.runStep(6, {}, /**/ dicts.dict3, 'e', 6, true);475 command.runStep(7, {}, /**/ dicts.dict3, 'f', 7, true);476 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, true);477 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, true);478 });479 480 command.chain(function(dummy) {481 const dicts = createDicts();482 command.runStep(2, {}, /**/ dicts.dict1, 'a', 2, false);483 command.runStep(3, {}, /**/ dicts.dict1, 'b', 3, false);484 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', 4, false);485 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', 5, false);486 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', 6, false);487 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', 7, false);488 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, false);489 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, false);490 });491 492 command.chain(function(dummy) {493 const dicts = createDicts();494 command.runStep(undefined, {}, /**/ dicts.dict2, 'a', 2, false);495 command.runStep(undefined, {}, /**/ dicts.dict2, 'b', 3, false);496 command.runStep(undefined, {}, /**/ dicts.dict2, 'c', 4, false);497 command.runStep(undefined, {}, /**/ dicts.dict2, 'd', 5, false);498 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', 6, false);499 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', 7, false);500 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, false);501 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, false);502 });503 504 command.chain(function(dummy) {505 const dicts = createDicts();506 command.runStep(undefined, {}, /**/ dicts.dict3, 'a', 2, false);507 command.runStep(undefined, {}, /**/ dicts.dict3, 'b', 3, false);508 command.runStep(undefined, {}, /**/ dicts.dict3, 'c', 4, false);509 command.runStep(undefined, {}, /**/ dicts.dict3, 'd', 5, false);510 command.runStep(6, {}, /**/ dicts.dict3, 'e', 6, false);511 command.runStep(7, {}, /**/ dicts.dict3, 'f', 7, false);512 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, false);513 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, false);514 });515 516 });517 518 519 test.runCommand(types.sets, "Doodad.Types.sets", function(command, options) {520 command.chain(function(dummy) {521 const dicts = createDicts();522 command.runStep({}, {} /**/ );523 command.runStep({}, {}, /**/ undefined, 'a');524 command.runStep({}, {}, /**/ dicts.dict1);525 command.runStep({a: 2, b: 3}, {}, /**/ dicts.dict1, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7});526 });527 528 command.chain(function(dummy) {529 const dicts = createDicts();530 command.runStep({a: 2, b: 3, [__Internal__.symbol1]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict1, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7, [__Internal__.symbol1]: 11, [__Internal__.symbol2]: 12});531 });532 533 command.chain(function(dummy) {534 const dicts = createDicts();535 command.runStep({}, {}, /**/ dicts.dict2, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7});536 });537 538 command.chain(function(dummy) {539 const dicts = createDicts();540 command.runStep({e: 6, f: 7}, {}, /**/ dicts.dict3, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7});541 });542 command.chain(function(dummy) {543 const dicts = createDicts();544 command.runStep({a: 2, b: 3}, {}, /**/ dicts.dict1, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, true);545 });546 547 command.chain(function(dummy) {548 const dicts = createDicts();549 command.runStep({a: 2, b: 3, [__Internal__.symbol1]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict1, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7, [__Internal__.symbol1]: 11, [__Internal__.symbol2]: 12}, true);550 });551 552 command.chain(function(dummy) {553 const dicts = createDicts();554 command.runStep({a: 2, b: 3, c: 4, d: 5}, {}, /**/ dicts.dict2, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, true);555 });556 557 command.chain(function(dummy) {558 const dicts = createDicts();559 command.runStep({a: 2, b: 3, [__Internal__.symbol1]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict2, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7, [__Internal__.symbol1]: 11, [__Internal__.symbol2]: 12}, true);560 });561 562 command.chain(function(dummy) {563 const dicts = createDicts();564 command.runStep({a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, {}, /**/ dicts.dict3, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, true);565 });566 567 command.chain(function(dummy) {568 const dicts = createDicts();569 command.runStep({a: 2, b: 3, c: 4, d: 5, [__Internal__.symbol1]: 11}, {skip: !__Internal__.symbol1 || !__Internal__.symbol2}, /**/ dicts.dict2, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7, [__Internal__.symbol1]: 11, [__Internal__.symbol2]: 12}, true);570 });571 572 command.chain(function(dummy) {573 const dicts = createDicts();574 command.runStep({a: 2, b: 3}, {}, /**/ dicts.dict1, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, false);575 });576 577 command.chain(function(dummy) {578 const dicts = createDicts();579 command.runStep({}, {}, /**/ dicts.dict2, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, false);580 });581 582 command.chain(function(dummy) {583 const dicts = createDicts();584 command.runStep({e: 6, f: 7}, {}, /**/ dicts.dict3, {a: 2, b: 3, c: 4, d: 5, e: 6, f: 7}, false);585 });586 587 });588 test.runCommand(types.getDefault, "Doodad.Types.getDefault", function(command, options) {589 command.chain(function(dummy) {590 const dicts = createDicts();591 command.runStep(undefined, {} /**/ );592 command.runStep(undefined, {}, /**/ undefined, 'a');593 command.runStep(undefined, {}, /**/ dicts.dict1);594 command.runStep(1, {}, /**/ dicts.dict1, 'a', undefined, true);595 command.runStep(2, {}, /**/ dicts.dict1, 'b', undefined, true);596 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', undefined, true);597 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', undefined, true);598 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', undefined, true);599 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', undefined, true);600 command.runStep(undefined, {}, /**/ dicts.dict1, 'toString', undefined, true);601 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, undefined, true);602 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, undefined, true);603 });604 605 command.chain(function(dummy) {606 const dicts = createDicts();607 command.runStep(1, {}, /**/ dicts.dict1, 'a', 2, true);608 command.runStep(2, {}, /**/ dicts.dict1, 'b', 3, true);609 command.runStep(4, {}, /**/ dicts.dict1, 'c', 4, true);610 command.runStep(5, {}, /**/ dicts.dict1, 'd', 5, true);611 command.runStep(6, {}, /**/ dicts.dict1, 'e', 6, true);612 command.runStep(7, {}, /**/ dicts.dict1, 'f', 7, true);613 command.runStep(8, {}, /**/ dicts.dict1, 'toString', 8, true);614 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, true);615 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, true);616 });617 618 command.chain(function(dummy) {619 const dicts = createDicts();620 command.runStep(1, {}, /**/ dicts.dict1, 'a', undefined, false);621 command.runStep(2, {}, /**/ dicts.dict1, 'b', undefined, false);622 command.runStep(undefined, {}, /**/ dicts.dict1, 'c', undefined, false);623 command.runStep(undefined, {}, /**/ dicts.dict1, 'd', undefined, false);624 command.runStep(undefined, {}, /**/ dicts.dict1, 'e', undefined, false);625 command.runStep(undefined, {}, /**/ dicts.dict1, 'f', undefined, false);626 command.runStep(undefined, {}, /**/ dicts.dict1, 'toString', undefined, false);627 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, undefined, false);628 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, undefined, false);629 });630 command.chain(function(dummy) {631 const dicts = createDicts();632 command.runStep(1, {}, /**/ dicts.dict1, 'a', 2, false);633 command.runStep(2, {}, /**/ dicts.dict1, 'b', 3, false);634 command.runStep(4, {}, /**/ dicts.dict1, 'c', 4, false);635 command.runStep(5, {}, /**/ dicts.dict1, 'd', 5, false);636 command.runStep(6, {}, /**/ dicts.dict1, 'e', 6, false);637 command.runStep(7, {}, /**/ dicts.dict1, 'f', 7, false);638 command.runStep(8, {}, /**/ dicts.dict1, 'toString', 8, false);639 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict1, __Internal__.symbol1, 11, false);640 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict1, __Internal__.symbol2, 12, false);641 });642 643 command.chain(function(dummy) {644 const dicts = createDicts();645 command.runStep(1, {}, /**/ dicts.dict2, 'a', undefined, true);646 command.runStep(2, {}, /**/ dicts.dict2, 'b', undefined, true);647 command.runStep(3, {}, /**/ dicts.dict2, 'c', undefined, true);648 command.runStep(4, {}, /**/ dicts.dict2, 'd', undefined, true);649 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', undefined, true);650 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', undefined, true);651 command.runStep(undefined, {}, /**/ dicts.dict2, 'toString', undefined, true);652 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, undefined, true);653 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, undefined, true);654 });655 656 command.chain(function(dummy) {657 const dicts = createDicts();658 command.runStep(1, {}, /**/ dicts.dict2, 'a', 2, true);659 command.runStep(2, {}, /**/ dicts.dict2, 'b', 3, true);660 command.runStep(3, {}, /**/ dicts.dict2, 'c', 4, true);661 command.runStep(4, {}, /**/ dicts.dict2, 'd', 5, true);662 command.runStep(6, {}, /**/ dicts.dict2, 'e', 6, true);663 command.runStep(7, {}, /**/ dicts.dict2, 'f', 7, true);664 command.runStep(8, {}, /**/ dicts.dict2, 'toString', 8, true);665 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, true);666 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, true);667 });668 669 command.chain(function(dummy) {670 const dicts = createDicts();671 command.runStep(undefined, {}, /**/ dicts.dict2, 'a', undefined, false);672 command.runStep(undefined, {}, /**/ dicts.dict2, 'b', undefined, false);673 command.runStep(undefined, {}, /**/ dicts.dict2, 'c', undefined, false);674 command.runStep(undefined, {}, /**/ dicts.dict2, 'd', undefined, false);675 command.runStep(undefined, {}, /**/ dicts.dict2, 'e', undefined, false);676 command.runStep(undefined, {}, /**/ dicts.dict2, 'f', undefined, false);677 command.runStep(undefined, {}, /**/ dicts.dict2, 'toString', undefined, false);678 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, undefined, false);679 command.runStep(undefined, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, undefined, false);680 });681 682 command.chain(function(dummy) {683 const dicts = createDicts();684 command.runStep(2, {}, /**/ dicts.dict2, 'a', 2, false);685 command.runStep(3, {}, /**/ dicts.dict2, 'b', 3, false);686 command.runStep(4, {}, /**/ dicts.dict2, 'c', 4, false);687 command.runStep(5, {}, /**/ dicts.dict2, 'd', 5, false);688 command.runStep(6, {}, /**/ dicts.dict2, 'e', 6, false);689 command.runStep(7, {}, /**/ dicts.dict2, 'f', 7, false);690 command.runStep(8, {}, /**/ dicts.dict2, 'toString', 8, false);691 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict2, __Internal__.symbol1, 11, false);692 command.runStep(12, {skip: !__Internal__.symbol2}, /**/ dicts.dict2, __Internal__.symbol2, 12, false);693 });694 695 command.chain(function(dummy) {696 const dicts = createDicts();697 command.runStep(1, {}, /**/ dicts.dict3, 'a', undefined, true);698 command.runStep(2, {}, /**/ dicts.dict3, 'b', undefined, true);699 command.runStep(3, {}, /**/ dicts.dict3, 'c', undefined, true);700 command.runStep(4, {}, /**/ dicts.dict3, 'd', undefined, true);701 command.runStep(5, {}, /**/ dicts.dict3, 'e', undefined, true);702 command.runStep(6, {}, /**/ dicts.dict3, 'f', undefined, true);703 command.runStep(undefined, {}, /**/ dicts.dict3, 'toString', undefined, true);704 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, undefined, true);705 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, undefined, true);706 });707 708 command.chain(function(dummy) {709 const dicts = createDicts();710 command.runStep(1, {}, /**/ dicts.dict3, 'a', 2, true);711 command.runStep(2, {}, /**/ dicts.dict3, 'b', 3, true);712 command.runStep(3, {}, /**/ dicts.dict3, 'c', 4, true);713 command.runStep(4, {}, /**/ dicts.dict3, 'd', 5, true);714 command.runStep(5, {}, /**/ dicts.dict3, 'e', 6, true);715 command.runStep(6, {}, /**/ dicts.dict3, 'f', 7, true);716 command.runStep(8, {}, /**/ dicts.dict3, 'toString', 8, true);717 command.runStep(10, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, true);718 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, true);719 });720 721 command.chain(function(dummy) {722 const dicts = createDicts();723 command.runStep(undefined, {}, /**/ dicts.dict3, 'a', undefined, false);724 command.runStep(undefined, {}, /**/ dicts.dict3, 'b', undefined, false);725 command.runStep(undefined, {}, /**/ dicts.dict3, 'c', undefined, false);726 command.runStep(undefined, {}, /**/ dicts.dict3, 'd', undefined, false);727 command.runStep(5, {}, /**/ dicts.dict3, 'e', undefined, false);728 command.runStep(6, {}, /**/ dicts.dict3, 'f', undefined, false);729 command.runStep(undefined, {}, /**/ dicts.dict3, 'toString', undefined, false);730 command.runStep(undefined, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, undefined, false);731 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, undefined, false);732 });733 734 command.chain(function(dummy) {735 const dicts = createDicts();736 command.runStep(2, {}, /**/ dicts.dict3, 'a', 2, false);737 command.runStep(3, {}, /**/ dicts.dict3, 'b', 3, false);738 command.runStep(4, {}, /**/ dicts.dict3, 'c', 4, false);739 command.runStep(5, {}, /**/ dicts.dict3, 'd', 5, false);740 command.runStep(5, {}, /**/ dicts.dict3, 'e', 6, false);741 command.runStep(6, {}, /**/ dicts.dict3, 'f', 7, false);742 command.runStep(8, {}, /**/ dicts.dict3, 'toString', 8, false);743 command.runStep(11, {skip: !__Internal__.symbol1}, /**/ dicts.dict3, __Internal__.symbol1, 11, false);744 command.runStep(11, {skip: !__Internal__.symbol2}, /**/ dicts.dict3, __Internal__.symbol2, 12, false);745 });746 747 command.runStep(undefined, {} /**/ );748 command.runStep(undefined, {}, /**/ undefined, 'a');749 command.runStep(1, {}, /**/ undefined, 'a', 1);750 command.runStep(1, {}, /**/ undefined, 'a', 1, true);751 command.runStep(1, {}, /**/ undefined, 'a', 1, false);752 });753 754 test.runCommand(types.getsDefault, "Doodad.Types.getsDefault", function(command, options) {755 command.chain(function(dummy) {756 const dicts = createDicts();757 command.runStep({}, {} /**/ );758 command.runStep({}, {}, /**/ undefined, 'a');759 command.runStep({}, {}, /**/ dicts.dict1);760 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString']);761 command.runStep({}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString']);762 command.runStep({e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString']);763 });764 command.chain(function(dummy) {765 const dicts = createDicts();766 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], undefined, true);767 command.runStep({a: 1, c: 3}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], undefined, true);768 command.runStep({a: 1, c: 3, e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], undefined, true);769 });770 command.chain(function(dummy) {771 const dicts = createDicts();772 command.runStep({a: 1}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], undefined, false);773 command.runStep({}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], undefined, false);774 command.runStep({e: 5}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], undefined, false);775 });776 777 command.chain(function(dummy) {778 const dicts = createDicts();779 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});780 command.runStep({a: 7, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});781 command.runStep({a: 7, c: 9, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13});782 });783 command.chain(function(dummy) {784 const dicts = createDicts();785 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);786 command.runStep({a: 1, c: 3, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);787 command.runStep({a: 1, c: 3, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, true);788 });789 command.chain(function(dummy) {790 const dicts = createDicts();791 command.runStep({a: 1, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict1, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);792 command.runStep({a: 7, c: 9, e: 11, toString: 13}, {}, /**/ dicts.dict2, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);793 command.runStep({a: 7, c: 9, e: 5, toString: 13}, {}, /**/ dicts.dict3, ['a', 'c', 'e', 'toString'], {a: 7, c: 9, e: 11, toString: 13}, false);794 });795 796 command.chain(function(dummy) {797 const dicts = createDicts();798 command.runStep({a: 1}, {}, /**/ dicts.dict1, 'a');799 });800 command.runStep({}, {} /**/ );801 command.runStep({} , {}, /**/ undefined, ['a']);802 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3});803 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3}, true);804 command.runStep({a: 1}, {}, /**/ undefined, ['a'], {a: 1, b: 2, c: 3}, false);805 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3});806 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3}, true);807 command.runStep({a: 1, c: 3}, {}, /**/ undefined, ['a', 'c'], {a: 1, b: 2, c: 3}, false);808 });809 810 811 test.runCommand(types.keys, "Doodad.Types.keys", function(command, options) {812 const dicts = createDicts();813 command.runStep([], {contains: true} /**/ );814 command.runStep(['a', 'b'], {contains: true}, /**/ dicts.dict1);815 command.runStep([], {contains: true}, /**/ dicts.dict2);816 command.runStep(['e', 'f'], {contains: true}, /**/ dicts.dict3);817 });818 819 820 test.runCommand(types.keysInherited, "Doodad.Types.keysInherited", function(command, options) {821 const dicts = createDicts();822 command.runStep([], {contains: true} /**/ );823 command.runStep(['a', 'b'], {contains: true}, /**/ dicts.dict1);824 command.runStep(['a', 'b', 'c', 'd'], {contains: true}, /**/ dicts.dict2);825 command.runStep(['a', 'b', 'c', 'd', 'e', 'f'], {contains: true}, /**/ dicts.dict3);826 });827 828 829 test.runCommand(types.values, "Doodad.Types.values", function(command, options) {830 const dicts = createDicts();831 command.runStep([], {contains: true} /**/ );832 command.runStep([1, 2], {contains: true}, /**/ dicts.dict1);833 command.runStep([], {contains: true}, /**/ dicts.dict2);834 command.runStep([5, 6], {contains: true}, /**/ dicts.dict3);835 });836 837 838 test.runCommand(types.items, "Doodad.Types.items", function(command, options) {839 const dicts = createDicts();840 command.runStep([], {contains: true, depth: 1} /**/ );841 command.runStep([['a', 1], ['b', 2]], {contains: true, depth: 1}, /**/ dicts.dict1);842 command.runStep([], {contains: true, depth: 1}, /**/ dicts.dict2);843 command.runStep([['e', 5], ['f', 6]], {contains: true, depth: 1}, /**/ dicts.dict3);844 });845 846 847 test.runCommand(types.isClonable, "Doodad.Types.isClonable", function(command, options) {848 const dicts = createDicts();849 command.runStep(false, {} /**/ );850 command.runStep(true, {}, /**/ dicts.dict1);851 });852 853 test.runCommand(types.clone, "Doodad.Types.clone", function(command, options) {854 const dicts = createDicts();855 command.runStep(undefined, {} /**/ );856 command.runStep(dicts.dict1, {not: true, mode: 'compare'}, /**/ dicts.dict1);857 if (__Internal__.symbol1 && __Internal__.symbol2) {858 command.runStep({a: 1, b: 2, [__Internal__.symbol1]: 10}, {inherited: true}, /**/ dicts.dict1);859 } else {860 command.runStep({a: 1, b: 2}, {inherited: true}, /**/ dicts.dict1);861 };862 command.runStep(dicts.dict2, {not: true, mode: 'compare'}, /**/ dicts.dict2);863 if (__Internal__.symbol1 && __Internal__.symbol2) {864 command.runStep({a: 1, b: 2, c: 3, d: 4, [__Internal__.symbol1]: 10}, {inherited: true}, /**/ dicts.dict2);865 } else {866 command.runStep({a: 1, b: 2, c: 3, d: 4}, {inherited: true}, /**/ dicts.dict2);867 };868 command.runStep(dicts.dict3, {not: true, mode: 'compare'}, /**/ dicts.dict3);869 if (__Internal__.symbol1 && __Internal__.symbol2) {870 command.runStep({a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, [__Internal__.symbol1]: 10, [__Internal__.symbol2]: 11}, {inherited: true}, /**/ dicts.dict3);871 } else {872 command.runStep({a: 1, b: 2, c: 3, d: 4, e: 5, f: 6}, {inherited: true}, /**/ dicts.dict3);873 };874 });875 },876 },877 };878 return mods;879};...
Unit_Types_Type.js
Source:Unit_Types_Type.js
...128 ));129 130 __Internal__.objTest3 = new __Internal__.Test3();131 test.runCommand(types.isType, "Doodad.Types.isType", function(command, options) {132 command.runStep(false, {repetitions: 100}, /**/ undefined);133 command.runStep(false, {repetitions: 100}, /**/ null);134 command.runStep(false, {repetitions: 100}, /**/ '');135 command.runStep(false, {repetitions: 100}, /**/ 1);136 command.runStep(false, {repetitions: 100}, /**/ 0.1);137 command.runStep(false, {repetitions: 100}, /**/ NaN);138 command.runStep(false, {repetitions: 100}, /**/ Infinity);139 command.runStep(false, {repetitions: 100}, /**/ true);140 command.runStep(false, {repetitions: 100}, /**/ {});141 command.runStep(false, {repetitions: 100}, /**/ []);142 command.runStep(false, {repetitions: 100}, /**/ new String(''));143 command.runStep(false, {repetitions: 100}, /**/ new Number(1));144 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));145 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));146 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));147 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));148 command.runStep(false, {repetitions: 100}, /**/ new Date);149 command.runStep(false, {repetitions: 100}, /**/ new Error);150 command.runStep(false, {repetitions: 100}, /**/ (function(){}));151 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);152 command.runStep(false, {repetitions: 100}, /**/ Object);153 command.runStep(true, {repetitions: 100}, /**/ types.Type);154 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test1);155 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1);156 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2);157 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test3);158 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3);159 });160 test.runCommand(types.isJsFunction, "Doodad.Types.isJsFunction", function(command, options) {161 command.runStep(false, {repetitions: 100}, /**/ undefined);162 command.runStep(false, {repetitions: 100}, /**/ null);163 command.runStep(false, {repetitions: 100}, /**/ '');164 command.runStep(false, {repetitions: 100}, /**/ 1);165 command.runStep(false, {repetitions: 100}, /**/ 0.1);166 command.runStep(false, {repetitions: 100}, /**/ NaN);167 command.runStep(false, {repetitions: 100}, /**/ Infinity);168 command.runStep(false, {repetitions: 100}, /**/ true);169 command.runStep(false, {repetitions: 100}, /**/ {});170 command.runStep(false, {repetitions: 100}, /**/ []);171 command.runStep(false, {repetitions: 100}, /**/ new String(''));172 command.runStep(false, {repetitions: 100}, /**/ new Number(1));173 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));174 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));175 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));176 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));177 command.runStep(false, {repetitions: 100}, /**/ new Date);178 command.runStep(false, {repetitions: 100}, /**/ new Error);179 command.runStep(true, {repetitions: 100}, /**/ (function(){}));180 command.runStep(true, {repetitions: 100}, /**/ Object.prototype.toString);181 command.runStep(true, {repetitions: 100}, /**/ Object);182 command.runStep(false, {repetitions: 100}, /**/ types.Type);183 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1);184 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1);185 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2);186 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3);187 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3);188 });189 test.runCommand(types.isJsObject, "Doodad.Types.isJsObject", function(command, options) {190 command.runStep(false, {repetitions: 100}, /**/ undefined);191 command.runStep(false, {repetitions: 100}, /**/ null);192 command.runStep(false, {repetitions: 100}, /**/ '');193 command.runStep(false, {repetitions: 100}, /**/ 1);194 command.runStep(false, {repetitions: 100}, /**/ 0.1);195 command.runStep(false, {repetitions: 100}, /**/ NaN);196 command.runStep(false, {repetitions: 100}, /**/ Infinity);197 command.runStep(false, {repetitions: 100}, /**/ true);198 command.runStep(true, {repetitions: 100}, /**/ {});199 command.runStep(false, {repetitions: 100}, /**/ []);200 command.runStep(false, {repetitions: 100}, /**/ new String(''));201 command.runStep(false, {repetitions: 100}, /**/ new Number(1));202 command.runStep(false, {repetitions: 100}, /**/ new Number(0.1));203 command.runStep(false, {repetitions: 100}, /**/ new Number(NaN));204 command.runStep(false, {repetitions: 100}, /**/ new Number(Infinity));205 command.runStep(false, {repetitions: 100}, /**/ new Boolean(false));206 command.runStep(false, {repetitions: 100}, /**/ new Date);207 command.runStep(false, {repetitions: 100}, /**/ new Error);208 command.runStep(false, {repetitions: 100}, /**/ (function(){}));209 command.runStep(false, {repetitions: 100}, /**/ Object.prototype.toString);210 command.runStep(false, {repetitions: 100}, /**/ Object);211 command.runStep(false, {repetitions: 100}, /**/ types.Type);212 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1);213 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1);214 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2);215 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3);216 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3);217 });218 219 220 test.runCommand(function(obj, type) {221 return obj instanceof type;222 }, "obj instanceof type", function(command, options) {223 224 command.runStep(false, {repetitions: 100}, /**/ types.Type, types.Type);225 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, types.Type);226 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, types.Type);227 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test2, types.Type);228 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, types.Type);229 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, types.Type);230 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test1);231 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test1);232 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test1);233 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test1);234 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test1);235 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test1);236 237 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test3);238 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test3);239 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test3);240 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test3);241 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test3);242 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test3);243 244 });245 246 test.runCommand(types._instanceof, "Doodad.Types._instanceof", function(command, options) {247 248 command.runStep(false, {repetitions: 100}, /**/ types.Type, types.Type);249 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, types.Type);250 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, types.Type);251 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test2, types.Type);252 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, types.Type);253 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, types.Type);254 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test1);255 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test1);256 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test1);257 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test1);258 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test1);259 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test1);260 261 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test2);262 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test2);263 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test2);264 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test2);265 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test2);266 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test2);267 268 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test3);269 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test3);270 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test3);271 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test3);272 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test3);273 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test3);274 275 });276 277 test.runCommand(types.baseof, "Doodad.Types.baseof", function(command, options) {278 279 command.runStep(false, {repetitions: 100}, /**/ types.Type, types.Type);280 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, types.Type);281 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, types.Type);282 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, types.Type);283 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, types.Type);284 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, types.Type);285 command.runStep(true, {repetitions: 100}, /**/ types.Type, __Internal__.Test1);286 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test1);287 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test1);288 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test1);289 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test1);290 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test1);291 292 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test2);293 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test2);294 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test2);295 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test2);296 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test2);297 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test2);298 299 command.runStep(true, {repetitions: 100}, /**/ types.Type, __Internal__.Test3);300 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test3);301 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test3);302 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test3);303 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test3);304 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test3);305 306 });307 308 test.runCommand(types.is, "Doodad.Types.is", function(command, options) {309 310 command.runStep(true, {repetitions: 100}, /**/ types.Type, types.Type);311 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, types.Type);312 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, types.Type);313 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, types.Type);314 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, types.Type);315 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, types.Type);316 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test1);317 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test1);318 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test1);319 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test1);320 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test1);321 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test1);322 323 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test2);324 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test2);325 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test2);326 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test2);327 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test2);328 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test2);329 330 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test3);331 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test3);332 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test3);333 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test3);334 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test3);335 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test3);336 337 });338 339 test.runCommand(types.isLike, "Doodad.Types.isLike", function(command, options) {340 341 command.runStep(true, {repetitions: 100}, /**/ types.Type, types.Type);342 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test1, types.Type);343 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, types.Type);344 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test2, types.Type);345 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test3, types.Type);346 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, types.Type);347 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test1);348 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test1);349 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test1);350 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test1);351 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test1);352 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test1);353 354 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test2);355 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test2);356 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test2);357 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test2);358 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test2);359 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test2);360 361 command.runStep(false, {repetitions: 100}, /**/ types.Type, __Internal__.Test3);362 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test1, __Internal__.Test3);363 command.runStep(false, {repetitions: 100}, /**/ __Internal__.objTest1, __Internal__.Test3);364 command.runStep(false, {repetitions: 100}, /**/ __Internal__.Test2, __Internal__.Test3);365 command.runStep(true, {repetitions: 100}, /**/ __Internal__.Test3, __Internal__.Test3);366 command.runStep(true, {repetitions: 100}, /**/ __Internal__.objTest3, __Internal__.Test3);367 368 });369 370 test.runCommand(function(obj, attr) {371 return obj[attr];372 }, "obj[attr]", function(command, options) {373 374 command.runStep(1, {}, /**/ __Internal__.Test1, 'typeAttribute');375 command.runStep(undefined, {}, /**/ __Internal__.Test1, 'instanceAttribute');376 command.runStep(undefined, {}, /**/ __Internal__.objTest1, 'typeAttribute');377 command.runStep(2, {}, /**/ __Internal__.objTest1, 'instanceAttribute');378 command.runStep(undefined, {}, /**/ __Internal__.Test2, 'typeAttribute');379 command.runStep(2, {}, /**/ __Internal__.Test2, 'instanceAttribute');380 command.runStep(3, {}, /**/ __Internal__.Test3, 'typeAttribute');381 command.runStep(undefined, {}, /**/ __Internal__.Test3, 'instanceAttribute');382 command.runStep(undefined, {}, /**/ __Internal__.objTest3, 'typeAttribute');383 command.runStep(4, {}, /**/ __Internal__.objTest3, 'instanceAttribute');384 385 });386 test.runCommand(function(obj, attr) {387 const fn = obj[attr];388 return fn && fn.apply(obj);389 }, "obj[attr]()", function(command, options) {390 391 command.runStep(1, {}, /**/ __Internal__.Test1, 'typeMethod');392 command.runStep(2, {}, /**/ __Internal__.Test1, 'typeMethodNoSuper');393 command.runStep(3, {}, /**/ __Internal__.Test1, 'typeMethodNoOverride');394 command.runStep(undefined, {}, /**/ __Internal__.Test1, 'instanceMethod');395 command.runStep(undefined, {}, /**/ __Internal__.Test1, 'instanceMethodNoSuper');396 command.runStep(undefined, {}, /**/ __Internal__.Test1, 'instanceMethodNoOverride');397 command.runStep(undefined, {}, /**/ __Internal__.objTest1, 'typeMethod');398 command.runStep(undefined, {}, /**/ __Internal__.objTest1, 'typeMethodNoSuper');399 command.runStep(undefined, {}, /**/ __Internal__.objTest1, 'typeMethodNoOverride');400 command.runStep(2, {}, /**/ __Internal__.objTest1, 'instanceMethod');401 command.runStep(3, {}, /**/ __Internal__.objTest1, 'instanceMethodNoSuper');402 command.runStep(4, {}, /**/ __Internal__.objTest1, 'instanceMethodNoOverride');403 command.runStep(undefined, {}, /**/ __Internal__.Test2, 'typeMethod');404 command.runStep(2, {}, /**/ __Internal__.Test2, 'instanceMethod');405 command.runStep(1, {}, /**/ __Internal__.Test3, 'typeMethod');406 command.runStep(4, {}, /**/ __Internal__.Test3, 'typeMethodNoSuper');407 command.runStep(3, {}, /**/ __Internal__.Test3, 'typeMethodNoOverride');408 command.runStep(undefined, {}, /**/ __Internal__.Test3, 'instanceMethod');409 command.runStep(undefined, {}, /**/ __Internal__.Test3, 'instanceMethodNoSuper');410 command.runStep(undefined, {}, /**/ __Internal__.Test3, 'instanceMethodNoOverride');411 command.runStep(undefined, {}, /**/ __Internal__.objTest3, 'typeMethod');412 command.runStep(undefined, {}, /**/ __Internal__.objTest3, 'typeMethodNoSuper');413 command.runStep(undefined, {}, /**/ __Internal__.objTest3, 'typeMethodNoOverride');414 command.runStep(2, {}, /**/ __Internal__.objTest3, 'instanceMethod');415 command.runStep(5, {}, /**/ __Internal__.objTest3, 'instanceMethodNoSuper');416 command.runStep(4, {}, /**/ __Internal__.objTest3, 'instanceMethodNoOverride');417 418 });419 420 test.runCommand(types.getType, "Doodad.Types.getType", function(command, options) {421 422 command.runStep(types.Type, {repetitions: 100}, /**/ types.Type);423 command.runStep(__Internal__.Test1, {repetitions: 100}, /**/ __Internal__.Test1);424 command.runStep(__Internal__.Test1, {repetitions: 100}, /**/ __Internal__.objTest1);425 command.runStep(__Internal__.Test2.constructor, {repetitions: 100}, /**/ __Internal__.Test2);426 command.runStep(__Internal__.Test3, {repetitions: 100}, /**/ __Internal__.Test3);427 command.runStep(__Internal__.Test3, {repetitions: 100}, /**/ __Internal__.objTest3);428 });429 430 test.runCommand(types.getTypeName, "Doodad.Types.getTypeName", function(command, options) {431 432 command.runStep('Type', {repetitions: 100}, /**/ types.Type);433 command.runStep('Test1', {repetitions: 100}, /**/ __Internal__.Test1);434 command.runStep('Test1', {repetitions: 100}, /**/ __Internal__.objTest1);435 command.runStep('Test2', {repetitions: 100}, /**/ __Internal__.Test2);436 command.runStep('Test3', {repetitions: 100}, /**/ __Internal__.Test3);437 command.runStep('Test3', {repetitions: 100}, /**/ __Internal__.objTest3);438 });439 440 test.runCommand(types.getBase, "Doodad.Types.getBase", function(command, options) {441 442 //command.runStep("???", {repetitions: 100}, /**/ types.Type);443 command.runStep(types.Type, {repetitions: 100}, /**/ __Internal__.Test1);444 command.runStep(types.Type, {repetitions: 100}, /**/ __Internal__.objTest1);445 command.runStep(types.Type, {repetitions: 100}, /**/ __Internal__.Test2);446 command.runStep(__Internal__.Test1, {repetitions: 100}, /**/ __Internal__.Test3);447 command.runStep(__Internal__.Test1, {repetitions: 100}, /**/ __Internal__.objTest3);448 });449 450 test.runCommand(function (obj) {451 return obj.toString();452 }, "obj.toString()", function(command, options) {453 command.runStep('[type Type]', {}, /**/ types.Type);454 command.runStep('[type Test1]', {}, /**/ __Internal__.Test1);455 command.runStep('[object Test1]', {}, /**/ __Internal__.objTest1);456 command.runStep('[object Test2]', {}, /**/ __Internal__.Test2);457 command.runStep('[type Test3]', {}, /**/ __Internal__.Test3);458 command.runStep('[object Test3]', {}, /**/ __Internal__.objTest3);459 });460 461 test.runCommand(function (obj) {462 return obj.toLocaleString();463 }, "obj.toLocaleString()", function(command, options) {464 command.runStep('[type Type]', {}, /**/ types.Type);465 command.runStep('[type Test1]', {}, /**/ __Internal__.Test1);466 command.runStep('[object Test1]', {}, /**/ __Internal__.objTest1);467 command.runStep('[object Test2]', {}, /**/ __Internal__.Test2);468 command.runStep('[type Test3]', {}, /**/ __Internal__.Test3);469 command.runStep('[object Test3]', {}, /**/ __Internal__.objTest3);470 });471 472 test.runCommand(function (obj) {473 return (types instanceof types.Namespace) && (types instanceof types.Type);474 }, "(Doodad.Types instanceof Doodad.Types.Namespace) && (Doodad.Types instanceof Doodad.Types.Type)", function(command, options) {475 command.runStep(true);476 });477 478 479 },480 },481 };482 return mods;483};...
action.js
Source:action.js
1/**2 * @author Suker3 * å¨ç»ç»ä»¶4 */5(function($) {6 /**7 * å¨ç»ç¸å
³åè½éå8 */9 $.action = (function() {10 return {11 /**12 * è§è²å®ä½ç±»13 * @param {Array} sprites14 * @param {number} x15 * @param {number} y16 * @param {number} current17 */18 role: (function() {19 var _setSprite = function(r, cr) {20 r.current = cr >= r.sprites.length ? r.sprites.length - 1 : cr > 0 ? cr : 0;21 r.sprites[r.current].setFrame(0);//æ¹åå¨ä½åå°å¸§æéå½é¶22 return r;23 };24 var _returnSprite = function(sprites, imageNames, rects, frames, actions) {25 if (actions.length > 0) {26 var _sprites = [], frames, _act;27 for (var i = 0; i < actions.length; i++) {28 frames = []; //å帧29 _act = actions[i].frames;30 for (var j = 0; j < _act.length; j++) {31 frames.push({ args: [_act[j][0], _act[j][1], _act[j][2]], step: _act[j][3] });32 }33 _sprites.push(new $.action.sprite(frames, actions[i].loop, 0, 0)); //åç²¾çµ34 }35 return _sprites;36 }37 else38 return sprites;39 };40 var _actionRoleGetFrames = function(that) {41 return that.frames[that.getSprite().getFrame().args[0]];42 };43 return function(sprites, x, y, current, imageNames, rects, frames, actions) {44 this.imageNames = imageNames || [];45 this.rects = rects || [];46 this.frames = frames || [];47 this.actions = actions || [];48 this.sprites = _returnSprite(sprites, this.imageNames, this.rects, this.frames, this.actions) || [];49 this.x = x || 0;50 this.y = y || 0;51 this.current = current || 0;52 this.zoom = 1;53 /**54 * 设置å½åè§è²çå¨ä½55 * @param {number} cr56 */57 this.setSprite = function(cr) {58 return _setSprite(this, cr);59 };60 /**61 * è·åå½åè§è²çå¨ä½62 */63 this.getSprite = function() {64 return this.sprites[this.current];65 };66 /**67 * åå¾å¸§æ°æ®68 */69 this.getFrame = function() {70 return _actionRoleGetFrames(this);71 };72 /**73 * 移å¨74 */75 this.action = function() {76 this.x += this.getSprite().getFrame().args[1];77 this.y += this.getSprite().getFrame().args[2];78 };79 /**80 * 渲æ81 * @param {bool} act82 * @param {canvas2d} context83 */84 this.render = function(act, context) {85 if (!act) {86 this.x += this.getSprite().getFrame().args[1];87 this.y += this.getSprite().getFrame().args[2];88 }89 var _fa = this.frames[this.getSprite().getFrame().args[0]].frameArray, _len = _fa.length, _actRenderContext = context ? context : $.canvas, _actRenderImage;90 for (var i = 0; i < _len; i++) {91 if (context)92 _actRenderImage = $.getImage(this.imageNames[_fa[i][0]]);93 else94 _actRenderImage = this.imageNames[_fa[i][0]];95 _actRenderContext.drawImage(96 _actRenderImage,97 this.rects[_fa[i][0]][_fa[i][1]][0],98 this.rects[_fa[i][0]][_fa[i][1]][1],99 this.rects[_fa[i][0]][_fa[i][1]][2],100 this.rects[_fa[i][0]][_fa[i][1]][3],101 parseInt(this.x + _fa[i][2] * this.zoom),102 parseInt(this.y + _fa[i][3] * this.zoom),103 parseInt(this.rects[_fa[i][0]][_fa[i][1]][2] * this.zoom),104 parseInt(this.rects[_fa[i][0]][_fa[i][1]][3] * this.zoom)105 );106 }107 _actRenderImage = null;108 _actRenderContext = null;109 _len = null;110 _fa = null;111 };112 /**113 * 设置缩æ¾æ¯ä¾114 * @param {number} zoom115 */116 this.setZoom = function(zoom) {117 if (zoom > 0) {118 this.zoom = zoom;119 }120 };121 /**122 * åå¾è§è²èº«ä½ç©å½¢æ°æ®123 */124 this.getBodyRect = function() {125 var br = this.getFrame().bodyRect;126 if (this.zoom == 1) {127 return br;128 } else {129 return [br[0] * this.zoom, br[1] * this.zoom, br[2] * this.zoom, br[3] * this.zoom];130 }131 };132 /**133 * åå¾è§è²æ»å»ç©å½¢æ°æ®134 */135 this.getAttackRect = function() {136 var ar = this.getFrame().actRect;137 if (this.zoom == 1) {138 return ar;139 } else {140 return [ar[0] * this.zoom, ar[1] * this.zoom, ar[2] * this.zoom, ar[3] * this.zoom];141 }142 };143 }144 })(),145 /**146 * ç²¾çµå®ä½ç±»147 * @param {Array} frames148 * @param {bool} loop149 * @param {number} current150 * @param {number} step151 */152 sprite: (function() {153 var _setFrame = function(s, cf) {154 s.current = cf >= s.frames.length ? s.frames.length - 1 : cf > 0 ? cf : 0;155 if (s.getFrame().step)156 s.runStep = s.getFrame().step;157 return s;158 };159 var _nextFrame = function(s) {160 if (!s.loop && s.endFrame())161 return s;162 if (s.frames.length > 0) {163 if (s.runStep <= 0) {164 if (s.loop) {165 s.current++;166 s.current %= s.frames.length;167 }168 else {169 if (s.current < s.frames.length - 1)170 s.current++;171 }172 //å¦æå帧ææ¾å»¶è¿å¼ä¸ä¸ºç©ºé£ä»¥å¸§çææ¾å»¶è¿ä¸ºåºåï¼å¦å以精çµçææ¾å»¶è¿ä¸ºåºå173 if (s.getFrame().step)174 s.runStep = s.getFrame().step;175 else176 s.runStep = s.step;177 }178 else {179 s.runStep--;180 }181 }182 return s;183 };184 var _preFrame = function(s) {185 if (!s.loop && s.endFrame())186 return s;187 if (s.frames.length > 0) {188 if (s.runStep <= 0) {189 //s.runStep = s.step;190 if (s.loop) {191 s.current--;192 if (s.current < 0)193 s.current = s.frames.length - 1;194 }195 else {196 if (s.current > 0)197 s.current--;198 }199 //å¦æå帧ææ¾å»¶è¿å¼ä¸ä¸ºç©ºé£ä»¥å¸§çææ¾å»¶è¿ä¸ºåºåï¼å¦å以精çµçææ¾å»¶è¿ä¸ºåºå200 if (s.getFrame().step)201 s.runStep = s.getFrame().step;202 else203 s.runStep = s.step;204 }205 else {206 s.runStep--;207 }208 }209 return s;210 };211 return function(frames, loop, current, step) {212 this.frames = frames || [];213 this.loop = loop;214 this.current = current || 0;215 this.step = step || 0;216 /**217 * 设置帧æé218 * @param {number} cf219 */220 this.setFrame = function(cf) {221 return _setFrame(this, cf);222 };223 /**224 * è·å帧æé225 */226 this.getFrame = function() {227 return this.frames[this.current];228 };229 /**230 * ä¸ä¸å¸§231 */232 this.nextFrame = function() {233 return _nextFrame(this);234 };235 /**236 * ä¸ä¸å¸§237 */238 this.preFrame = function() {239 return _preFrame(this);240 };241 /**242 * å¤ææ¯å¦å°è¾¾å¨ç»å¸§éåå°¾é¨243 */244 this.endFrame = function() {245 return this.current == this.frames.length - 1 &&246 this.runStep == 0;247 };248 this.setFrame(current);249 this.runStep = this.getFrame().step ? this.getFrame().step : this.step;250 };251 })(),252 /**253 * å¨ä½ç段å®ä½ç±»254 * @param {Array} sprites255 */256 fragment: (function() {257 var _getff;258 var _fragmentNext = function(f) {259 if (f.sprites.length > 0) {260 if (f.sprites[0].frames.length > 0) {261 if (f.sprites[0].runStep <= 0) {262 f.sprites[0].runStep = f.sprites[0].step;263 _getff = f.sprites[0].frames.shift();264 if (f.sprites[0].frames.length == 0)265 f.sprites.shift();266 }267 else {268 _getff = f.sprites[0].getFrame();269 f.sprites[0].runStep--;270 }271 }272 }273 else274 _getff = null;275 return _getff;276 };277 var _fragmentQueue = function(f) {278 return _fragmentNext(f);279 };280 return function(sprites) {281 this.sprites = sprites || [];282 /**283 * å¨ä½ç段帧åºéåï¼ç´å°å¼ä¸ºnull284 */285 this.queue = function() {286 return _fragmentQueue(this);287 };288 }289 })()290 };291 })();...
ArrayExecuter.js
Source:ArrayExecuter.js
...33 if (arr[i]) {34 task_arr.unshift(arr[i]);35 }36 }37 this.runStep('');38 },39 tackOn: function (arr) {40 for (var i=0; i<arr.length; i++) {41 task_arr.push(arr[i]);42 }43 44 // trace('///// arrayExecuter_tackOn: length: '+task_arr.length+' /////');45 46 this.runStep('');47 },48 runFunctionInScope: function (arr) {49 var obj = arr[0];50 var function_name = arr[1];51 var optionalVars = (arr.length >2)?arr[2]:null;52 53 if (arr.length >2) { 54 obj[function_name](arr[2]);55 } else {56 obj[function_name]();57 }58 },59 runStep: function (args) {60 if (task_arr.length == 0)return;61 62 var step = task_arr.shift();63 var funct = step.fn;64 step.scope = step.scope || this;65 step.vars = (step.vars !== undefined)?step.vars:[];66 67 if (typeof step.vars === "string" || typeof step.vars === "number") {68 step.vars = [step.vars];69 }70 71 funct.apply(step.scope, step.vars);72 },73 stepComplete: function (args) {74 var that = this;75 // trace('///// arrayExecuter: stepComplete /////');76 if (task_arr.length > 0) {77 // setTimeout(function(){78 // that.runStep();79 // }, 60);80 window.requestAnimationFrame(that.runStep);81 }82 },83 stepComplete_instant: function (args) {84 // trace('///// arrayExecuter: stepComplete_instant /////');85 if (task_arr.length > 0) {86 this.runStep();87 }88 },89 clearArrayExecuter: function () {90 task_arr = [];91 }92 }93 return arrayExecuter;...
runner.js
Source:runner.js
1var Runner = {2 editor: null,3 enabled: false,4 inputString: 'abba',5 runStep: 0,6 init: function( editor ) {7 this.editor = editor;8 },9 displayRunDone: function() {10 },11 displayRejectedStatus: function() {12 $( '#runstatus' ).html( 'Rejected' );13 $( '#runstatus' ).addClass( 'reject icon' );14 this.displayRunDone();15 },16 displayAcceptedStatus: function() {17 $( '#runstatus' ).html( 'Accepted' );18 $( '#runstatus' ).addClass( 'accept icon' );19 this.displayRunDone();20 },21 displayRunStatus: function() {22 $( '#runstatus' ).html( 'Running' );23 $( '#runstatus' ).removeClass( 'reject accept icon' );24 },25 displayStep: function() {26 $( '#runinput .state' ).removeClass( 'selected' );27 $( $( '#runinput .state' )[ this.runStep ] ).addClass( 'selected' );28 },29 isAccepted: function() {30 for ( var state in nfaview.nfa.currentStates ) {31 if ( nfaview.nfa.accept[ state ] ) {32 return true;33 }34 }35 return false;36 },37 open: function() {38 ol = $( '#runinput' );39 ol.empty();40 for ( var i = 0; i < this.inputString.length; ++i ) {41 ol.append(42 $( '<li class="state"> </li>' )43 );44 ol.append(45 $( '<li class="transition">' + this.inputString[ i ] + '</li>' )46 );47 }48 ol.append(49 $( '<li class="state"> </li>' )50 );51 $( '.runner' ).show();52 },53 run: function() {54 this.editor.inputSubmit();55 var s = prompt( 'Enter input string: ', this.inputString ) + '';56 for ( var i = 0; i < s.length; ++i ) {57 if ( !( s[ i ] in nfaview.nfa.alphabet ) ) {58 alert( 'Input string must contain only symbols from the alphabet' );59 return false;60 }61 }62 this.inputString = s;63 this.editor.run( this.inputString );64 this.open();65 this.enabled = true;66 this.runStep = 0;67 this.step( 0 )68 return false;69 },70 step: function ( step ) {71 if ( step < 0 ) {72 step = 0;73 }74 if ( step <= this.inputString.length ) {75 var oldStep = this.runStep;76 this.runStep = this.editor.gotoStep( this.inputString, step );77 if ( this.runStep == this.inputString.length ) {78 if ( this.isAccepted() ) {79 this.displayAcceptedStatus();80 }81 else {82 this.displayRejectedStatus();83 }84 }85 else {86 if ( oldStep != this.runStep || oldStep == step ) {87 this.displayRunStatus();88 }89 else {90 this.displayRejectedStatus();91 }92 }93 this.displayStep();94 this.editor.renderer.requestRendering();95 }96 return false;97 },98 next: function() {99 this.step( this.runStep + 1 );100 return false;101 },102 first: function() {103 this.step( 0 );104 return false;105 },106 previous: function() {107 this.step( this.runStep - 1 );108 return false;109 },110 last: function() {111 this.step( this.inputString.length );112 return false;113 },114 close: function() {115 this.editor.setRun( false );116 $( '.runner' ).hide();117 this.enabled = false;118 this.editor.renderer.requestRendering();119 return false;120 }...
gameRunnerSpec.js
Source:gameRunnerSpec.js
...17 position: 'some new position', 18 velocity: 'some new velocity'19 }20 });21 gameRunner.runStep();22 expect(singletonContext.ball.position).toEqual('some new position'); 23 expect(singletonContext.ball.velocity).toEqual('some new velocity'); 24 expect(singletonContext.ballKinematicsUpdater.update).toHaveBeenCalledWith(ball, stage, paddle);25 });26 27 describe("when there is a collision", function(){28 beforeEach(function(){29 spyOn(singletonContext.ballKinematicsUpdater, 'update').and.returnValue({ ball: {}, collisionSurfaces: [{type:'BLOCK', block: {}}]});30 });31 32 it("updates the score", function(){33 spyOn(singletonContext.scoreUpdater, 'update');34 gameRunner.runStep();35 expect(singletonContext.scoreUpdater.update).toHaveBeenCalledWith([{type:'BLOCK', block: {}}]);36 });37 38 it('destroys any block that needs to be destroyed', function(){39 spyOn(singletonContext.blockDestroyer, 'removeDamagedBlocks');40 gameRunner.runStep();41 expect(singletonContext.blockDestroyer.removeDamagedBlocks).toHaveBeenCalledWith([{type:'BLOCK', block: {}}]);42 });43 });44 45 describe('when the ball hits the bottom wall', function(){46 var ballController;47 beforeEach(function(){48 ballController = singletonContext.ballController;49 singletonContext.lives = 3;50 spyOn(singletonContext.ballKinematicsUpdater, 'update').and.returnValue({ ball: new Ball(), collisionSurfaces: [{type: 'BOTTOM_WALL'}]});51 });52 53 it('sticks the ball to the paddle', function(){54 spyOn(ballController, 'stickBallToPaddle');55 gameRunner.runStep();56 expect(ballController.stickBallToPaddle).toHaveBeenCalled();57 });58 59 it('decrements the life counter', function(){60 gameRunner.runStep();61 expect(singletonContext.lives).toBe(2);62 });63 64 describe('when it was your final life', function(){65 beforeEach(function(){66 singletonContext.lives = 1;67 singletonContext.playerScore = 1000;68 });69 70 it('sets the score to 0', function(){71 gameRunner.runStep();72 expect(singletonContext.playerScore).toBe(0);73 });74 75 it('resets player lives', function(){76 gameRunner.runStep();77 expect(singletonContext.lives).toBe(3);78 });79 });80 });81 });...
etc10.js
Source:etc10.js
1// $(document).ready(function(){2// //? ìì§ì¼ ëì, ìì§ì´ë ê°ê²©, xì¢í를 ì ì¥í ê³³, ë§ë 길ì´.3// var $circle = $('#circle');4// var runStep = 10;5// var xpos = $circle.position().left;6// var railWidth = $('#rail').width();7// var timerID = 0;8// startMove($circle, runStep, xpos, railWidth, timerID);9// });10// function startMove($circle, runStep, xpos, railWidth, timerID){11// $('#btn_start').click(function(){12// timerID = setInterval(function(){13// xpos += runStep;14// $circle.css({15// left: xpos16// });17// if(xpos > railWidth || xpos < 0){18// //todo. ìì ìì§ìì ë°©í¥ì í19// runStep *= -1;20// }21// },0);22// return stopMove(timerID);23// });24// }25// function stopMove(timerID){26// $('#btn_stop').click(function(){27// clearInterval(timerID);28// });29// }30var $circle = null;31var railWidth = null;32var runStep = 10;33var timerID = 0;34// ? document ì ì²´ìì ì¬ì©í ë³ì.35$(document).ready(function(){36 init(); //? ëì ë° ë³ì ë¶ë¬ì¤ê¸°.37 initEvent(); //? event í¨ì.38});39function init(){40 $circle = $("#circle");41 railWidth = $("#rail").width();42}43function initEvent(){44 $("#btn_start").click(moveStart);// ? ìì§ì´ë ê¸°ë¥ í¨ì45 $("#btn_stop").click(moveStop);// ? ë©ì¶ë ê¸°ë¥ í¨ì46}47function moveStart(){48 if(timerID == 0){49 timerID = setInterval(moveCircle,0);// ? ìì§ìlogic50 }51}52function moveCircle(){53 var xpos = $circle.position().left;54 xpos += runStep;55 $circle.css({56 left: xpos57 });58 if(xpos > railWidth || xpos < 0){59 runStep *= -1;60 }61}62function moveStop(){63 clearInterval(timerID); //? timerID clear64 timerID = 0; //? timerID ì´ê¸°í...
Using AI Code Generation
1const { Playwright } = require('playwright-core');2const playwright = new Playwright();3const { chromium } = playwright;4(async () => {5 const browser = await chromium.launch();6 const context = await browser.newContext();7 const page = await context.newPage();8 await page.click('input[name="q"]');9 await page.keyboard.type('hello world');10 await page.keyboard.press('Enter');11 await page.waitForNavigation();12 await browser.close();13})();14const { Playwright } = require('playwright-core');15const playwright = new Playwright();16const { chromium } = playwright;17(async () => {18 const browser = await chromium.launch();19 const context = await browser.newContext();20 const page = await context.newPage();21 await page.click('input[name="q"]');22 await page.keyboard.type('hello world');23 await page.keyboard.press('Enter');24 await page.waitForNavigation();25 await browser.close();26})();27const { Playwright } = require('playwright-core');28const playwright = new Playwright();29const { chromium } = playwright;30(async () => {31 const browser = await chromium.launch();32 const context = await browser.newContext();33 const page = await context.newPage();34 await page.click('input[name="q"]');35 await page.keyboard.type('hello world');36 await page.keyboard.press('Enter');37 await page.waitForNavigation();38 await browser.close();39})();40const { Playwright } = require('playwright-core');41const playwright = new Playwright();42const { chromium } = playwright;43(async () => {44 const browser = await chromium.launch();45 const context = await browser.newContext();46 const page = await context.newPage();47 await page.click('input[name="q"]');48 await page.keyboard.type('hello world');49 await page.keyboard.press('Enter');50 await page.waitForNavigation();51 await browser.close();52})();
Using AI Code Generation
1const { test } = require('@playwright/test');2const { runStep } = require('@playwright/test/lib/test');3test('test', async ({ page }) => {4 await runStep('Step 1', async () => {5 });6 await runStep('Step 2', async () => {7 await page.click('text=Get started');8 });9});
Using AI Code Generation
1const { runStep } = require('@qasymphony/playwright');2const { chromium, firefox, webkit } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 });8 await browser.close();9})();10const { runStep } = require('@qasymphony/playwright');11const { chromium, firefox, webkit } = require('playwright');12(async () => {13 const browser = await chromium.launch();14 const context = await browser.newContext();15 const page = await context.newPage();16 });17 await browser.close();18})();19const { runStep } = require('@qasymphony/playwright');20const { chromium, firefox, webkit } = require('playwright');21(async () => {22 const browser = await chromium.launch();23 const context = await browser.newContext();24 const page = await context.newPage();25 });26 await browser.close();27})();28const { runStep } = require('@qasymphony/playwright');29const { chromium, firefox, webkit } = require('playwright');30(async () => {31 const browser = await chromium.launch();32 const context = await browser.newContext();33 const page = await context.newPage();34 });35 await browser.close();36})();37const { runStep } = require('@qasymphony/playwright');38const { chromium, firefox, webkit } = require('playwright');39(async () => {
Using AI Code Generation
1const { test, expect } = require('@playwright/test');2const path = require('path');3const fs = require('fs');4test('should work', async ({ page }) => {5 const step = {6 options: {7 }8 };9 await page.runStep(step);10 expect(await page.textContent('text=Hello, world!')).toBe('Hello, world!');11});12test('should work with file', async ({ page }) => {13 const step = JSON.parse(fs.readFileSync(path.join(__dirname, 'step.json')));14 await page.runStep(step);15 expect(await page.textContent('text=Hello, world!')).toBe('Hello, world!');16});
Using AI Code Generation
1import { runStep } from 'playwright-internal';2runStep('Close the browser', async () => {3 await context.close();4});5runStep('Close the browser', async () => {6 await context.close();7});8runStep('Close the browser', async () => {9 await context.close();10});11runStep('Close the browser', async () => {12 await context.close();13});14runStep('Close the browser', async () => {15 await context.close();16});17runStep('Close the browser', async () => {18 await context.close();19});20runStep('Close the browser', async () => {21 await context.close();22});23runStep('Close the browser', async () => {24 await context.close();25});26runStep('Close the browser', async () => {27 await context.close();28});29runStep('Close the browser', async () => {30 await context.close();31});32runStep('Close the browser', async () => {33 await context.close();34});35runStep('Close the browser', async () => {
Using AI Code Generation
1const { runStep } = require('@qawolf/playwright');2const { chromium } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 const result = await runStep(page, 'click', 'input[name="q"]');8 console.log(result);9 await browser.close();10})();11{12 code: 'await page.click(\'input[name="q"]\');',13 result: {14 }15}16const { runSteps } = require('@qawolf/playwright');17const { chromium } = require('playwright');18(async () => {19 const browser = await chromium.launch();20 const context = await browser.newContext();21 const page = await context.newPage();22 const results = await runSteps(page, [23 { action: 'click', selector: 'input[name="q"]' },24 { action: 'type', selector: 'input[name="q"]', value: 'Hello World' },25 { action: 'press', selector: 'input[name="q"]', key: 'Enter' },26 ]);27 console.log(results);28 await browser.close();29})();30 {31 code: 'await page.click(\'input[name="q"]\');',32 result: {33 }34 },35 {36 code: 'await page.type(\'input[name="q"]\', \'Hello World\');',37 result: {
LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.
Get 100 minutes of automation test minutes FREE!!