How to use sorted method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

loader.js

Source:loader.js Github

copy

Full Screen

1/*2* This file was assembled by ../scripts/build_loader_tests.js3*/4var path = require('path'),5 YUI = require(path.join(__dirname, '../../../../', 'build/yui/yui.js')).YUI;6 Y = YUI(),7 YUITest = require("yuitest").YUITest,8 Assert = YUITest.Assert,9 ArrayAssert = YUITest.ArrayAssert,10 suite = new YUITest.TestSuite("YUILoader");11//Generic Async Wait12var async = function(fn) {13 var count = 0;14 return function(data) {15 var loaded = false;16 var w = function() {17 if (count === 1000) {18 throw new Error('Async Timer reached 1000 iterations..');19 }20 count++;21 if (!loaded) {22 this.wait(w, 10);23 }24 };25 var next = function() {26 loaded = true;27 };28 fn.call(this, data, next);29 this.wait(w, 10);30 };31};32/*33* !! TESTCASE !! will be replaced with a JSON object by the parent script.34*/35suite.add(new YUITest.TestCase({36 name: "Loader Tests",37 "Testing align-plugin": function(data) {38 var loader = new Y.Loader({39 require: ["align-plugin"],40 ignoreRegistered: true,41 allowRollup: false42 });43 loader.calculate();44 //Testing A normal module45 Assert.isTrue((loader.sorted.indexOf("align-plugin")) > -1, "Module (align-plugin) not found in sorted array");46 },47 "Testing anim": function(data) {48 var loader = new Y.Loader({49 require: ["anim"],50 ignoreRegistered: true,51 allowRollup: false52 });53 loader.calculate();54 //Testing A rollup module55 Assert.isTrue((loader.sorted.indexOf("anim-base")) > -1, "Module (anim-base) not found in sorted array");56 Assert.isTrue((loader.sorted.indexOf("anim-color")) > -1, "Module (anim-color) not found in sorted array");57 Assert.isTrue((loader.sorted.indexOf("anim-curve")) > -1, "Module (anim-curve) not found in sorted array");58 Assert.isTrue((loader.sorted.indexOf("anim-easing")) > -1, "Module (anim-easing) not found in sorted array");59 Assert.isTrue((loader.sorted.indexOf("anim-node-plugin")) > -1, "Module (anim-node-plugin) not found in sorted array");60 Assert.isTrue((loader.sorted.indexOf("anim-scroll")) > -1, "Module (anim-scroll) not found in sorted array");61 Assert.isTrue((loader.sorted.indexOf("anim-xy")) > -1, "Module (anim-xy) not found in sorted array");62 },63 "Testing anim-base": function(data) {64 var loader = new Y.Loader({65 require: ["anim-base"],66 ignoreRegistered: true,67 allowRollup: false68 });69 loader.calculate();70 //Testing A normal module71 Assert.isTrue((loader.sorted.indexOf("anim-base")) > -1, "Module (anim-base) not found in sorted array");72 },73 "Testing anim-color": function(data) {74 var loader = new Y.Loader({75 require: ["anim-color"],76 ignoreRegistered: true,77 allowRollup: false78 });79 loader.calculate();80 //Testing A normal module81 Assert.isTrue((loader.sorted.indexOf("anim-color")) > -1, "Module (anim-color) not found in sorted array");82 },83 "Testing anim-curve": function(data) {84 var loader = new Y.Loader({85 require: ["anim-curve"],86 ignoreRegistered: true,87 allowRollup: false88 });89 loader.calculate();90 //Testing A normal module91 Assert.isTrue((loader.sorted.indexOf("anim-curve")) > -1, "Module (anim-curve) not found in sorted array");92 },93 "Testing anim-easing": function(data) {94 var loader = new Y.Loader({95 require: ["anim-easing"],96 ignoreRegistered: true,97 allowRollup: false98 });99 loader.calculate();100 //Testing A normal module101 Assert.isTrue((loader.sorted.indexOf("anim-easing")) > -1, "Module (anim-easing) not found in sorted array");102 },103 "Testing anim-node-plugin": function(data) {104 var loader = new Y.Loader({105 require: ["anim-node-plugin"],106 ignoreRegistered: true,107 allowRollup: false108 });109 loader.calculate();110 //Testing A normal module111 Assert.isTrue((loader.sorted.indexOf("anim-node-plugin")) > -1, "Module (anim-node-plugin) not found in sorted array");112 },113 "Testing anim-scroll": function(data) {114 var loader = new Y.Loader({115 require: ["anim-scroll"],116 ignoreRegistered: true,117 allowRollup: false118 });119 loader.calculate();120 //Testing A normal module121 Assert.isTrue((loader.sorted.indexOf("anim-scroll")) > -1, "Module (anim-scroll) not found in sorted array");122 },123 "Testing anim-shape": function(data) {124 var loader = new Y.Loader({125 require: ["anim-shape"],126 ignoreRegistered: true,127 allowRollup: false128 });129 loader.calculate();130 //Testing A normal module131 Assert.isTrue((loader.sorted.indexOf("anim-shape")) > -1, "Module (anim-shape) not found in sorted array");132 },133 "Testing anim-shape-transform": function(data) {134 var loader = new Y.Loader({135 require: ["anim-shape-transform"],136 ignoreRegistered: true,137 allowRollup: false138 });139 loader.calculate();140 //Testing A rollup module141 Assert.isTrue((loader.sorted.indexOf("anim-shape")) > -1, "Module (anim-shape) not found in sorted array");142 },143 "Testing anim-xy": function(data) {144 var loader = new Y.Loader({145 require: ["anim-xy"],146 ignoreRegistered: true,147 allowRollup: false148 });149 loader.calculate();150 //Testing A normal module151 Assert.isTrue((loader.sorted.indexOf("anim-xy")) > -1, "Module (anim-xy) not found in sorted array");152 },153 "Testing app": function(data) {154 var loader = new Y.Loader({155 require: ["app"],156 ignoreRegistered: true,157 allowRollup: false158 });159 loader.calculate();160 //Testing A rollup module161 Assert.isTrue((loader.sorted.indexOf("app-base")) > -1, "Module (app-base) not found in sorted array");162 Assert.isTrue((loader.sorted.indexOf("app-content")) > -1, "Module (app-content) not found in sorted array");163 Assert.isTrue((loader.sorted.indexOf("app-transitions")) > -1, "Module (app-transitions) not found in sorted array");164 Assert.isTrue((loader.sorted.indexOf("lazy-model-list")) > -1, "Module (lazy-model-list) not found in sorted array");165 Assert.isTrue((loader.sorted.indexOf("model")) > -1, "Module (model) not found in sorted array");166 Assert.isTrue((loader.sorted.indexOf("model-list")) > -1, "Module (model-list) not found in sorted array");167 Assert.isTrue((loader.sorted.indexOf("model-sync-rest")) > -1, "Module (model-sync-rest) not found in sorted array");168 Assert.isTrue((loader.sorted.indexOf("model-sync-local")) > -1, "Module (model-sync-local) not found in sorted array");169 Assert.isTrue((loader.sorted.indexOf("router")) > -1, "Module (router) not found in sorted array");170 Assert.isTrue((loader.sorted.indexOf("view")) > -1, "Module (view) not found in sorted array");171 Assert.isTrue((loader.sorted.indexOf("view-node-map")) > -1, "Module (view-node-map) not found in sorted array");172 },173 "Testing app-base": function(data) {174 var loader = new Y.Loader({175 require: ["app-base"],176 ignoreRegistered: true,177 allowRollup: false178 });179 loader.calculate();180 //Testing A normal module181 Assert.isTrue((loader.sorted.indexOf("app-base")) > -1, "Module (app-base) not found in sorted array");182 },183 "Testing app-content": function(data) {184 var loader = new Y.Loader({185 require: ["app-content"],186 ignoreRegistered: true,187 allowRollup: false188 });189 loader.calculate();190 //Testing A normal module191 Assert.isTrue((loader.sorted.indexOf("app-content")) > -1, "Module (app-content) not found in sorted array");192 },193 "Testing app-transitions": function(data) {194 var loader = new Y.Loader({195 require: ["app-transitions"],196 ignoreRegistered: true,197 allowRollup: false198 });199 loader.calculate();200 //Testing A normal module201 Assert.isTrue((loader.sorted.indexOf("app-transitions")) > -1, "Module (app-transitions) not found in sorted array");202 },203 "Testing app-transitions-native": function(data) {204 var loader = new Y.Loader({205 require: ["app-transitions-native"],206 ignoreRegistered: true,207 allowRollup: false208 });209 loader.calculate();210 //Testing A normal module211 Assert.isTrue((loader.sorted.indexOf("app-transitions-native")) > -1, "Module (app-transitions-native) not found in sorted array");212 },213 "Testing array-extras": function(data) {214 var loader = new Y.Loader({215 require: ["array-extras"],216 ignoreRegistered: true,217 allowRollup: false218 });219 loader.calculate();220 //Testing A normal module221 Assert.isTrue((loader.sorted.indexOf("array-extras")) > -1, "Module (array-extras) not found in sorted array");222 },223 "Testing array-invoke": function(data) {224 var loader = new Y.Loader({225 require: ["array-invoke"],226 ignoreRegistered: true,227 allowRollup: false228 });229 loader.calculate();230 //Testing A normal module231 Assert.isTrue((loader.sorted.indexOf("array-invoke")) > -1, "Module (array-invoke) not found in sorted array");232 },233 "Testing arraylist": function(data) {234 var loader = new Y.Loader({235 require: ["arraylist"],236 ignoreRegistered: true,237 allowRollup: false238 });239 loader.calculate();240 //Testing A normal module241 Assert.isTrue((loader.sorted.indexOf("arraylist")) > -1, "Module (arraylist) not found in sorted array");242 },243 "Testing arraylist-add": function(data) {244 var loader = new Y.Loader({245 require: ["arraylist-add"],246 ignoreRegistered: true,247 allowRollup: false248 });249 loader.calculate();250 //Testing A normal module251 Assert.isTrue((loader.sorted.indexOf("arraylist-add")) > -1, "Module (arraylist-add) not found in sorted array");252 },253 "Testing arraylist-filter": function(data) {254 var loader = new Y.Loader({255 require: ["arraylist-filter"],256 ignoreRegistered: true,257 allowRollup: false258 });259 loader.calculate();260 //Testing A normal module261 Assert.isTrue((loader.sorted.indexOf("arraylist-filter")) > -1, "Module (arraylist-filter) not found in sorted array");262 },263 "Testing arraysort": function(data) {264 var loader = new Y.Loader({265 require: ["arraysort"],266 ignoreRegistered: true,267 allowRollup: false268 });269 loader.calculate();270 //Testing A normal module271 Assert.isTrue((loader.sorted.indexOf("arraysort")) > -1, "Module (arraysort) not found in sorted array");272 },273 "Testing async-queue": function(data) {274 var loader = new Y.Loader({275 require: ["async-queue"],276 ignoreRegistered: true,277 allowRollup: false278 });279 loader.calculate();280 //Testing A normal module281 Assert.isTrue((loader.sorted.indexOf("async-queue")) > -1, "Module (async-queue) not found in sorted array");282 },283 "Testing attribute": function(data) {284 var loader = new Y.Loader({285 require: ["attribute"],286 ignoreRegistered: true,287 allowRollup: false288 });289 loader.calculate();290 //Testing A rollup module291 Assert.isTrue((loader.sorted.indexOf("attribute-base")) > -1, "Module (attribute-base) not found in sorted array");292 Assert.isTrue((loader.sorted.indexOf("attribute-complex")) > -1, "Module (attribute-complex) not found in sorted array");293 },294 "Testing attribute-base": function(data) {295 var loader = new Y.Loader({296 require: ["attribute-base"],297 ignoreRegistered: true,298 allowRollup: false299 });300 loader.calculate();301 //Testing A normal module302 Assert.isTrue((loader.sorted.indexOf("attribute-base")) > -1, "Module (attribute-base) not found in sorted array");303 },304 "Testing attribute-complex": function(data) {305 var loader = new Y.Loader({306 require: ["attribute-complex"],307 ignoreRegistered: true,308 allowRollup: false309 });310 loader.calculate();311 //Testing A normal module312 Assert.isTrue((loader.sorted.indexOf("attribute-complex")) > -1, "Module (attribute-complex) not found in sorted array");313 },314 "Testing attribute-core": function(data) {315 var loader = new Y.Loader({316 require: ["attribute-core"],317 ignoreRegistered: true,318 allowRollup: false319 });320 loader.calculate();321 //Testing A normal module322 Assert.isTrue((loader.sorted.indexOf("attribute-core")) > -1, "Module (attribute-core) not found in sorted array");323 },324 "Testing attribute-events": function(data) {325 var loader = new Y.Loader({326 require: ["attribute-events"],327 ignoreRegistered: true,328 allowRollup: false329 });330 loader.calculate();331 //Testing A rollup module332 Assert.isTrue((loader.sorted.indexOf("attribute-observable")) > -1, "Module (attribute-observable) not found in sorted array");333 },334 "Testing attribute-extras": function(data) {335 var loader = new Y.Loader({336 require: ["attribute-extras"],337 ignoreRegistered: true,338 allowRollup: false339 });340 loader.calculate();341 //Testing A normal module342 Assert.isTrue((loader.sorted.indexOf("attribute-extras")) > -1, "Module (attribute-extras) not found in sorted array");343 },344 "Testing attribute-observable": function(data) {345 var loader = new Y.Loader({346 require: ["attribute-observable"],347 ignoreRegistered: true,348 allowRollup: false349 });350 loader.calculate();351 //Testing A normal module352 Assert.isTrue((loader.sorted.indexOf("attribute-observable")) > -1, "Module (attribute-observable) not found in sorted array");353 },354 "Testing autocomplete": function(data) {355 var loader = new Y.Loader({356 require: ["autocomplete"],357 ignoreRegistered: true,358 allowRollup: false359 });360 loader.calculate();361 //Testing A rollup module362 Assert.isTrue((loader.sorted.indexOf("autocomplete-base")) > -1, "Module (autocomplete-base) not found in sorted array");363 Assert.isTrue((loader.sorted.indexOf("autocomplete-sources")) > -1, "Module (autocomplete-sources) not found in sorted array");364 Assert.isTrue((loader.sorted.indexOf("autocomplete-list")) > -1, "Module (autocomplete-list) not found in sorted array");365 Assert.isTrue((loader.sorted.indexOf("autocomplete-plugin")) > -1, "Module (autocomplete-plugin) not found in sorted array");366 },367 "Testing autocomplete-base": function(data) {368 var loader = new Y.Loader({369 require: ["autocomplete-base"],370 ignoreRegistered: true,371 allowRollup: false372 });373 loader.calculate();374 //Testing A normal module375 Assert.isTrue((loader.sorted.indexOf("autocomplete-base")) > -1, "Module (autocomplete-base) not found in sorted array");376 },377 "Testing autocomplete-filters": function(data) {378 var loader = new Y.Loader({379 require: ["autocomplete-filters"],380 ignoreRegistered: true,381 allowRollup: false382 });383 loader.calculate();384 //Testing A normal module385 Assert.isTrue((loader.sorted.indexOf("autocomplete-filters")) > -1, "Module (autocomplete-filters) not found in sorted array");386 },387 "Testing autocomplete-filters-accentfold": function(data) {388 var loader = new Y.Loader({389 require: ["autocomplete-filters-accentfold"],390 ignoreRegistered: true,391 allowRollup: false392 });393 loader.calculate();394 //Testing A normal module395 Assert.isTrue((loader.sorted.indexOf("autocomplete-filters-accentfold")) > -1, "Module (autocomplete-filters-accentfold) not found in sorted array");396 },397 "Testing autocomplete-highlighters": function(data) {398 var loader = new Y.Loader({399 require: ["autocomplete-highlighters"],400 ignoreRegistered: true,401 allowRollup: false402 });403 loader.calculate();404 //Testing A normal module405 Assert.isTrue((loader.sorted.indexOf("autocomplete-highlighters")) > -1, "Module (autocomplete-highlighters) not found in sorted array");406 },407 "Testing autocomplete-highlighters-accentfold": function(data) {408 var loader = new Y.Loader({409 require: ["autocomplete-highlighters-accentfold"],410 ignoreRegistered: true,411 allowRollup: false412 });413 loader.calculate();414 //Testing A normal module415 Assert.isTrue((loader.sorted.indexOf("autocomplete-highlighters-accentfold")) > -1, "Module (autocomplete-highlighters-accentfold) not found in sorted array");416 },417 "Testing autocomplete-list": function(data) {418 var loader = new Y.Loader({419 require: ["autocomplete-list"],420 ignoreRegistered: true,421 allowRollup: false422 });423 loader.calculate();424 //Testing A normal module425 Assert.isTrue((loader.sorted.indexOf("autocomplete-list")) > -1, "Module (autocomplete-list) not found in sorted array");426 },427 "Testing autocomplete-list-keys": function(data) {428 var loader = new Y.Loader({429 require: ["autocomplete-list-keys"],430 ignoreRegistered: true,431 allowRollup: false432 });433 loader.calculate();434 //Testing A normal module435 Assert.isTrue((loader.sorted.indexOf("autocomplete-list-keys")) > -1, "Module (autocomplete-list-keys) not found in sorted array");436 },437 "Testing autocomplete-plugin": function(data) {438 var loader = new Y.Loader({439 require: ["autocomplete-plugin"],440 ignoreRegistered: true,441 allowRollup: false442 });443 loader.calculate();444 //Testing A normal module445 Assert.isTrue((loader.sorted.indexOf("autocomplete-plugin")) > -1, "Module (autocomplete-plugin) not found in sorted array");446 },447 "Testing autocomplete-sources": function(data) {448 var loader = new Y.Loader({449 require: ["autocomplete-sources"],450 ignoreRegistered: true,451 allowRollup: false452 });453 loader.calculate();454 //Testing A normal module455 Assert.isTrue((loader.sorted.indexOf("autocomplete-sources")) > -1, "Module (autocomplete-sources) not found in sorted array");456 },457 "Testing axes": function(data) {458 var loader = new Y.Loader({459 require: ["axes"],460 ignoreRegistered: true,461 allowRollup: false462 });463 loader.calculate();464 //Testing A rollup module465 Assert.isTrue((loader.sorted.indexOf("axis-numeric")) > -1, "Module (axis-numeric) not found in sorted array");466 Assert.isTrue((loader.sorted.indexOf("axis-category")) > -1, "Module (axis-category) not found in sorted array");467 Assert.isTrue((loader.sorted.indexOf("axis-time")) > -1, "Module (axis-time) not found in sorted array");468 Assert.isTrue((loader.sorted.indexOf("axis-stacked")) > -1, "Module (axis-stacked) not found in sorted array");469 },470 "Testing axes-base": function(data) {471 var loader = new Y.Loader({472 require: ["axes-base"],473 ignoreRegistered: true,474 allowRollup: false475 });476 loader.calculate();477 //Testing A rollup module478 Assert.isTrue((loader.sorted.indexOf("axis-numeric-base")) > -1, "Module (axis-numeric-base) not found in sorted array");479 Assert.isTrue((loader.sorted.indexOf("axis-category-base")) > -1, "Module (axis-category-base) not found in sorted array");480 Assert.isTrue((loader.sorted.indexOf("axis-time-base")) > -1, "Module (axis-time-base) not found in sorted array");481 Assert.isTrue((loader.sorted.indexOf("axis-stacked-base")) > -1, "Module (axis-stacked-base) not found in sorted array");482 },483 "Testing axis": function(data) {484 var loader = new Y.Loader({485 require: ["axis"],486 ignoreRegistered: true,487 allowRollup: false488 });489 loader.calculate();490 //Testing A normal module491 Assert.isTrue((loader.sorted.indexOf("axis")) > -1, "Module (axis) not found in sorted array");492 },493 "Testing axis-base": function(data) {494 var loader = new Y.Loader({495 require: ["axis-base"],496 ignoreRegistered: true,497 allowRollup: false498 });499 loader.calculate();500 //Testing A normal module501 Assert.isTrue((loader.sorted.indexOf("axis-base")) > -1, "Module (axis-base) not found in sorted array");502 },503 "Testing axis-category": function(data) {504 var loader = new Y.Loader({505 require: ["axis-category"],506 ignoreRegistered: true,507 allowRollup: false508 });509 loader.calculate();510 //Testing A normal module511 Assert.isTrue((loader.sorted.indexOf("axis-category")) > -1, "Module (axis-category) not found in sorted array");512 },513 "Testing axis-category-base": function(data) {514 var loader = new Y.Loader({515 require: ["axis-category-base"],516 ignoreRegistered: true,517 allowRollup: false518 });519 loader.calculate();520 //Testing A normal module521 Assert.isTrue((loader.sorted.indexOf("axis-category-base")) > -1, "Module (axis-category-base) not found in sorted array");522 },523 "Testing axis-numeric": function(data) {524 var loader = new Y.Loader({525 require: ["axis-numeric"],526 ignoreRegistered: true,527 allowRollup: false528 });529 loader.calculate();530 //Testing A normal module531 Assert.isTrue((loader.sorted.indexOf("axis-numeric")) > -1, "Module (axis-numeric) not found in sorted array");532 },533 "Testing axis-numeric-base": function(data) {534 var loader = new Y.Loader({535 require: ["axis-numeric-base"],536 ignoreRegistered: true,537 allowRollup: false538 });539 loader.calculate();540 //Testing A normal module541 Assert.isTrue((loader.sorted.indexOf("axis-numeric-base")) > -1, "Module (axis-numeric-base) not found in sorted array");542 },543 "Testing axis-stacked": function(data) {544 var loader = new Y.Loader({545 require: ["axis-stacked"],546 ignoreRegistered: true,547 allowRollup: false548 });549 loader.calculate();550 //Testing A normal module551 Assert.isTrue((loader.sorted.indexOf("axis-stacked")) > -1, "Module (axis-stacked) not found in sorted array");552 },553 "Testing axis-stacked-base": function(data) {554 var loader = new Y.Loader({555 require: ["axis-stacked-base"],556 ignoreRegistered: true,557 allowRollup: false558 });559 loader.calculate();560 //Testing A normal module561 Assert.isTrue((loader.sorted.indexOf("axis-stacked-base")) > -1, "Module (axis-stacked-base) not found in sorted array");562 },563 "Testing axis-time": function(data) {564 var loader = new Y.Loader({565 require: ["axis-time"],566 ignoreRegistered: true,567 allowRollup: false568 });569 loader.calculate();570 //Testing A normal module571 Assert.isTrue((loader.sorted.indexOf("axis-time")) > -1, "Module (axis-time) not found in sorted array");572 },573 "Testing axis-time-base": function(data) {574 var loader = new Y.Loader({575 require: ["axis-time-base"],576 ignoreRegistered: true,577 allowRollup: false578 });579 loader.calculate();580 //Testing A normal module581 Assert.isTrue((loader.sorted.indexOf("axis-time-base")) > -1, "Module (axis-time-base) not found in sorted array");582 },583 "Testing base": function(data) {584 var loader = new Y.Loader({585 require: ["base"],586 ignoreRegistered: true,587 allowRollup: false588 });589 loader.calculate();590 //Testing A rollup module591 Assert.isTrue((loader.sorted.indexOf("base-base")) > -1, "Module (base-base) not found in sorted array");592 Assert.isTrue((loader.sorted.indexOf("base-pluginhost")) > -1, "Module (base-pluginhost) not found in sorted array");593 Assert.isTrue((loader.sorted.indexOf("base-build")) > -1, "Module (base-build) not found in sorted array");594 },595 "Testing base-base": function(data) {596 var loader = new Y.Loader({597 require: ["base-base"],598 ignoreRegistered: true,599 allowRollup: false600 });601 loader.calculate();602 //Testing A normal module603 Assert.isTrue((loader.sorted.indexOf("base-base")) > -1, "Module (base-base) not found in sorted array");604 },605 "Testing base-build": function(data) {606 var loader = new Y.Loader({607 require: ["base-build"],608 ignoreRegistered: true,609 allowRollup: false610 });611 loader.calculate();612 //Testing A normal module613 Assert.isTrue((loader.sorted.indexOf("base-build")) > -1, "Module (base-build) not found in sorted array");614 },615 "Testing base-core": function(data) {616 var loader = new Y.Loader({617 require: ["base-core"],618 ignoreRegistered: true,619 allowRollup: false620 });621 loader.calculate();622 //Testing A normal module623 Assert.isTrue((loader.sorted.indexOf("base-core")) > -1, "Module (base-core) not found in sorted array");624 },625 "Testing base-observable": function(data) {626 var loader = new Y.Loader({627 require: ["base-observable"],628 ignoreRegistered: true,629 allowRollup: false630 });631 loader.calculate();632 //Testing A normal module633 Assert.isTrue((loader.sorted.indexOf("base-observable")) > -1, "Module (base-observable) not found in sorted array");634 },635 "Testing base-pluginhost": function(data) {636 var loader = new Y.Loader({637 require: ["base-pluginhost"],638 ignoreRegistered: true,639 allowRollup: false640 });641 loader.calculate();642 //Testing A normal module643 Assert.isTrue((loader.sorted.indexOf("base-pluginhost")) > -1, "Module (base-pluginhost) not found in sorted array");644 },645 "Testing button": function(data) {646 var loader = new Y.Loader({647 require: ["button"],648 ignoreRegistered: true,649 allowRollup: false650 });651 loader.calculate();652 //Testing A normal module653 Assert.isTrue((loader.sorted.indexOf("button")) > -1, "Module (button) not found in sorted array");654 },655 "Testing button-core": function(data) {656 var loader = new Y.Loader({657 require: ["button-core"],658 ignoreRegistered: true,659 allowRollup: false660 });661 loader.calculate();662 //Testing A normal module663 Assert.isTrue((loader.sorted.indexOf("button-core")) > -1, "Module (button-core) not found in sorted array");664 },665 "Testing button-group": function(data) {666 var loader = new Y.Loader({667 require: ["button-group"],668 ignoreRegistered: true,669 allowRollup: false670 });671 loader.calculate();672 //Testing A normal module673 Assert.isTrue((loader.sorted.indexOf("button-group")) > -1, "Module (button-group) not found in sorted array");674 },675 "Testing button-plugin": function(data) {676 var loader = new Y.Loader({677 require: ["button-plugin"],678 ignoreRegistered: true,679 allowRollup: false680 });681 loader.calculate();682 //Testing A normal module683 Assert.isTrue((loader.sorted.indexOf("button-plugin")) > -1, "Module (button-plugin) not found in sorted array");684 },685 "Testing cache": function(data) {686 var loader = new Y.Loader({687 require: ["cache"],688 ignoreRegistered: true,689 allowRollup: false690 });691 loader.calculate();692 //Testing A rollup module693 Assert.isTrue((loader.sorted.indexOf("cache-base")) > -1, "Module (cache-base) not found in sorted array");694 Assert.isTrue((loader.sorted.indexOf("cache-offline")) > -1, "Module (cache-offline) not found in sorted array");695 Assert.isTrue((loader.sorted.indexOf("cache-plugin")) > -1, "Module (cache-plugin) not found in sorted array");696 },697 "Testing cache-base": function(data) {698 var loader = new Y.Loader({699 require: ["cache-base"],700 ignoreRegistered: true,701 allowRollup: false702 });703 loader.calculate();704 //Testing A normal module705 Assert.isTrue((loader.sorted.indexOf("cache-base")) > -1, "Module (cache-base) not found in sorted array");706 },707 "Testing cache-offline": function(data) {708 var loader = new Y.Loader({709 require: ["cache-offline"],710 ignoreRegistered: true,711 allowRollup: false712 });713 loader.calculate();714 //Testing A normal module715 Assert.isTrue((loader.sorted.indexOf("cache-offline")) > -1, "Module (cache-offline) not found in sorted array");716 },717 "Testing cache-plugin": function(data) {718 var loader = new Y.Loader({719 require: ["cache-plugin"],720 ignoreRegistered: true,721 allowRollup: false722 });723 loader.calculate();724 //Testing A normal module725 Assert.isTrue((loader.sorted.indexOf("cache-plugin")) > -1, "Module (cache-plugin) not found in sorted array");726 },727 "Testing calendar": function(data) {728 var loader = new Y.Loader({729 require: ["calendar"],730 ignoreRegistered: true,731 allowRollup: false732 });733 loader.calculate();734 //Testing A normal module735 Assert.isTrue((loader.sorted.indexOf("calendar")) > -1, "Module (calendar) not found in sorted array");736 },737 "Testing calendar-base": function(data) {738 var loader = new Y.Loader({739 require: ["calendar-base"],740 ignoreRegistered: true,741 allowRollup: false742 });743 loader.calculate();744 //Testing A normal module745 Assert.isTrue((loader.sorted.indexOf("calendar-base")) > -1, "Module (calendar-base) not found in sorted array");746 },747 "Testing calendarnavigator": function(data) {748 var loader = new Y.Loader({749 require: ["calendarnavigator"],750 ignoreRegistered: true,751 allowRollup: false752 });753 loader.calculate();754 //Testing A normal module755 Assert.isTrue((loader.sorted.indexOf("calendarnavigator")) > -1, "Module (calendarnavigator) not found in sorted array");756 },757 "Testing charts": function(data) {758 var loader = new Y.Loader({759 require: ["charts"],760 ignoreRegistered: true,761 allowRollup: false762 });763 loader.calculate();764 //Testing A rollup module765 Assert.isTrue((loader.sorted.indexOf("charts-base")) > -1, "Module (charts-base) not found in sorted array");766 },767 "Testing charts-base": function(data) {768 var loader = new Y.Loader({769 require: ["charts-base"],770 ignoreRegistered: true,771 allowRollup: false772 });773 loader.calculate();774 //Testing A normal module775 Assert.isTrue((loader.sorted.indexOf("charts-base")) > -1, "Module (charts-base) not found in sorted array");776 },777 "Testing charts-legend": function(data) {778 var loader = new Y.Loader({779 require: ["charts-legend"],780 ignoreRegistered: true,781 allowRollup: false782 });783 loader.calculate();784 //Testing A normal module785 Assert.isTrue((loader.sorted.indexOf("charts-legend")) > -1, "Module (charts-legend) not found in sorted array");786 },787 "Testing classnamemanager": function(data) {788 var loader = new Y.Loader({789 require: ["classnamemanager"],790 ignoreRegistered: true,791 allowRollup: false792 });793 loader.calculate();794 //Testing A normal module795 Assert.isTrue((loader.sorted.indexOf("classnamemanager")) > -1, "Module (classnamemanager) not found in sorted array");796 },797 "Testing clickable-rail": function(data) {798 var loader = new Y.Loader({799 require: ["clickable-rail"],800 ignoreRegistered: true,801 allowRollup: false802 });803 loader.calculate();804 //Testing A normal module805 Assert.isTrue((loader.sorted.indexOf("clickable-rail")) > -1, "Module (clickable-rail) not found in sorted array");806 },807 "Testing collection": function(data) {808 var loader = new Y.Loader({809 require: ["collection"],810 ignoreRegistered: true,811 allowRollup: false812 });813 loader.calculate();814 //Testing A rollup module815 Assert.isTrue((loader.sorted.indexOf("array-extras")) > -1, "Module (array-extras) not found in sorted array");816 Assert.isTrue((loader.sorted.indexOf("arraylist")) > -1, "Module (arraylist) not found in sorted array");817 Assert.isTrue((loader.sorted.indexOf("arraylist-add")) > -1, "Module (arraylist-add) not found in sorted array");818 Assert.isTrue((loader.sorted.indexOf("arraylist-filter")) > -1, "Module (arraylist-filter) not found in sorted array");819 Assert.isTrue((loader.sorted.indexOf("array-invoke")) > -1, "Module (array-invoke) not found in sorted array");820 },821 "Testing color": function(data) {822 var loader = new Y.Loader({823 require: ["color"],824 ignoreRegistered: true,825 allowRollup: false826 });827 loader.calculate();828 //Testing A rollup module829 Assert.isTrue((loader.sorted.indexOf("color-base")) > -1, "Module (color-base) not found in sorted array");830 Assert.isTrue((loader.sorted.indexOf("color-hsl")) > -1, "Module (color-hsl) not found in sorted array");831 Assert.isTrue((loader.sorted.indexOf("color-harmony")) > -1, "Module (color-harmony) not found in sorted array");832 },833 "Testing color-base": function(data) {834 var loader = new Y.Loader({835 require: ["color-base"],836 ignoreRegistered: true,837 allowRollup: false838 });839 loader.calculate();840 //Testing A normal module841 Assert.isTrue((loader.sorted.indexOf("color-base")) > -1, "Module (color-base) not found in sorted array");842 },843 "Testing color-harmony": function(data) {844 var loader = new Y.Loader({845 require: ["color-harmony"],846 ignoreRegistered: true,847 allowRollup: false848 });849 loader.calculate();850 //Testing A normal module851 Assert.isTrue((loader.sorted.indexOf("color-harmony")) > -1, "Module (color-harmony) not found in sorted array");852 },853 "Testing color-hsl": function(data) {854 var loader = new Y.Loader({855 require: ["color-hsl"],856 ignoreRegistered: true,857 allowRollup: false858 });859 loader.calculate();860 //Testing A normal module861 Assert.isTrue((loader.sorted.indexOf("color-hsl")) > -1, "Module (color-hsl) not found in sorted array");862 },863 "Testing color-hsv": function(data) {864 var loader = new Y.Loader({865 require: ["color-hsv"],866 ignoreRegistered: true,867 allowRollup: false868 });869 loader.calculate();870 //Testing A normal module871 Assert.isTrue((loader.sorted.indexOf("color-hsv")) > -1, "Module (color-hsv) not found in sorted array");872 },873 "Testing console": function(data) {874 var loader = new Y.Loader({875 require: ["console"],876 ignoreRegistered: true,877 allowRollup: false878 });879 loader.calculate();880 //Testing A normal module881 Assert.isTrue((loader.sorted.indexOf("console")) > -1, "Module (console) not found in sorted array");882 },883 "Testing console-filters": function(data) {884 var loader = new Y.Loader({885 require: ["console-filters"],886 ignoreRegistered: true,887 allowRollup: false888 });889 loader.calculate();890 //Testing A normal module891 Assert.isTrue((loader.sorted.indexOf("console-filters")) > -1, "Module (console-filters) not found in sorted array");892 },893 "Testing content-editable": function(data) {894 var loader = new Y.Loader({895 require: ["content-editable"],896 ignoreRegistered: true,897 allowRollup: false898 });899 loader.calculate();900 //Testing A normal module901 Assert.isTrue((loader.sorted.indexOf("content-editable")) > -1, "Module (content-editable) not found in sorted array");902 },903 "Testing controller": function(data) {904 var loader = new Y.Loader({905 require: ["controller"],906 ignoreRegistered: true,907 allowRollup: false908 });909 loader.calculate();910 //Testing A rollup module911 Assert.isTrue((loader.sorted.indexOf("router")) > -1, "Module (router) not found in sorted array");912 },913 "Testing cookie": function(data) {914 var loader = new Y.Loader({915 require: ["cookie"],916 ignoreRegistered: true,917 allowRollup: false918 });919 loader.calculate();920 //Testing A normal module921 Assert.isTrue((loader.sorted.indexOf("cookie")) > -1, "Module (cookie) not found in sorted array");922 },923 "Testing createlink-base": function(data) {924 var loader = new Y.Loader({925 require: ["createlink-base"],926 ignoreRegistered: true,927 allowRollup: false928 });929 loader.calculate();930 //Testing A normal module931 Assert.isTrue((loader.sorted.indexOf("createlink-base")) > -1, "Module (createlink-base) not found in sorted array");932 },933 "Testing dataschema": function(data) {934 var loader = new Y.Loader({935 require: ["dataschema"],936 ignoreRegistered: true,937 allowRollup: false938 });939 loader.calculate();940 //Testing A rollup module941 Assert.isTrue((loader.sorted.indexOf("dataschema-base")) > -1, "Module (dataschema-base) not found in sorted array");942 Assert.isTrue((loader.sorted.indexOf("dataschema-json")) > -1, "Module (dataschema-json) not found in sorted array");943 Assert.isTrue((loader.sorted.indexOf("dataschema-xml")) > -1, "Module (dataschema-xml) not found in sorted array");944 Assert.isTrue((loader.sorted.indexOf("dataschema-array")) > -1, "Module (dataschema-array) not found in sorted array");945 Assert.isTrue((loader.sorted.indexOf("dataschema-text")) > -1, "Module (dataschema-text) not found in sorted array");946 },947 "Testing dataschema-array": function(data) {948 var loader = new Y.Loader({949 require: ["dataschema-array"],950 ignoreRegistered: true,951 allowRollup: false952 });953 loader.calculate();954 //Testing A normal module955 Assert.isTrue((loader.sorted.indexOf("dataschema-array")) > -1, "Module (dataschema-array) not found in sorted array");956 },957 "Testing dataschema-base": function(data) {958 var loader = new Y.Loader({959 require: ["dataschema-base"],960 ignoreRegistered: true,961 allowRollup: false962 });963 loader.calculate();964 //Testing A normal module965 Assert.isTrue((loader.sorted.indexOf("dataschema-base")) > -1, "Module (dataschema-base) not found in sorted array");966 },967 "Testing dataschema-json": function(data) {968 var loader = new Y.Loader({969 require: ["dataschema-json"],970 ignoreRegistered: true,971 allowRollup: false972 });973 loader.calculate();974 //Testing A normal module975 Assert.isTrue((loader.sorted.indexOf("dataschema-json")) > -1, "Module (dataschema-json) not found in sorted array");976 },977 "Testing dataschema-text": function(data) {978 var loader = new Y.Loader({979 require: ["dataschema-text"],980 ignoreRegistered: true,981 allowRollup: false982 });983 loader.calculate();984 //Testing A normal module985 Assert.isTrue((loader.sorted.indexOf("dataschema-text")) > -1, "Module (dataschema-text) not found in sorted array");986 },987 "Testing dataschema-xml": function(data) {988 var loader = new Y.Loader({989 require: ["dataschema-xml"],990 ignoreRegistered: true,991 allowRollup: false992 });993 loader.calculate();994 //Testing A normal module995 Assert.isTrue((loader.sorted.indexOf("dataschema-xml")) > -1, "Module (dataschema-xml) not found in sorted array");996 },997 "Testing datasource": function(data) {998 var loader = new Y.Loader({999 require: ["datasource"],1000 ignoreRegistered: true,1001 allowRollup: false1002 });1003 loader.calculate();1004 //Testing A rollup module1005 Assert.isTrue((loader.sorted.indexOf("datasource-local")) > -1, "Module (datasource-local) not found in sorted array");1006 Assert.isTrue((loader.sorted.indexOf("datasource-io")) > -1, "Module (datasource-io) not found in sorted array");1007 Assert.isTrue((loader.sorted.indexOf("datasource-get")) > -1, "Module (datasource-get) not found in sorted array");1008 Assert.isTrue((loader.sorted.indexOf("datasource-function")) > -1, "Module (datasource-function) not found in sorted array");1009 Assert.isTrue((loader.sorted.indexOf("datasource-cache")) > -1, "Module (datasource-cache) not found in sorted array");1010 Assert.isTrue((loader.sorted.indexOf("datasource-jsonschema")) > -1, "Module (datasource-jsonschema) not found in sorted array");1011 Assert.isTrue((loader.sorted.indexOf("datasource-xmlschema")) > -1, "Module (datasource-xmlschema) not found in sorted array");1012 Assert.isTrue((loader.sorted.indexOf("datasource-arrayschema")) > -1, "Module (datasource-arrayschema) not found in sorted array");1013 Assert.isTrue((loader.sorted.indexOf("datasource-textschema")) > -1, "Module (datasource-textschema) not found in sorted array");1014 Assert.isTrue((loader.sorted.indexOf("datasource-polling")) > -1, "Module (datasource-polling) not found in sorted array");1015 },1016 "Testing datasource-arrayschema": function(data) {1017 var loader = new Y.Loader({1018 require: ["datasource-arrayschema"],1019 ignoreRegistered: true,1020 allowRollup: false1021 });1022 loader.calculate();1023 //Testing A normal module1024 Assert.isTrue((loader.sorted.indexOf("datasource-arrayschema")) > -1, "Module (datasource-arrayschema) not found in sorted array");1025 },1026 "Testing datasource-cache": function(data) {1027 var loader = new Y.Loader({1028 require: ["datasource-cache"],1029 ignoreRegistered: true,1030 allowRollup: false1031 });1032 loader.calculate();1033 //Testing A normal module1034 Assert.isTrue((loader.sorted.indexOf("datasource-cache")) > -1, "Module (datasource-cache) not found in sorted array");1035 },1036 "Testing datasource-function": function(data) {1037 var loader = new Y.Loader({1038 require: ["datasource-function"],1039 ignoreRegistered: true,1040 allowRollup: false1041 });1042 loader.calculate();1043 //Testing A normal module1044 Assert.isTrue((loader.sorted.indexOf("datasource-function")) > -1, "Module (datasource-function) not found in sorted array");1045 },1046 "Testing datasource-get": function(data) {1047 var loader = new Y.Loader({1048 require: ["datasource-get"],1049 ignoreRegistered: true,1050 allowRollup: false1051 });1052 loader.calculate();1053 //Testing A normal module1054 Assert.isTrue((loader.sorted.indexOf("datasource-get")) > -1, "Module (datasource-get) not found in sorted array");1055 },1056 "Testing datasource-io": function(data) {1057 var loader = new Y.Loader({1058 require: ["datasource-io"],1059 ignoreRegistered: true,1060 allowRollup: false1061 });1062 loader.calculate();1063 //Testing A normal module1064 Assert.isTrue((loader.sorted.indexOf("datasource-io")) > -1, "Module (datasource-io) not found in sorted array");1065 },1066 "Testing datasource-jsonschema": function(data) {1067 var loader = new Y.Loader({1068 require: ["datasource-jsonschema"],1069 ignoreRegistered: true,1070 allowRollup: false1071 });1072 loader.calculate();1073 //Testing A normal module1074 Assert.isTrue((loader.sorted.indexOf("datasource-jsonschema")) > -1, "Module (datasource-jsonschema) not found in sorted array");1075 },1076 "Testing datasource-local": function(data) {1077 var loader = new Y.Loader({1078 require: ["datasource-local"],1079 ignoreRegistered: true,1080 allowRollup: false1081 });1082 loader.calculate();1083 //Testing A normal module1084 Assert.isTrue((loader.sorted.indexOf("datasource-local")) > -1, "Module (datasource-local) not found in sorted array");1085 },1086 "Testing datasource-polling": function(data) {1087 var loader = new Y.Loader({1088 require: ["datasource-polling"],1089 ignoreRegistered: true,1090 allowRollup: false1091 });1092 loader.calculate();1093 //Testing A normal module1094 Assert.isTrue((loader.sorted.indexOf("datasource-polling")) > -1, "Module (datasource-polling) not found in sorted array");1095 },1096 "Testing datasource-textschema": function(data) {1097 var loader = new Y.Loader({1098 require: ["datasource-textschema"],1099 ignoreRegistered: true,1100 allowRollup: false1101 });1102 loader.calculate();1103 //Testing A normal module1104 Assert.isTrue((loader.sorted.indexOf("datasource-textschema")) > -1, "Module (datasource-textschema) not found in sorted array");1105 },1106 "Testing datasource-xmlschema": function(data) {1107 var loader = new Y.Loader({1108 require: ["datasource-xmlschema"],1109 ignoreRegistered: true,1110 allowRollup: false1111 });1112 loader.calculate();1113 //Testing A normal module1114 Assert.isTrue((loader.sorted.indexOf("datasource-xmlschema")) > -1, "Module (datasource-xmlschema) not found in sorted array");1115 },1116 "Testing datatable": function(data) {1117 var loader = new Y.Loader({1118 require: ["datatable"],1119 ignoreRegistered: true,1120 allowRollup: false1121 });1122 loader.calculate();1123 //Testing A rollup module1124 Assert.isTrue((loader.sorted.indexOf("datatable-core")) > -1, "Module (datatable-core) not found in sorted array");1125 Assert.isTrue((loader.sorted.indexOf("datatable-table")) > -1, "Module (datatable-table) not found in sorted array");1126 Assert.isTrue((loader.sorted.indexOf("datatable-head")) > -1, "Module (datatable-head) not found in sorted array");1127 Assert.isTrue((loader.sorted.indexOf("datatable-body")) > -1, "Module (datatable-body) not found in sorted array");1128 Assert.isTrue((loader.sorted.indexOf("datatable-base")) > -1, "Module (datatable-base) not found in sorted array");1129 Assert.isTrue((loader.sorted.indexOf("datatable-column-widths")) > -1, "Module (datatable-column-widths) not found in sorted array");1130 Assert.isTrue((loader.sorted.indexOf("datatable-message")) > -1, "Module (datatable-message) not found in sorted array");1131 Assert.isTrue((loader.sorted.indexOf("datatable-mutable")) > -1, "Module (datatable-mutable) not found in sorted array");1132 Assert.isTrue((loader.sorted.indexOf("datatable-sort")) > -1, "Module (datatable-sort) not found in sorted array");1133 Assert.isTrue((loader.sorted.indexOf("datatable-datasource")) > -1, "Module (datatable-datasource) not found in sorted array");1134 },1135 "Testing datatable-base": function(data) {1136 var loader = new Y.Loader({1137 require: ["datatable-base"],1138 ignoreRegistered: true,1139 allowRollup: false1140 });1141 loader.calculate();1142 //Testing A normal module1143 Assert.isTrue((loader.sorted.indexOf("datatable-base")) > -1, "Module (datatable-base) not found in sorted array");1144 },1145 "Testing datatable-body": function(data) {1146 var loader = new Y.Loader({1147 require: ["datatable-body"],1148 ignoreRegistered: true,1149 allowRollup: false1150 });1151 loader.calculate();1152 //Testing A normal module1153 Assert.isTrue((loader.sorted.indexOf("datatable-body")) > -1, "Module (datatable-body) not found in sorted array");1154 },1155 "Testing datatable-column-widths": function(data) {1156 var loader = new Y.Loader({1157 require: ["datatable-column-widths"],1158 ignoreRegistered: true,1159 allowRollup: false1160 });1161 loader.calculate();1162 //Testing A normal module1163 Assert.isTrue((loader.sorted.indexOf("datatable-column-widths")) > -1, "Module (datatable-column-widths) not found in sorted array");1164 },1165 "Testing datatable-core": function(data) {1166 var loader = new Y.Loader({1167 require: ["datatable-core"],1168 ignoreRegistered: true,1169 allowRollup: false1170 });1171 loader.calculate();1172 //Testing A normal module1173 Assert.isTrue((loader.sorted.indexOf("datatable-core")) > -1, "Module (datatable-core) not found in sorted array");1174 },1175 "Testing datatable-datasource": function(data) {1176 var loader = new Y.Loader({1177 require: ["datatable-datasource"],1178 ignoreRegistered: true,1179 allowRollup: false1180 });1181 loader.calculate();1182 //Testing A normal module1183 Assert.isTrue((loader.sorted.indexOf("datatable-datasource")) > -1, "Module (datatable-datasource) not found in sorted array");1184 },1185 "Testing datatable-foot": function(data) {1186 var loader = new Y.Loader({1187 require: ["datatable-foot"],1188 ignoreRegistered: true,1189 allowRollup: false1190 });1191 loader.calculate();1192 //Testing A normal module1193 Assert.isTrue((loader.sorted.indexOf("datatable-foot")) > -1, "Module (datatable-foot) not found in sorted array");1194 },1195 "Testing datatable-formatters": function(data) {1196 var loader = new Y.Loader({1197 require: ["datatable-formatters"],1198 ignoreRegistered: true,1199 allowRollup: false1200 });1201 loader.calculate();1202 //Testing A normal module1203 Assert.isTrue((loader.sorted.indexOf("datatable-formatters")) > -1, "Module (datatable-formatters) not found in sorted array");1204 },1205 "Testing datatable-head": function(data) {1206 var loader = new Y.Loader({1207 require: ["datatable-head"],1208 ignoreRegistered: true,1209 allowRollup: false1210 });1211 loader.calculate();1212 //Testing A normal module1213 Assert.isTrue((loader.sorted.indexOf("datatable-head")) > -1, "Module (datatable-head) not found in sorted array");1214 },1215 "Testing datatable-highlight": function(data) {1216 var loader = new Y.Loader({1217 require: ["datatable-highlight"],1218 ignoreRegistered: true,1219 allowRollup: false1220 });1221 loader.calculate();1222 //Testing A normal module1223 Assert.isTrue((loader.sorted.indexOf("datatable-highlight")) > -1, "Module (datatable-highlight) not found in sorted array");1224 },1225 "Testing datatable-keynav": function(data) {1226 var loader = new Y.Loader({1227 require: ["datatable-keynav"],1228 ignoreRegistered: true,1229 allowRollup: false1230 });1231 loader.calculate();1232 //Testing A normal module1233 Assert.isTrue((loader.sorted.indexOf("datatable-keynav")) > -1, "Module (datatable-keynav) not found in sorted array");1234 },1235 "Testing datatable-message": function(data) {1236 var loader = new Y.Loader({1237 require: ["datatable-message"],1238 ignoreRegistered: true,1239 allowRollup: false1240 });1241 loader.calculate();1242 //Testing A normal module1243 Assert.isTrue((loader.sorted.indexOf("datatable-message")) > -1, "Module (datatable-message) not found in sorted array");1244 },1245 "Testing datatable-mutable": function(data) {1246 var loader = new Y.Loader({1247 require: ["datatable-mutable"],1248 ignoreRegistered: true,1249 allowRollup: false1250 });1251 loader.calculate();1252 //Testing A normal module1253 Assert.isTrue((loader.sorted.indexOf("datatable-mutable")) > -1, "Module (datatable-mutable) not found in sorted array");1254 },1255 "Testing datatable-paginator": function(data) {1256 var loader = new Y.Loader({1257 require: ["datatable-paginator"],1258 ignoreRegistered: true,1259 allowRollup: false1260 });1261 loader.calculate();1262 //Testing A normal module1263 Assert.isTrue((loader.sorted.indexOf("datatable-paginator")) > -1, "Module (datatable-paginator) not found in sorted array");1264 },1265 "Testing datatable-paginator-templates": function(data) {1266 var loader = new Y.Loader({1267 require: ["datatable-paginator-templates"],1268 ignoreRegistered: true,1269 allowRollup: false1270 });1271 loader.calculate();1272 //Testing A normal module1273 Assert.isTrue((loader.sorted.indexOf("datatable-paginator-templates")) > -1, "Module (datatable-paginator-templates) not found in sorted array");1274 },1275 "Testing datatable-scroll": function(data) {1276 var loader = new Y.Loader({1277 require: ["datatable-scroll"],1278 ignoreRegistered: true,1279 allowRollup: false1280 });1281 loader.calculate();1282 //Testing A normal module1283 Assert.isTrue((loader.sorted.indexOf("datatable-scroll")) > -1, "Module (datatable-scroll) not found in sorted array");1284 },1285 "Testing datatable-sort": function(data) {1286 var loader = new Y.Loader({1287 require: ["datatable-sort"],1288 ignoreRegistered: true,1289 allowRollup: false1290 });1291 loader.calculate();1292 //Testing A normal module1293 Assert.isTrue((loader.sorted.indexOf("datatable-sort")) > -1, "Module (datatable-sort) not found in sorted array");1294 },1295 "Testing datatable-table": function(data) {1296 var loader = new Y.Loader({1297 require: ["datatable-table"],1298 ignoreRegistered: true,1299 allowRollup: false1300 });1301 loader.calculate();1302 //Testing A normal module1303 Assert.isTrue((loader.sorted.indexOf("datatable-table")) > -1, "Module (datatable-table) not found in sorted array");1304 },1305 "Testing datatype": function(data) {1306 var loader = new Y.Loader({1307 require: ["datatype"],1308 ignoreRegistered: true,1309 allowRollup: false1310 });1311 loader.calculate();1312 //Testing A rollup module1313 //Testing A rollup of a rollup module ( datatype )1314 Assert.isTrue((loader.sorted.indexOf("datatype-date-parse")) > -1, "Module (datatype-date-parse) not found in sorted array");1315 Assert.isTrue((loader.sorted.indexOf("datatype-date-format")) > -1, "Module (datatype-date-format) not found in sorted array");1316 Assert.isTrue((loader.sorted.indexOf("datatype-date-math")) > -1, "Module (datatype-date-math) not found in sorted array");1317 //Testing A rollup of a rollup module ( datatype )1318 Assert.isTrue((loader.sorted.indexOf("datatype-number-parse")) > -1, "Module (datatype-number-parse) not found in sorted array");1319 Assert.isTrue((loader.sorted.indexOf("datatype-number-format")) > -1, "Module (datatype-number-format) not found in sorted array");1320 //Testing A rollup of a rollup module ( datatype )1321 Assert.isTrue((loader.sorted.indexOf("datatype-xml-parse")) > -1, "Module (datatype-xml-parse) not found in sorted array");1322 Assert.isTrue((loader.sorted.indexOf("datatype-xml-format")) > -1, "Module (datatype-xml-format) not found in sorted array");1323 },1324 "Testing datatype-date": function(data) {1325 var loader = new Y.Loader({1326 require: ["datatype-date"],1327 ignoreRegistered: true,1328 allowRollup: false1329 });1330 loader.calculate();1331 //Testing A rollup module1332 Assert.isTrue((loader.sorted.indexOf("datatype-date-parse")) > -1, "Module (datatype-date-parse) not found in sorted array");1333 Assert.isTrue((loader.sorted.indexOf("datatype-date-format")) > -1, "Module (datatype-date-format) not found in sorted array");1334 Assert.isTrue((loader.sorted.indexOf("datatype-date-math")) > -1, "Module (datatype-date-math) not found in sorted array");1335 },1336 "Testing datatype-date-format": function(data) {1337 var loader = new Y.Loader({1338 require: ["datatype-date-format"],1339 ignoreRegistered: true,1340 allowRollup: false1341 });1342 loader.calculate();1343 //Testing A normal module1344 Assert.isTrue((loader.sorted.indexOf("datatype-date-format")) > -1, "Module (datatype-date-format) not found in sorted array");1345 },1346 "Testing datatype-date-math": function(data) {1347 var loader = new Y.Loader({1348 require: ["datatype-date-math"],1349 ignoreRegistered: true,1350 allowRollup: false1351 });1352 loader.calculate();1353 //Testing A normal module1354 Assert.isTrue((loader.sorted.indexOf("datatype-date-math")) > -1, "Module (datatype-date-math) not found in sorted array");1355 },1356 "Testing datatype-date-parse": function(data) {1357 var loader = new Y.Loader({1358 require: ["datatype-date-parse"],1359 ignoreRegistered: true,1360 allowRollup: false1361 });1362 loader.calculate();1363 //Testing A normal module1364 Assert.isTrue((loader.sorted.indexOf("datatype-date-parse")) > -1, "Module (datatype-date-parse) not found in sorted array");1365 },1366 "Testing datatype-number": function(data) {1367 var loader = new Y.Loader({1368 require: ["datatype-number"],1369 ignoreRegistered: true,1370 allowRollup: false1371 });1372 loader.calculate();1373 //Testing A rollup module1374 Assert.isTrue((loader.sorted.indexOf("datatype-number-parse")) > -1, "Module (datatype-number-parse) not found in sorted array");1375 Assert.isTrue((loader.sorted.indexOf("datatype-number-format")) > -1, "Module (datatype-number-format) not found in sorted array");1376 },1377 "Testing datatype-number-format": function(data) {1378 var loader = new Y.Loader({1379 require: ["datatype-number-format"],1380 ignoreRegistered: true,1381 allowRollup: false1382 });1383 loader.calculate();1384 //Testing A normal module1385 Assert.isTrue((loader.sorted.indexOf("datatype-number-format")) > -1, "Module (datatype-number-format) not found in sorted array");1386 },1387 "Testing datatype-number-parse": function(data) {1388 var loader = new Y.Loader({1389 require: ["datatype-number-parse"],1390 ignoreRegistered: true,1391 allowRollup: false1392 });1393 loader.calculate();1394 //Testing A normal module1395 Assert.isTrue((loader.sorted.indexOf("datatype-number-parse")) > -1, "Module (datatype-number-parse) not found in sorted array");1396 },1397 "Testing datatype-xml": function(data) {1398 var loader = new Y.Loader({1399 require: ["datatype-xml"],1400 ignoreRegistered: true,1401 allowRollup: false1402 });1403 loader.calculate();1404 //Testing A rollup module1405 Assert.isTrue((loader.sorted.indexOf("datatype-xml-parse")) > -1, "Module (datatype-xml-parse) not found in sorted array");1406 Assert.isTrue((loader.sorted.indexOf("datatype-xml-format")) > -1, "Module (datatype-xml-format) not found in sorted array");1407 },1408 "Testing datatype-xml-format": function(data) {1409 var loader = new Y.Loader({1410 require: ["datatype-xml-format"],1411 ignoreRegistered: true,1412 allowRollup: false1413 });1414 loader.calculate();1415 //Testing A normal module1416 Assert.isTrue((loader.sorted.indexOf("datatype-xml-format")) > -1, "Module (datatype-xml-format) not found in sorted array");1417 },1418 "Testing datatype-xml-parse": function(data) {1419 var loader = new Y.Loader({1420 require: ["datatype-xml-parse"],1421 ignoreRegistered: true,1422 allowRollup: false1423 });1424 loader.calculate();1425 //Testing A normal module1426 Assert.isTrue((loader.sorted.indexOf("datatype-xml-parse")) > -1, "Module (datatype-xml-parse) not found in sorted array");1427 },1428 "Testing dd": function(data) {1429 var loader = new Y.Loader({1430 require: ["dd"],1431 ignoreRegistered: true,1432 allowRollup: false1433 });1434 loader.calculate();1435 //Testing A rollup module1436 Assert.isTrue((loader.sorted.indexOf("dd-ddm-base")) > -1, "Module (dd-ddm-base) not found in sorted array");1437 Assert.isTrue((loader.sorted.indexOf("dd-ddm")) > -1, "Module (dd-ddm) not found in sorted array");1438 Assert.isTrue((loader.sorted.indexOf("dd-ddm-drop")) > -1, "Module (dd-ddm-drop) not found in sorted array");1439 Assert.isTrue((loader.sorted.indexOf("dd-drag")) > -1, "Module (dd-drag) not found in sorted array");1440 Assert.isTrue((loader.sorted.indexOf("dd-proxy")) > -1, "Module (dd-proxy) not found in sorted array");1441 Assert.isTrue((loader.sorted.indexOf("dd-constrain")) > -1, "Module (dd-constrain) not found in sorted array");1442 Assert.isTrue((loader.sorted.indexOf("dd-drop")) > -1, "Module (dd-drop) not found in sorted array");1443 Assert.isTrue((loader.sorted.indexOf("dd-scroll")) > -1, "Module (dd-scroll) not found in sorted array");1444 Assert.isTrue((loader.sorted.indexOf("dd-delegate")) > -1, "Module (dd-delegate) not found in sorted array");1445 },1446 "Testing dd-constrain": function(data) {1447 var loader = new Y.Loader({1448 require: ["dd-constrain"],1449 ignoreRegistered: true,1450 allowRollup: false1451 });1452 loader.calculate();1453 //Testing A normal module1454 Assert.isTrue((loader.sorted.indexOf("dd-constrain")) > -1, "Module (dd-constrain) not found in sorted array");1455 },1456 "Testing dd-ddm": function(data) {1457 var loader = new Y.Loader({1458 require: ["dd-ddm"],1459 ignoreRegistered: true,1460 allowRollup: false1461 });1462 loader.calculate();1463 //Testing A normal module1464 Assert.isTrue((loader.sorted.indexOf("dd-ddm")) > -1, "Module (dd-ddm) not found in sorted array");1465 },1466 "Testing dd-ddm-base": function(data) {1467 var loader = new Y.Loader({1468 require: ["dd-ddm-base"],1469 ignoreRegistered: true,1470 allowRollup: false1471 });1472 loader.calculate();1473 //Testing A normal module1474 Assert.isTrue((loader.sorted.indexOf("dd-ddm-base")) > -1, "Module (dd-ddm-base) not found in sorted array");1475 },1476 "Testing dd-ddm-drop": function(data) {1477 var loader = new Y.Loader({1478 require: ["dd-ddm-drop"],1479 ignoreRegistered: true,1480 allowRollup: false1481 });1482 loader.calculate();1483 //Testing A normal module1484 Assert.isTrue((loader.sorted.indexOf("dd-ddm-drop")) > -1, "Module (dd-ddm-drop) not found in sorted array");1485 },1486 "Testing dd-delegate": function(data) {1487 var loader = new Y.Loader({1488 require: ["dd-delegate"],1489 ignoreRegistered: true,1490 allowRollup: false1491 });1492 loader.calculate();1493 //Testing A normal module1494 Assert.isTrue((loader.sorted.indexOf("dd-delegate")) > -1, "Module (dd-delegate) not found in sorted array");1495 },1496 "Testing dd-drag": function(data) {1497 var loader = new Y.Loader({1498 require: ["dd-drag"],1499 ignoreRegistered: true,1500 allowRollup: false1501 });1502 loader.calculate();1503 //Testing A normal module1504 Assert.isTrue((loader.sorted.indexOf("dd-drag")) > -1, "Module (dd-drag) not found in sorted array");1505 },1506 "Testing dd-drop": function(data) {1507 var loader = new Y.Loader({1508 require: ["dd-drop"],1509 ignoreRegistered: true,1510 allowRollup: false1511 });1512 loader.calculate();1513 //Testing A normal module1514 Assert.isTrue((loader.sorted.indexOf("dd-drop")) > -1, "Module (dd-drop) not found in sorted array");1515 },1516 "Testing dd-drop-plugin": function(data) {1517 var loader = new Y.Loader({1518 require: ["dd-drop-plugin"],1519 ignoreRegistered: true,1520 allowRollup: false1521 });1522 loader.calculate();1523 //Testing A normal module1524 Assert.isTrue((loader.sorted.indexOf("dd-drop-plugin")) > -1, "Module (dd-drop-plugin) not found in sorted array");1525 },1526 "Testing dd-gestures": function(data) {1527 var loader = new Y.Loader({1528 require: ["dd-gestures"],1529 ignoreRegistered: true,1530 allowRollup: false1531 });1532 loader.calculate();1533 //Testing A normal module1534 Assert.isTrue((loader.sorted.indexOf("dd-gestures")) > -1, "Module (dd-gestures) not found in sorted array");1535 },1536 "Testing dd-plugin": function(data) {1537 var loader = new Y.Loader({1538 require: ["dd-plugin"],1539 ignoreRegistered: true,1540 allowRollup: false1541 });1542 loader.calculate();1543 //Testing A normal module1544 Assert.isTrue((loader.sorted.indexOf("dd-plugin")) > -1, "Module (dd-plugin) not found in sorted array");1545 },1546 "Testing dd-proxy": function(data) {1547 var loader = new Y.Loader({1548 require: ["dd-proxy"],1549 ignoreRegistered: true,1550 allowRollup: false1551 });1552 loader.calculate();1553 //Testing A normal module1554 Assert.isTrue((loader.sorted.indexOf("dd-proxy")) > -1, "Module (dd-proxy) not found in sorted array");1555 },1556 "Testing dd-scroll": function(data) {1557 var loader = new Y.Loader({1558 require: ["dd-scroll"],1559 ignoreRegistered: true,1560 allowRollup: false1561 });1562 loader.calculate();1563 //Testing A normal module1564 Assert.isTrue((loader.sorted.indexOf("dd-scroll")) > -1, "Module (dd-scroll) not found in sorted array");1565 },1566 "Testing dial": function(data) {1567 var loader = new Y.Loader({1568 require: ["dial"],1569 ignoreRegistered: true,1570 allowRollup: false1571 });1572 loader.calculate();1573 //Testing A normal module1574 Assert.isTrue((loader.sorted.indexOf("dial")) > -1, "Module (dial) not found in sorted array");1575 },1576 "Testing dom": function(data) {1577 var loader = new Y.Loader({1578 require: ["dom"],1579 ignoreRegistered: true,1580 allowRollup: false1581 });1582 loader.calculate();1583 //Testing A rollup module1584 Assert.isTrue((loader.sorted.indexOf("dom-base")) > -1, "Module (dom-base) not found in sorted array");1585 Assert.isTrue((loader.sorted.indexOf("dom-screen")) > -1, "Module (dom-screen) not found in sorted array");1586 Assert.isTrue((loader.sorted.indexOf("dom-style")) > -1, "Module (dom-style) not found in sorted array");1587 Assert.isTrue((loader.sorted.indexOf("selector-native")) > -1, "Module (selector-native) not found in sorted array");1588 Assert.isTrue((loader.sorted.indexOf("selector")) > -1, "Module (selector) not found in sorted array");1589 },1590 "Testing dom-base": function(data) {1591 var loader = new Y.Loader({1592 require: ["dom-base"],1593 ignoreRegistered: true,1594 allowRollup: false1595 });1596 loader.calculate();1597 //Testing A normal module1598 Assert.isTrue((loader.sorted.indexOf("dom-base")) > -1, "Module (dom-base) not found in sorted array");1599 },1600 "Testing dom-core": function(data) {1601 var loader = new Y.Loader({1602 require: ["dom-core"],1603 ignoreRegistered: true,1604 allowRollup: false1605 });1606 loader.calculate();1607 //Testing A normal module1608 Assert.isTrue((loader.sorted.indexOf("dom-core")) > -1, "Module (dom-core) not found in sorted array");1609 },1610 "Testing dom-screen": function(data) {1611 var loader = new Y.Loader({1612 require: ["dom-screen"],1613 ignoreRegistered: true,1614 allowRollup: false1615 });1616 loader.calculate();1617 //Testing A normal module1618 Assert.isTrue((loader.sorted.indexOf("dom-screen")) > -1, "Module (dom-screen) not found in sorted array");1619 },1620 "Testing dom-style": function(data) {1621 var loader = new Y.Loader({1622 require: ["dom-style"],1623 ignoreRegistered: true,1624 allowRollup: false1625 });1626 loader.calculate();1627 //Testing A normal module1628 Assert.isTrue((loader.sorted.indexOf("dom-style")) > -1, "Module (dom-style) not found in sorted array");1629 },1630 "Testing dom-style-ie": function(data) {1631 var loader = new Y.Loader({1632 require: ["dom-style-ie"],1633 ignoreRegistered: true,1634 allowRollup: false1635 });1636 loader.calculate();1637 //Testing A normal module1638 Assert.isTrue((loader.sorted.indexOf("dom-style-ie")) > -1, "Module (dom-style-ie) not found in sorted array");1639 },1640 "Testing dump": function(data) {1641 var loader = new Y.Loader({1642 require: ["dump"],1643 ignoreRegistered: true,1644 allowRollup: false1645 });1646 loader.calculate();1647 //Testing A normal module1648 Assert.isTrue((loader.sorted.indexOf("dump")) > -1, "Module (dump) not found in sorted array");1649 },1650 "Testing editor": function(data) {1651 var loader = new Y.Loader({1652 require: ["editor"],1653 ignoreRegistered: true,1654 allowRollup: false1655 });1656 loader.calculate();1657 //Testing A rollup module1658 Assert.isTrue((loader.sorted.indexOf("frame")) > -1, "Module (frame) not found in sorted array");1659 Assert.isTrue((loader.sorted.indexOf("editor-selection")) > -1, "Module (editor-selection) not found in sorted array");1660 Assert.isTrue((loader.sorted.indexOf("exec-command")) > -1, "Module (exec-command) not found in sorted array");1661 Assert.isTrue((loader.sorted.indexOf("editor-base")) > -1, "Module (editor-base) not found in sorted array");1662 Assert.isTrue((loader.sorted.indexOf("editor-para")) > -1, "Module (editor-para) not found in sorted array");1663 Assert.isTrue((loader.sorted.indexOf("editor-br")) > -1, "Module (editor-br) not found in sorted array");1664 Assert.isTrue((loader.sorted.indexOf("editor-bidi")) > -1, "Module (editor-bidi) not found in sorted array");1665 Assert.isTrue((loader.sorted.indexOf("editor-tab")) > -1, "Module (editor-tab) not found in sorted array");1666 Assert.isTrue((loader.sorted.indexOf("createlink-base")) > -1, "Module (createlink-base) not found in sorted array");1667 },1668 "Testing editor-base": function(data) {1669 var loader = new Y.Loader({1670 require: ["editor-base"],1671 ignoreRegistered: true,1672 allowRollup: false1673 });1674 loader.calculate();1675 //Testing A normal module1676 Assert.isTrue((loader.sorted.indexOf("editor-base")) > -1, "Module (editor-base) not found in sorted array");1677 },1678 "Testing editor-bidi": function(data) {1679 var loader = new Y.Loader({1680 require: ["editor-bidi"],1681 ignoreRegistered: true,1682 allowRollup: false1683 });1684 loader.calculate();1685 //Testing A normal module1686 Assert.isTrue((loader.sorted.indexOf("editor-bidi")) > -1, "Module (editor-bidi) not found in sorted array");1687 },1688 "Testing editor-br": function(data) {1689 var loader = new Y.Loader({1690 require: ["editor-br"],1691 ignoreRegistered: true,1692 allowRollup: false1693 });1694 loader.calculate();1695 //Testing A normal module1696 Assert.isTrue((loader.sorted.indexOf("editor-br")) > -1, "Module (editor-br) not found in sorted array");1697 },1698 "Testing editor-inline": function(data) {1699 var loader = new Y.Loader({1700 require: ["editor-inline"],1701 ignoreRegistered: true,1702 allowRollup: false1703 });1704 loader.calculate();1705 //Testing A normal module1706 Assert.isTrue((loader.sorted.indexOf("editor-inline")) > -1, "Module (editor-inline) not found in sorted array");1707 },1708 "Testing editor-lists": function(data) {1709 var loader = new Y.Loader({1710 require: ["editor-lists"],1711 ignoreRegistered: true,1712 allowRollup: false1713 });1714 loader.calculate();1715 //Testing A normal module1716 Assert.isTrue((loader.sorted.indexOf("editor-lists")) > -1, "Module (editor-lists) not found in sorted array");1717 },1718 "Testing editor-para": function(data) {1719 var loader = new Y.Loader({1720 require: ["editor-para"],1721 ignoreRegistered: true,1722 allowRollup: false1723 });1724 loader.calculate();1725 //Testing A normal module1726 Assert.isTrue((loader.sorted.indexOf("editor-para")) > -1, "Module (editor-para) not found in sorted array");1727 },1728 "Testing editor-para-base": function(data) {1729 var loader = new Y.Loader({1730 require: ["editor-para-base"],1731 ignoreRegistered: true,1732 allowRollup: false1733 });1734 loader.calculate();1735 //Testing A normal module1736 Assert.isTrue((loader.sorted.indexOf("editor-para-base")) > -1, "Module (editor-para-base) not found in sorted array");1737 },1738 "Testing editor-para-ie": function(data) {1739 var loader = new Y.Loader({1740 require: ["editor-para-ie"],1741 ignoreRegistered: true,1742 allowRollup: false1743 });1744 loader.calculate();1745 //Testing A normal module1746 Assert.isTrue((loader.sorted.indexOf("editor-para-ie")) > -1, "Module (editor-para-ie) not found in sorted array");1747 },1748 "Testing editor-selection": function(data) {1749 var loader = new Y.Loader({1750 require: ["editor-selection"],1751 ignoreRegistered: true,1752 allowRollup: false1753 });1754 loader.calculate();1755 //Testing A normal module1756 Assert.isTrue((loader.sorted.indexOf("editor-selection")) > -1, "Module (editor-selection) not found in sorted array");1757 },1758 "Testing editor-tab": function(data) {1759 var loader = new Y.Loader({1760 require: ["editor-tab"],1761 ignoreRegistered: true,1762 allowRollup: false1763 });1764 loader.calculate();1765 //Testing A normal module1766 Assert.isTrue((loader.sorted.indexOf("editor-tab")) > -1, "Module (editor-tab) not found in sorted array");1767 },1768 "Testing escape": function(data) {1769 var loader = new Y.Loader({1770 require: ["escape"],1771 ignoreRegistered: true,1772 allowRollup: false1773 });1774 loader.calculate();1775 //Testing A normal module1776 Assert.isTrue((loader.sorted.indexOf("escape")) > -1, "Module (escape) not found in sorted array");1777 },1778 "Testing event": function(data) {1779 var loader = new Y.Loader({1780 require: ["event"],1781 ignoreRegistered: true,1782 allowRollup: false1783 });1784 loader.calculate();1785 //Testing A rollup module1786 Assert.isTrue((loader.sorted.indexOf("event-base")) > -1, "Module (event-base) not found in sorted array");1787 Assert.isTrue((loader.sorted.indexOf("event-delegate")) > -1, "Module (event-delegate) not found in sorted array");1788 Assert.isTrue((loader.sorted.indexOf("event-synthetic")) > -1, "Module (event-synthetic) not found in sorted array");1789 Assert.isTrue((loader.sorted.indexOf("event-mousewheel")) > -1, "Module (event-mousewheel) not found in sorted array");1790 Assert.isTrue((loader.sorted.indexOf("event-mouseenter")) > -1, "Module (event-mouseenter) not found in sorted array");1791 Assert.isTrue((loader.sorted.indexOf("event-key")) > -1, "Module (event-key) not found in sorted array");1792 Assert.isTrue((loader.sorted.indexOf("event-focus")) > -1, "Module (event-focus) not found in sorted array");1793 Assert.isTrue((loader.sorted.indexOf("event-resize")) > -1, "Module (event-resize) not found in sorted array");1794 Assert.isTrue((loader.sorted.indexOf("event-hover")) > -1, "Module (event-hover) not found in sorted array");1795 Assert.isTrue((loader.sorted.indexOf("event-outside")) > -1, "Module (event-outside) not found in sorted array");1796 Assert.isTrue((loader.sorted.indexOf("event-touch")) > -1, "Module (event-touch) not found in sorted array");1797 Assert.isTrue((loader.sorted.indexOf("event-move")) > -1, "Module (event-move) not found in sorted array");1798 Assert.isTrue((loader.sorted.indexOf("event-flick")) > -1, "Module (event-flick) not found in sorted array");1799 Assert.isTrue((loader.sorted.indexOf("event-valuechange")) > -1, "Module (event-valuechange) not found in sorted array");1800 Assert.isTrue((loader.sorted.indexOf("event-tap")) > -1, "Module (event-tap) not found in sorted array");1801 },1802 "Testing event-base": function(data) {1803 var loader = new Y.Loader({1804 require: ["event-base"],1805 ignoreRegistered: true,1806 allowRollup: false1807 });1808 loader.calculate();1809 //Testing A normal module1810 Assert.isTrue((loader.sorted.indexOf("event-base")) > -1, "Module (event-base) not found in sorted array");1811 },1812 "Testing event-base-ie": function(data) {1813 var loader = new Y.Loader({1814 require: ["event-base-ie"],1815 ignoreRegistered: true,1816 allowRollup: false1817 });1818 loader.calculate();1819 //Testing A normal module1820 Assert.isTrue((loader.sorted.indexOf("event-base-ie")) > -1, "Module (event-base-ie) not found in sorted array");1821 },1822 "Testing event-contextmenu": function(data) {1823 var loader = new Y.Loader({1824 require: ["event-contextmenu"],1825 ignoreRegistered: true,1826 allowRollup: false1827 });1828 loader.calculate();1829 //Testing A normal module1830 Assert.isTrue((loader.sorted.indexOf("event-contextmenu")) > -1, "Module (event-contextmenu) not found in sorted array");1831 },1832 "Testing event-custom": function(data) {1833 var loader = new Y.Loader({1834 require: ["event-custom"],1835 ignoreRegistered: true,1836 allowRollup: false1837 });1838 loader.calculate();1839 //Testing A rollup module1840 Assert.isTrue((loader.sorted.indexOf("event-custom-base")) > -1, "Module (event-custom-base) not found in sorted array");1841 Assert.isTrue((loader.sorted.indexOf("event-custom-complex")) > -1, "Module (event-custom-complex) not found in sorted array");1842 },1843 "Testing event-custom-base": function(data) {1844 var loader = new Y.Loader({1845 require: ["event-custom-base"],1846 ignoreRegistered: true,1847 allowRollup: false1848 });1849 loader.calculate();1850 //Testing A normal module1851 Assert.isTrue((loader.sorted.indexOf("event-custom-base")) > -1, "Module (event-custom-base) not found in sorted array");1852 },1853 "Testing event-custom-complex": function(data) {1854 var loader = new Y.Loader({1855 require: ["event-custom-complex"],1856 ignoreRegistered: true,1857 allowRollup: false1858 });1859 loader.calculate();1860 //Testing A normal module1861 Assert.isTrue((loader.sorted.indexOf("event-custom-complex")) > -1, "Module (event-custom-complex) not found in sorted array");1862 },1863 "Testing event-delegate": function(data) {1864 var loader = new Y.Loader({1865 require: ["event-delegate"],1866 ignoreRegistered: true,1867 allowRollup: false1868 });1869 loader.calculate();1870 //Testing A normal module1871 Assert.isTrue((loader.sorted.indexOf("event-delegate")) > -1, "Module (event-delegate) not found in sorted array");1872 },1873 "Testing event-flick": function(data) {1874 var loader = new Y.Loader({1875 require: ["event-flick"],1876 ignoreRegistered: true,1877 allowRollup: false1878 });1879 loader.calculate();1880 //Testing A normal module1881 Assert.isTrue((loader.sorted.indexOf("event-flick")) > -1, "Module (event-flick) not found in sorted array");1882 },1883 "Testing event-focus": function(data) {1884 var loader = new Y.Loader({1885 require: ["event-focus"],1886 ignoreRegistered: true,1887 allowRollup: false1888 });1889 loader.calculate();1890 //Testing A normal module1891 Assert.isTrue((loader.sorted.indexOf("event-focus")) > -1, "Module (event-focus) not found in sorted array");1892 },1893 "Testing event-gestures": function(data) {1894 var loader = new Y.Loader({1895 require: ["event-gestures"],1896 ignoreRegistered: true,1897 allowRollup: false1898 });1899 loader.calculate();1900 //Testing A rollup module1901 Assert.isTrue((loader.sorted.indexOf("event-flick")) > -1, "Module (event-flick) not found in sorted array");1902 Assert.isTrue((loader.sorted.indexOf("event-move")) > -1, "Module (event-move) not found in sorted array");1903 },1904 "Testing event-hover": function(data) {1905 var loader = new Y.Loader({1906 require: ["event-hover"],1907 ignoreRegistered: true,1908 allowRollup: false1909 });1910 loader.calculate();1911 //Testing A normal module1912 Assert.isTrue((loader.sorted.indexOf("event-hover")) > -1, "Module (event-hover) not found in sorted array");1913 },1914 "Testing event-key": function(data) {1915 var loader = new Y.Loader({1916 require: ["event-key"],1917 ignoreRegistered: true,1918 allowRollup: false1919 });1920 loader.calculate();1921 //Testing A normal module1922 Assert.isTrue((loader.sorted.indexOf("event-key")) > -1, "Module (event-key) not found in sorted array");1923 },1924 "Testing event-mouseenter": function(data) {1925 var loader = new Y.Loader({1926 require: ["event-mouseenter"],1927 ignoreRegistered: true,1928 allowRollup: false1929 });1930 loader.calculate();1931 //Testing A normal module1932 Assert.isTrue((loader.sorted.indexOf("event-mouseenter")) > -1, "Module (event-mouseenter) not found in sorted array");1933 },1934 "Testing event-mousewheel": function(data) {1935 var loader = new Y.Loader({1936 require: ["event-mousewheel"],1937 ignoreRegistered: true,1938 allowRollup: false1939 });1940 loader.calculate();1941 //Testing A normal module1942 Assert.isTrue((loader.sorted.indexOf("event-mousewheel")) > -1, "Module (event-mousewheel) not found in sorted array");1943 },1944 "Testing event-move": function(data) {1945 var loader = new Y.Loader({1946 require: ["event-move"],1947 ignoreRegistered: true,1948 allowRollup: false1949 });1950 loader.calculate();1951 //Testing A normal module1952 Assert.isTrue((loader.sorted.indexOf("event-move")) > -1, "Module (event-move) not found in sorted array");1953 },1954 "Testing event-outside": function(data) {1955 var loader = new Y.Loader({1956 require: ["event-outside"],1957 ignoreRegistered: true,1958 allowRollup: false1959 });1960 loader.calculate();1961 //Testing A normal module1962 Assert.isTrue((loader.sorted.indexOf("event-outside")) > -1, "Module (event-outside) not found in sorted array");1963 },1964 "Testing event-resize": function(data) {1965 var loader = new Y.Loader({1966 require: ["event-resize"],1967 ignoreRegistered: true,1968 allowRollup: false1969 });1970 loader.calculate();1971 //Testing A normal module1972 Assert.isTrue((loader.sorted.indexOf("event-resize")) > -1, "Module (event-resize) not found in sorted array");1973 },1974 "Testing event-simulate": function(data) {1975 var loader = new Y.Loader({1976 require: ["event-simulate"],1977 ignoreRegistered: true,1978 allowRollup: false1979 });1980 loader.calculate();1981 //Testing A normal module1982 Assert.isTrue((loader.sorted.indexOf("event-simulate")) > -1, "Module (event-simulate) not found in sorted array");1983 },1984 "Testing event-synthetic": function(data) {1985 var loader = new Y.Loader({1986 require: ["event-synthetic"],1987 ignoreRegistered: true,1988 allowRollup: false1989 });1990 loader.calculate();1991 //Testing A normal module1992 Assert.isTrue((loader.sorted.indexOf("event-synthetic")) > -1, "Module (event-synthetic) not found in sorted array");1993 },1994 "Testing event-tap": function(data) {1995 var loader = new Y.Loader({1996 require: ["event-tap"],1997 ignoreRegistered: true,1998 allowRollup: false1999 });2000 loader.calculate();2001 //Testing A normal module2002 Assert.isTrue((loader.sorted.indexOf("event-tap")) > -1, "Module (event-tap) not found in sorted array");2003 },2004 "Testing event-touch": function(data) {2005 var loader = new Y.Loader({2006 require: ["event-touch"],2007 ignoreRegistered: true,2008 allowRollup: false2009 });2010 loader.calculate();2011 //Testing A normal module2012 Assert.isTrue((loader.sorted.indexOf("event-touch")) > -1, "Module (event-touch) not found in sorted array");2013 },2014 "Testing event-valuechange": function(data) {2015 var loader = new Y.Loader({2016 require: ["event-valuechange"],2017 ignoreRegistered: true,2018 allowRollup: false2019 });2020 loader.calculate();2021 //Testing A normal module2022 Assert.isTrue((loader.sorted.indexOf("event-valuechange")) > -1, "Module (event-valuechange) not found in sorted array");2023 },2024 "Testing exec-command": function(data) {2025 var loader = new Y.Loader({2026 require: ["exec-command"],2027 ignoreRegistered: true,2028 allowRollup: false2029 });2030 loader.calculate();2031 //Testing A normal module2032 Assert.isTrue((loader.sorted.indexOf("exec-command")) > -1, "Module (exec-command) not found in sorted array");2033 },2034 "Testing file": function(data) {2035 var loader = new Y.Loader({2036 require: ["file"],2037 ignoreRegistered: true,2038 allowRollup: false2039 });2040 loader.calculate();2041 //Testing A normal module2042 Assert.isTrue((loader.sorted.indexOf("file")) > -1, "Module (file) not found in sorted array");2043 },2044 "Testing file-flash": function(data) {2045 var loader = new Y.Loader({2046 require: ["file-flash"],2047 ignoreRegistered: true,2048 allowRollup: false2049 });2050 loader.calculate();2051 //Testing A normal module2052 Assert.isTrue((loader.sorted.indexOf("file-flash")) > -1, "Module (file-flash) not found in sorted array");2053 },2054 "Testing file-html5": function(data) {2055 var loader = new Y.Loader({2056 require: ["file-html5"],2057 ignoreRegistered: true,2058 allowRollup: false2059 });2060 loader.calculate();2061 //Testing A normal module2062 Assert.isTrue((loader.sorted.indexOf("file-html5")) > -1, "Module (file-html5) not found in sorted array");2063 },2064 "Testing frame": function(data) {2065 var loader = new Y.Loader({2066 require: ["frame"],2067 ignoreRegistered: true,2068 allowRollup: false2069 });2070 loader.calculate();2071 //Testing A normal module2072 Assert.isTrue((loader.sorted.indexOf("frame")) > -1, "Module (frame) not found in sorted array");2073 },2074 "Testing gesture-simulate": function(data) {2075 var loader = new Y.Loader({2076 require: ["gesture-simulate"],2077 ignoreRegistered: true,2078 allowRollup: false2079 });2080 loader.calculate();2081 //Testing A normal module2082 Assert.isTrue((loader.sorted.indexOf("gesture-simulate")) > -1, "Module (gesture-simulate) not found in sorted array");2083 },2084 "Testing graphics": function(data) {2085 var loader = new Y.Loader({2086 require: ["graphics"],2087 ignoreRegistered: true,2088 allowRollup: false2089 });2090 loader.calculate();2091 //Testing A normal module2092 Assert.isTrue((loader.sorted.indexOf("graphics")) > -1, "Module (graphics) not found in sorted array");2093 },2094 "Testing graphics-canvas": function(data) {2095 var loader = new Y.Loader({2096 require: ["graphics-canvas"],2097 ignoreRegistered: true,2098 allowRollup: false2099 });2100 loader.calculate();2101 //Testing A normal module2102 Assert.isTrue((loader.sorted.indexOf("graphics-canvas")) > -1, "Module (graphics-canvas) not found in sorted array");2103 },2104 "Testing graphics-canvas-default": function(data) {2105 var loader = new Y.Loader({2106 require: ["graphics-canvas-default"],2107 ignoreRegistered: true,2108 allowRollup: false2109 });2110 loader.calculate();2111 //Testing A normal module2112 Assert.isTrue((loader.sorted.indexOf("graphics-canvas-default")) > -1, "Module (graphics-canvas-default) not found in sorted array");2113 },2114 "Testing graphics-group": function(data) {2115 var loader = new Y.Loader({2116 require: ["graphics-group"],2117 ignoreRegistered: true,2118 allowRollup: false2119 });2120 loader.calculate();2121 //Testing A normal module2122 Assert.isTrue((loader.sorted.indexOf("graphics-group")) > -1, "Module (graphics-group) not found in sorted array");2123 },2124 "Testing graphics-svg": function(data) {2125 var loader = new Y.Loader({2126 require: ["graphics-svg"],2127 ignoreRegistered: true,2128 allowRollup: false2129 });2130 loader.calculate();2131 //Testing A normal module2132 Assert.isTrue((loader.sorted.indexOf("graphics-svg")) > -1, "Module (graphics-svg) not found in sorted array");2133 },2134 "Testing graphics-svg-default": function(data) {2135 var loader = new Y.Loader({2136 require: ["graphics-svg-default"],2137 ignoreRegistered: true,2138 allowRollup: false2139 });2140 loader.calculate();2141 //Testing A normal module2142 Assert.isTrue((loader.sorted.indexOf("graphics-svg-default")) > -1, "Module (graphics-svg-default) not found in sorted array");2143 },2144 "Testing graphics-vml": function(data) {2145 var loader = new Y.Loader({2146 require: ["graphics-vml"],2147 ignoreRegistered: true,2148 allowRollup: false2149 });2150 loader.calculate();2151 //Testing A normal module2152 Assert.isTrue((loader.sorted.indexOf("graphics-vml")) > -1, "Module (graphics-vml) not found in sorted array");2153 },2154 "Testing graphics-vml-default": function(data) {2155 var loader = new Y.Loader({2156 require: ["graphics-vml-default"],2157 ignoreRegistered: true,2158 allowRollup: false2159 });2160 loader.calculate();2161 //Testing A normal module2162 Assert.isTrue((loader.sorted.indexOf("graphics-vml-default")) > -1, "Module (graphics-vml-default) not found in sorted array");2163 },2164 "Testing handlebars": function(data) {2165 var loader = new Y.Loader({2166 require: ["handlebars"],2167 ignoreRegistered: true,2168 allowRollup: false2169 });2170 loader.calculate();2171 //Testing A rollup module2172 Assert.isTrue((loader.sorted.indexOf("handlebars-compiler")) > -1, "Module (handlebars-compiler) not found in sorted array");2173 },2174 "Testing handlebars-base": function(data) {2175 var loader = new Y.Loader({2176 require: ["handlebars-base"],2177 ignoreRegistered: true,2178 allowRollup: false2179 });2180 loader.calculate();2181 //Testing A normal module2182 Assert.isTrue((loader.sorted.indexOf("handlebars-base")) > -1, "Module (handlebars-base) not found in sorted array");2183 },2184 "Testing handlebars-compiler": function(data) {2185 var loader = new Y.Loader({2186 require: ["handlebars-compiler"],2187 ignoreRegistered: true,2188 allowRollup: false2189 });2190 loader.calculate();2191 //Testing A normal module2192 Assert.isTrue((loader.sorted.indexOf("handlebars-compiler")) > -1, "Module (handlebars-compiler) not found in sorted array");2193 },2194 "Testing highlight": function(data) {2195 var loader = new Y.Loader({2196 require: ["highlight"],2197 ignoreRegistered: true,2198 allowRollup: false2199 });2200 loader.calculate();2201 //Testing A rollup module2202 Assert.isTrue((loader.sorted.indexOf("highlight-base")) > -1, "Module (highlight-base) not found in sorted array");2203 Assert.isTrue((loader.sorted.indexOf("highlight-accentfold")) > -1, "Module (highlight-accentfold) not found in sorted array");2204 },2205 "Testing highlight-accentfold": function(data) {2206 var loader = new Y.Loader({2207 require: ["highlight-accentfold"],2208 ignoreRegistered: true,2209 allowRollup: false2210 });2211 loader.calculate();2212 //Testing A normal module2213 Assert.isTrue((loader.sorted.indexOf("highlight-accentfold")) > -1, "Module (highlight-accentfold) not found in sorted array");2214 },2215 "Testing highlight-base": function(data) {2216 var loader = new Y.Loader({2217 require: ["highlight-base"],2218 ignoreRegistered: true,2219 allowRollup: false2220 });2221 loader.calculate();2222 //Testing A normal module2223 Assert.isTrue((loader.sorted.indexOf("highlight-base")) > -1, "Module (highlight-base) not found in sorted array");2224 },2225 "Testing history": function(data) {2226 var loader = new Y.Loader({2227 require: ["history"],2228 ignoreRegistered: true,2229 allowRollup: false2230 });2231 loader.calculate();2232 //Testing A rollup module2233 Assert.isTrue((loader.sorted.indexOf("history-base")) > -1, "Module (history-base) not found in sorted array");2234 Assert.isTrue((loader.sorted.indexOf("history-hash")) > -1, "Module (history-hash) not found in sorted array");2235 Assert.isTrue((loader.sorted.indexOf("history-html5")) > -1, "Module (history-html5) not found in sorted array");2236 },2237 "Testing history-base": function(data) {2238 var loader = new Y.Loader({2239 require: ["history-base"],2240 ignoreRegistered: true,2241 allowRollup: false2242 });2243 loader.calculate();2244 //Testing A normal module2245 Assert.isTrue((loader.sorted.indexOf("history-base")) > -1, "Module (history-base) not found in sorted array");2246 },2247 "Testing history-hash": function(data) {2248 var loader = new Y.Loader({2249 require: ["history-hash"],2250 ignoreRegistered: true,2251 allowRollup: false2252 });2253 loader.calculate();2254 //Testing A normal module2255 Assert.isTrue((loader.sorted.indexOf("history-hash")) > -1, "Module (history-hash) not found in sorted array");2256 },2257 "Testing history-hash-ie": function(data) {2258 var loader = new Y.Loader({2259 require: ["history-hash-ie"],2260 ignoreRegistered: true,2261 allowRollup: false2262 });2263 loader.calculate();2264 //Testing A normal module2265 Assert.isTrue((loader.sorted.indexOf("history-hash-ie")) > -1, "Module (history-hash-ie) not found in sorted array");2266 },2267 "Testing history-html5": function(data) {2268 var loader = new Y.Loader({2269 require: ["history-html5"],2270 ignoreRegistered: true,2271 allowRollup: false2272 });2273 loader.calculate();2274 //Testing A normal module2275 Assert.isTrue((loader.sorted.indexOf("history-html5")) > -1, "Module (history-html5) not found in sorted array");2276 },2277 "Testing imageloader": function(data) {2278 var loader = new Y.Loader({2279 require: ["imageloader"],2280 ignoreRegistered: true,2281 allowRollup: false2282 });2283 loader.calculate();2284 //Testing A normal module2285 Assert.isTrue((loader.sorted.indexOf("imageloader")) > -1, "Module (imageloader) not found in sorted array");2286 },2287 "Testing intl": function(data) {2288 var loader = new Y.Loader({2289 require: ["intl"],2290 ignoreRegistered: true,2291 allowRollup: false2292 });2293 loader.calculate();2294 //Testing A normal module2295 Assert.isTrue((loader.sorted.indexOf("intl")) > -1, "Module (intl) not found in sorted array");2296 },2297 "Testing io": function(data) {2298 var loader = new Y.Loader({2299 require: ["io"],2300 ignoreRegistered: true,2301 allowRollup: false2302 });2303 loader.calculate();2304 //Testing A rollup module2305 Assert.isTrue((loader.sorted.indexOf("io-base")) > -1, "Module (io-base) not found in sorted array");2306 Assert.isTrue((loader.sorted.indexOf("io-xdr")) > -1, "Module (io-xdr) not found in sorted array");2307 Assert.isTrue((loader.sorted.indexOf("io-form")) > -1, "Module (io-form) not found in sorted array");2308 Assert.isTrue((loader.sorted.indexOf("io-upload-iframe")) > -1, "Module (io-upload-iframe) not found in sorted array");2309 Assert.isTrue((loader.sorted.indexOf("io-queue")) > -1, "Module (io-queue) not found in sorted array");2310 },2311 "Testing io-base": function(data) {2312 var loader = new Y.Loader({2313 require: ["io-base"],2314 ignoreRegistered: true,2315 allowRollup: false2316 });2317 loader.calculate();2318 //Testing A normal module2319 Assert.isTrue((loader.sorted.indexOf("io-base")) > -1, "Module (io-base) not found in sorted array");2320 },2321 "Testing io-form": function(data) {2322 var loader = new Y.Loader({2323 require: ["io-form"],2324 ignoreRegistered: true,2325 allowRollup: false2326 });2327 loader.calculate();2328 //Testing A normal module2329 Assert.isTrue((loader.sorted.indexOf("io-form")) > -1, "Module (io-form) not found in sorted array");2330 },2331 "Testing io-nodejs": function(data) {2332 var loader = new Y.Loader({2333 require: ["io-nodejs"],2334 ignoreRegistered: true,2335 allowRollup: false2336 });2337 loader.calculate();2338 //Testing A normal module2339 Assert.isTrue((loader.sorted.indexOf("io-nodejs")) > -1, "Module (io-nodejs) not found in sorted array");2340 },2341 "Testing io-queue": function(data) {2342 var loader = new Y.Loader({2343 require: ["io-queue"],2344 ignoreRegistered: true,2345 allowRollup: false2346 });2347 loader.calculate();2348 //Testing A normal module2349 Assert.isTrue((loader.sorted.indexOf("io-queue")) > -1, "Module (io-queue) not found in sorted array");2350 },2351 "Testing io-upload-iframe": function(data) {2352 var loader = new Y.Loader({2353 require: ["io-upload-iframe"],2354 ignoreRegistered: true,2355 allowRollup: false2356 });2357 loader.calculate();2358 //Testing A normal module2359 Assert.isTrue((loader.sorted.indexOf("io-upload-iframe")) > -1, "Module (io-upload-iframe) not found in sorted array");2360 },2361 "Testing io-xdr": function(data) {2362 var loader = new Y.Loader({2363 require: ["io-xdr"],2364 ignoreRegistered: true,2365 allowRollup: false2366 });2367 loader.calculate();2368 //Testing A normal module2369 Assert.isTrue((loader.sorted.indexOf("io-xdr")) > -1, "Module (io-xdr) not found in sorted array");2370 },2371 "Testing json": function(data) {2372 var loader = new Y.Loader({2373 require: ["json"],2374 ignoreRegistered: true,2375 allowRollup: false2376 });2377 loader.calculate();2378 //Testing A rollup module2379 Assert.isTrue((loader.sorted.indexOf("json-parse")) > -1, "Module (json-parse) not found in sorted array");2380 Assert.isTrue((loader.sorted.indexOf("json-stringify")) > -1, "Module (json-stringify) not found in sorted array");2381 },2382 "Testing json-parse": function(data) {2383 var loader = new Y.Loader({2384 require: ["json-parse"],2385 ignoreRegistered: true,2386 allowRollup: false2387 });2388 loader.calculate();2389 //Testing A normal module2390 Assert.isTrue((loader.sorted.indexOf("json-parse")) > -1, "Module (json-parse) not found in sorted array");2391 },2392 "Testing json-parse-shim": function(data) {2393 var loader = new Y.Loader({2394 require: ["json-parse-shim"],2395 ignoreRegistered: true,2396 allowRollup: false2397 });2398 loader.calculate();2399 //Testing A normal module2400 Assert.isTrue((loader.sorted.indexOf("json-parse-shim")) > -1, "Module (json-parse-shim) not found in sorted array");2401 },2402 "Testing json-stringify": function(data) {2403 var loader = new Y.Loader({2404 require: ["json-stringify"],2405 ignoreRegistered: true,2406 allowRollup: false2407 });2408 loader.calculate();2409 //Testing A normal module2410 Assert.isTrue((loader.sorted.indexOf("json-stringify")) > -1, "Module (json-stringify) not found in sorted array");2411 },2412 "Testing json-stringify-shim": function(data) {2413 var loader = new Y.Loader({2414 require: ["json-stringify-shim"],2415 ignoreRegistered: true,2416 allowRollup: false2417 });2418 loader.calculate();2419 //Testing A normal module2420 Assert.isTrue((loader.sorted.indexOf("json-stringify-shim")) > -1, "Module (json-stringify-shim) not found in sorted array");2421 },2422 "Testing jsonp": function(data) {2423 var loader = new Y.Loader({2424 require: ["jsonp"],2425 ignoreRegistered: true,2426 allowRollup: false2427 });2428 loader.calculate();2429 //Testing A normal module2430 Assert.isTrue((loader.sorted.indexOf("jsonp")) > -1, "Module (jsonp) not found in sorted array");2431 },2432 "Testing jsonp-url": function(data) {2433 var loader = new Y.Loader({2434 require: ["jsonp-url"],2435 ignoreRegistered: true,2436 allowRollup: false2437 });2438 loader.calculate();2439 //Testing A normal module2440 Assert.isTrue((loader.sorted.indexOf("jsonp-url")) > -1, "Module (jsonp-url) not found in sorted array");2441 },2442 "Testing lazy-model-list": function(data) {2443 var loader = new Y.Loader({2444 require: ["lazy-model-list"],2445 ignoreRegistered: true,2446 allowRollup: false2447 });2448 loader.calculate();2449 //Testing A normal module2450 Assert.isTrue((loader.sorted.indexOf("lazy-model-list")) > -1, "Module (lazy-model-list) not found in sorted array");2451 },2452 "Testing matrix": function(data) {2453 var loader = new Y.Loader({2454 require: ["matrix"],2455 ignoreRegistered: true,2456 allowRollup: false2457 });2458 loader.calculate();2459 //Testing A normal module2460 Assert.isTrue((loader.sorted.indexOf("matrix")) > -1, "Module (matrix) not found in sorted array");2461 },2462 "Testing model": function(data) {2463 var loader = new Y.Loader({2464 require: ["model"],2465 ignoreRegistered: true,2466 allowRollup: false2467 });2468 loader.calculate();2469 //Testing A normal module2470 Assert.isTrue((loader.sorted.indexOf("model")) > -1, "Module (model) not found in sorted array");2471 },2472 "Testing model-list": function(data) {2473 var loader = new Y.Loader({2474 require: ["model-list"],2475 ignoreRegistered: true,2476 allowRollup: false2477 });2478 loader.calculate();2479 //Testing A normal module2480 Assert.isTrue((loader.sorted.indexOf("model-list")) > -1, "Module (model-list) not found in sorted array");2481 },2482 "Testing model-sync-local": function(data) {2483 var loader = new Y.Loader({2484 require: ["model-sync-local"],2485 ignoreRegistered: true,2486 allowRollup: false2487 });2488 loader.calculate();2489 //Testing A normal module2490 Assert.isTrue((loader.sorted.indexOf("model-sync-local")) > -1, "Module (model-sync-local) not found in sorted array");2491 },2492 "Testing model-sync-rest": function(data) {2493 var loader = new Y.Loader({2494 require: ["model-sync-rest"],2495 ignoreRegistered: true,2496 allowRollup: false2497 });2498 loader.calculate();2499 //Testing A normal module2500 Assert.isTrue((loader.sorted.indexOf("model-sync-rest")) > -1, "Module (model-sync-rest) not found in sorted array");2501 },2502 "Testing node": function(data) {2503 var loader = new Y.Loader({2504 require: ["node"],2505 ignoreRegistered: true,2506 allowRollup: false2507 });2508 loader.calculate();2509 //Testing A rollup module2510 Assert.isTrue((loader.sorted.indexOf("node-base")) > -1, "Module (node-base) not found in sorted array");2511 Assert.isTrue((loader.sorted.indexOf("node-event-delegate")) > -1, "Module (node-event-delegate) not found in sorted array");2512 Assert.isTrue((loader.sorted.indexOf("node-pluginhost")) > -1, "Module (node-pluginhost) not found in sorted array");2513 Assert.isTrue((loader.sorted.indexOf("node-screen")) > -1, "Module (node-screen) not found in sorted array");2514 Assert.isTrue((loader.sorted.indexOf("node-style")) > -1, "Module (node-style) not found in sorted array");2515 },2516 "Testing node-base": function(data) {2517 var loader = new Y.Loader({2518 require: ["node-base"],2519 ignoreRegistered: true,2520 allowRollup: false2521 });2522 loader.calculate();2523 //Testing A normal module2524 Assert.isTrue((loader.sorted.indexOf("node-base")) > -1, "Module (node-base) not found in sorted array");2525 },2526 "Testing node-core": function(data) {2527 var loader = new Y.Loader({2528 require: ["node-core"],2529 ignoreRegistered: true,2530 allowRollup: false2531 });2532 loader.calculate();2533 //Testing A normal module2534 Assert.isTrue((loader.sorted.indexOf("node-core")) > -1, "Module (node-core) not found in sorted array");2535 },2536 "Testing node-event-delegate": function(data) {2537 var loader = new Y.Loader({2538 require: ["node-event-delegate"],2539 ignoreRegistered: true,2540 allowRollup: false2541 });2542 loader.calculate();2543 //Testing A normal module2544 Assert.isTrue((loader.sorted.indexOf("node-event-delegate")) > -1, "Module (node-event-delegate) not found in sorted array");2545 },2546 "Testing node-event-html5": function(data) {2547 var loader = new Y.Loader({2548 require: ["node-event-html5"],2549 ignoreRegistered: true,2550 allowRollup: false2551 });2552 loader.calculate();2553 //Testing A normal module2554 Assert.isTrue((loader.sorted.indexOf("node-event-html5")) > -1, "Module (node-event-html5) not found in sorted array");2555 },2556 "Testing node-event-simulate": function(data) {2557 var loader = new Y.Loader({2558 require: ["node-event-simulate"],2559 ignoreRegistered: true,2560 allowRollup: false2561 });2562 loader.calculate();2563 //Testing A normal module2564 Assert.isTrue((loader.sorted.indexOf("node-event-simulate")) > -1, "Module (node-event-simulate) not found in sorted array");2565 },2566 "Testing node-flick": function(data) {2567 var loader = new Y.Loader({2568 require: ["node-flick"],2569 ignoreRegistered: true,2570 allowRollup: false2571 });2572 loader.calculate();2573 //Testing A normal module2574 Assert.isTrue((loader.sorted.indexOf("node-flick")) > -1, "Module (node-flick) not found in sorted array");2575 },2576 "Testing node-focusmanager": function(data) {2577 var loader = new Y.Loader({2578 require: ["node-focusmanager"],2579 ignoreRegistered: true,2580 allowRollup: false2581 });2582 loader.calculate();2583 //Testing A normal module2584 Assert.isTrue((loader.sorted.indexOf("node-focusmanager")) > -1, "Module (node-focusmanager) not found in sorted array");2585 },2586 "Testing node-load": function(data) {2587 var loader = new Y.Loader({2588 require: ["node-load"],2589 ignoreRegistered: true,2590 allowRollup: false2591 });2592 loader.calculate();2593 //Testing A normal module2594 Assert.isTrue((loader.sorted.indexOf("node-load")) > -1, "Module (node-load) not found in sorted array");2595 },2596 "Testing node-menunav": function(data) {2597 var loader = new Y.Loader({2598 require: ["node-menunav"],2599 ignoreRegistered: true,2600 allowRollup: false2601 });2602 loader.calculate();2603 //Testing A normal module2604 Assert.isTrue((loader.sorted.indexOf("node-menunav")) > -1, "Module (node-menunav) not found in sorted array");2605 },2606 "Testing node-pluginhost": function(data) {2607 var loader = new Y.Loader({2608 require: ["node-pluginhost"],2609 ignoreRegistered: true,2610 allowRollup: false2611 });2612 loader.calculate();2613 //Testing A normal module2614 Assert.isTrue((loader.sorted.indexOf("node-pluginhost")) > -1, "Module (node-pluginhost) not found in sorted array");2615 },2616 "Testing node-screen": function(data) {2617 var loader = new Y.Loader({2618 require: ["node-screen"],2619 ignoreRegistered: true,2620 allowRollup: false2621 });2622 loader.calculate();2623 //Testing A normal module2624 Assert.isTrue((loader.sorted.indexOf("node-screen")) > -1, "Module (node-screen) not found in sorted array");2625 },2626 "Testing node-scroll-info": function(data) {2627 var loader = new Y.Loader({2628 require: ["node-scroll-info"],2629 ignoreRegistered: true,2630 allowRollup: false2631 });2632 loader.calculate();2633 //Testing A normal module2634 Assert.isTrue((loader.sorted.indexOf("node-scroll-info")) > -1, "Module (node-scroll-info) not found in sorted array");2635 },2636 "Testing node-style": function(data) {2637 var loader = new Y.Loader({2638 require: ["node-style"],2639 ignoreRegistered: true,2640 allowRollup: false2641 });2642 loader.calculate();2643 //Testing A normal module2644 Assert.isTrue((loader.sorted.indexOf("node-style")) > -1, "Module (node-style) not found in sorted array");2645 },2646 "Testing oop": function(data) {2647 var loader = new Y.Loader({2648 require: ["oop"],2649 ignoreRegistered: true,2650 allowRollup: false2651 });2652 loader.calculate();2653 //Testing A normal module2654 Assert.isTrue((loader.sorted.indexOf("oop")) > -1, "Module (oop) not found in sorted array");2655 },2656 "Testing overlay": function(data) {2657 var loader = new Y.Loader({2658 require: ["overlay"],2659 ignoreRegistered: true,2660 allowRollup: false2661 });2662 loader.calculate();2663 //Testing A normal module2664 Assert.isTrue((loader.sorted.indexOf("overlay")) > -1, "Module (overlay) not found in sorted array");2665 },2666 "Testing paginator": function(data) {2667 var loader = new Y.Loader({2668 require: ["paginator"],2669 ignoreRegistered: true,2670 allowRollup: false2671 });2672 loader.calculate();2673 //Testing A normal module2674 Assert.isTrue((loader.sorted.indexOf("paginator")) > -1, "Module (paginator) not found in sorted array");2675 },2676 "Testing paginator-core": function(data) {2677 var loader = new Y.Loader({2678 require: ["paginator-core"],2679 ignoreRegistered: true,2680 allowRollup: false2681 });2682 loader.calculate();2683 //Testing A normal module2684 Assert.isTrue((loader.sorted.indexOf("paginator-core")) > -1, "Module (paginator-core) not found in sorted array");2685 },2686 "Testing paginator-url": function(data) {2687 var loader = new Y.Loader({2688 require: ["paginator-url"],2689 ignoreRegistered: true,2690 allowRollup: false2691 });2692 loader.calculate();2693 //Testing A normal module2694 Assert.isTrue((loader.sorted.indexOf("paginator-url")) > -1, "Module (paginator-url) not found in sorted array");2695 },2696 "Testing panel": function(data) {2697 var loader = new Y.Loader({2698 require: ["panel"],2699 ignoreRegistered: true,2700 allowRollup: false2701 });2702 loader.calculate();2703 //Testing A normal module2704 Assert.isTrue((loader.sorted.indexOf("panel")) > -1, "Module (panel) not found in sorted array");2705 },2706 "Testing parallel": function(data) {2707 var loader = new Y.Loader({2708 require: ["parallel"],2709 ignoreRegistered: true,2710 allowRollup: false2711 });2712 loader.calculate();2713 //Testing A normal module2714 Assert.isTrue((loader.sorted.indexOf("parallel")) > -1, "Module (parallel) not found in sorted array");2715 },2716 "Testing pjax": function(data) {2717 var loader = new Y.Loader({2718 require: ["pjax"],2719 ignoreRegistered: true,2720 allowRollup: false2721 });2722 loader.calculate();2723 //Testing A normal module2724 Assert.isTrue((loader.sorted.indexOf("pjax")) > -1, "Module (pjax) not found in sorted array");2725 },2726 "Testing pjax-base": function(data) {2727 var loader = new Y.Loader({2728 require: ["pjax-base"],2729 ignoreRegistered: true,2730 allowRollup: false2731 });2732 loader.calculate();2733 //Testing A normal module2734 Assert.isTrue((loader.sorted.indexOf("pjax-base")) > -1, "Module (pjax-base) not found in sorted array");2735 },2736 "Testing pjax-content": function(data) {2737 var loader = new Y.Loader({2738 require: ["pjax-content"],2739 ignoreRegistered: true,2740 allowRollup: false2741 });2742 loader.calculate();2743 //Testing A normal module2744 Assert.isTrue((loader.sorted.indexOf("pjax-content")) > -1, "Module (pjax-content) not found in sorted array");2745 },2746 "Testing pjax-plugin": function(data) {2747 var loader = new Y.Loader({2748 require: ["pjax-plugin"],2749 ignoreRegistered: true,2750 allowRollup: false2751 });2752 loader.calculate();2753 //Testing A normal module2754 Assert.isTrue((loader.sorted.indexOf("pjax-plugin")) > -1, "Module (pjax-plugin) not found in sorted array");2755 },2756 "Testing plugin": function(data) {2757 var loader = new Y.Loader({2758 require: ["plugin"],2759 ignoreRegistered: true,2760 allowRollup: false2761 });2762 loader.calculate();2763 //Testing A normal module2764 Assert.isTrue((loader.sorted.indexOf("plugin")) > -1, "Module (plugin) not found in sorted array");2765 },2766 "Testing pluginhost": function(data) {2767 var loader = new Y.Loader({2768 require: ["pluginhost"],2769 ignoreRegistered: true,2770 allowRollup: false2771 });2772 loader.calculate();2773 //Testing A rollup module2774 Assert.isTrue((loader.sorted.indexOf("pluginhost-base")) > -1, "Module (pluginhost-base) not found in sorted array");2775 Assert.isTrue((loader.sorted.indexOf("pluginhost-config")) > -1, "Module (pluginhost-config) not found in sorted array");2776 },2777 "Testing pluginhost-base": function(data) {2778 var loader = new Y.Loader({2779 require: ["pluginhost-base"],2780 ignoreRegistered: true,2781 allowRollup: false2782 });2783 loader.calculate();2784 //Testing A normal module2785 Assert.isTrue((loader.sorted.indexOf("pluginhost-base")) > -1, "Module (pluginhost-base) not found in sorted array");2786 },2787 "Testing pluginhost-config": function(data) {2788 var loader = new Y.Loader({2789 require: ["pluginhost-config"],2790 ignoreRegistered: true,2791 allowRollup: false2792 });2793 loader.calculate();2794 //Testing A normal module2795 Assert.isTrue((loader.sorted.indexOf("pluginhost-config")) > -1, "Module (pluginhost-config) not found in sorted array");2796 },2797 "Testing promise": function(data) {2798 var loader = new Y.Loader({2799 require: ["promise"],2800 ignoreRegistered: true,2801 allowRollup: false2802 });2803 loader.calculate();2804 //Testing A normal module2805 Assert.isTrue((loader.sorted.indexOf("promise")) > -1, "Module (promise) not found in sorted array");2806 },2807 "Testing querystring": function(data) {2808 var loader = new Y.Loader({2809 require: ["querystring"],2810 ignoreRegistered: true,2811 allowRollup: false2812 });2813 loader.calculate();2814 //Testing A rollup module2815 Assert.isTrue((loader.sorted.indexOf("querystring-parse")) > -1, "Module (querystring-parse) not found in sorted array");2816 Assert.isTrue((loader.sorted.indexOf("querystring-stringify")) > -1, "Module (querystring-stringify) not found in sorted array");2817 },2818 "Testing querystring-parse": function(data) {2819 var loader = new Y.Loader({2820 require: ["querystring-parse"],2821 ignoreRegistered: true,2822 allowRollup: false2823 });2824 loader.calculate();2825 //Testing A normal module2826 Assert.isTrue((loader.sorted.indexOf("querystring-parse")) > -1, "Module (querystring-parse) not found in sorted array");2827 },2828 "Testing querystring-parse-simple": function(data) {2829 var loader = new Y.Loader({2830 require: ["querystring-parse-simple"],2831 ignoreRegistered: true,2832 allowRollup: false2833 });2834 loader.calculate();2835 //Testing A normal module2836 Assert.isTrue((loader.sorted.indexOf("querystring-parse-simple")) > -1, "Module (querystring-parse-simple) not found in sorted array");2837 },2838 "Testing querystring-stringify": function(data) {2839 var loader = new Y.Loader({2840 require: ["querystring-stringify"],2841 ignoreRegistered: true,2842 allowRollup: false2843 });2844 loader.calculate();2845 //Testing A normal module2846 Assert.isTrue((loader.sorted.indexOf("querystring-stringify")) > -1, "Module (querystring-stringify) not found in sorted array");2847 },2848 "Testing querystring-stringify-simple": function(data) {2849 var loader = new Y.Loader({2850 require: ["querystring-stringify-simple"],2851 ignoreRegistered: true,2852 allowRollup: false2853 });2854 loader.calculate();2855 //Testing A normal module2856 Assert.isTrue((loader.sorted.indexOf("querystring-stringify-simple")) > -1, "Module (querystring-stringify-simple) not found in sorted array");2857 },2858 "Testing queue-promote": function(data) {2859 var loader = new Y.Loader({2860 require: ["queue-promote"],2861 ignoreRegistered: true,2862 allowRollup: false2863 });2864 loader.calculate();2865 //Testing A normal module2866 Assert.isTrue((loader.sorted.indexOf("queue-promote")) > -1, "Module (queue-promote) not found in sorted array");2867 },2868 "Testing range-slider": function(data) {2869 var loader = new Y.Loader({2870 require: ["range-slider"],2871 ignoreRegistered: true,2872 allowRollup: false2873 });2874 loader.calculate();2875 //Testing A normal module2876 Assert.isTrue((loader.sorted.indexOf("range-slider")) > -1, "Module (range-slider) not found in sorted array");2877 },2878 "Testing recordset": function(data) {2879 var loader = new Y.Loader({2880 require: ["recordset"],2881 ignoreRegistered: true,2882 allowRollup: false2883 });2884 loader.calculate();2885 //Testing A rollup module2886 Assert.isTrue((loader.sorted.indexOf("recordset-base")) > -1, "Module (recordset-base) not found in sorted array");2887 Assert.isTrue((loader.sorted.indexOf("recordset-sort")) > -1, "Module (recordset-sort) not found in sorted array");2888 Assert.isTrue((loader.sorted.indexOf("recordset-filter")) > -1, "Module (recordset-filter) not found in sorted array");2889 Assert.isTrue((loader.sorted.indexOf("recordset-indexer")) > -1, "Module (recordset-indexer) not found in sorted array");2890 },2891 "Testing recordset-base": function(data) {2892 var loader = new Y.Loader({2893 require: ["recordset-base"],2894 ignoreRegistered: true,2895 allowRollup: false2896 });2897 loader.calculate();2898 //Testing A normal module2899 Assert.isTrue((loader.sorted.indexOf("recordset-base")) > -1, "Module (recordset-base) not found in sorted array");2900 },2901 "Testing recordset-filter": function(data) {2902 var loader = new Y.Loader({2903 require: ["recordset-filter"],2904 ignoreRegistered: true,2905 allowRollup: false2906 });2907 loader.calculate();2908 //Testing A normal module2909 Assert.isTrue((loader.sorted.indexOf("recordset-filter")) > -1, "Module (recordset-filter) not found in sorted array");2910 },2911 "Testing recordset-indexer": function(data) {2912 var loader = new Y.Loader({2913 require: ["recordset-indexer"],2914 ignoreRegistered: true,2915 allowRollup: false2916 });2917 loader.calculate();2918 //Testing A normal module2919 Assert.isTrue((loader.sorted.indexOf("recordset-indexer")) > -1, "Module (recordset-indexer) not found in sorted array");2920 },2921 "Testing recordset-sort": function(data) {2922 var loader = new Y.Loader({2923 require: ["recordset-sort"],2924 ignoreRegistered: true,2925 allowRollup: false2926 });2927 loader.calculate();2928 //Testing A normal module2929 Assert.isTrue((loader.sorted.indexOf("recordset-sort")) > -1, "Module (recordset-sort) not found in sorted array");2930 },2931 "Testing resize": function(data) {2932 var loader = new Y.Loader({2933 require: ["resize"],2934 ignoreRegistered: true,2935 allowRollup: false2936 });2937 loader.calculate();2938 //Testing A rollup module2939 Assert.isTrue((loader.sorted.indexOf("resize-base")) > -1, "Module (resize-base) not found in sorted array");2940 Assert.isTrue((loader.sorted.indexOf("resize-proxy")) > -1, "Module (resize-proxy) not found in sorted array");2941 Assert.isTrue((loader.sorted.indexOf("resize-constrain")) > -1, "Module (resize-constrain) not found in sorted array");2942 },2943 "Testing resize-base": function(data) {2944 var loader = new Y.Loader({2945 require: ["resize-base"],2946 ignoreRegistered: true,2947 allowRollup: false2948 });2949 loader.calculate();2950 //Testing A normal module2951 Assert.isTrue((loader.sorted.indexOf("resize-base")) > -1, "Module (resize-base) not found in sorted array");2952 },2953 "Testing resize-constrain": function(data) {2954 var loader = new Y.Loader({2955 require: ["resize-constrain"],2956 ignoreRegistered: true,2957 allowRollup: false2958 });2959 loader.calculate();2960 //Testing A normal module2961 Assert.isTrue((loader.sorted.indexOf("resize-constrain")) > -1, "Module (resize-constrain) not found in sorted array");2962 },2963 "Testing resize-plugin": function(data) {2964 var loader = new Y.Loader({2965 require: ["resize-plugin"],2966 ignoreRegistered: true,2967 allowRollup: false2968 });2969 loader.calculate();2970 //Testing A normal module2971 Assert.isTrue((loader.sorted.indexOf("resize-plugin")) > -1, "Module (resize-plugin) not found in sorted array");2972 },2973 "Testing resize-proxy": function(data) {2974 var loader = new Y.Loader({2975 require: ["resize-proxy"],2976 ignoreRegistered: true,2977 allowRollup: false2978 });2979 loader.calculate();2980 //Testing A normal module2981 Assert.isTrue((loader.sorted.indexOf("resize-proxy")) > -1, "Module (resize-proxy) not found in sorted array");2982 },2983 "Testing router": function(data) {2984 var loader = new Y.Loader({2985 require: ["router"],2986 ignoreRegistered: true,2987 allowRollup: false2988 });2989 loader.calculate();2990 //Testing A normal module2991 Assert.isTrue((loader.sorted.indexOf("router")) > -1, "Module (router) not found in sorted array");2992 },2993 "Testing scrollview": function(data) {2994 var loader = new Y.Loader({2995 require: ["scrollview"],2996 ignoreRegistered: true,2997 allowRollup: false2998 });2999 loader.calculate();3000 //Testing A normal module3001 Assert.isTrue((loader.sorted.indexOf("scrollview")) > -1, "Module (scrollview) not found in sorted array");3002 },3003 "Testing scrollview-base": function(data) {3004 var loader = new Y.Loader({3005 require: ["scrollview-base"],3006 ignoreRegistered: true,3007 allowRollup: false3008 });3009 loader.calculate();3010 //Testing A normal module3011 Assert.isTrue((loader.sorted.indexOf("scrollview-base")) > -1, "Module (scrollview-base) not found in sorted array");3012 },3013 "Testing scrollview-base-ie": function(data) {3014 var loader = new Y.Loader({3015 require: ["scrollview-base-ie"],3016 ignoreRegistered: true,3017 allowRollup: false3018 });3019 loader.calculate();3020 //Testing A normal module3021 Assert.isTrue((loader.sorted.indexOf("scrollview-base-ie")) > -1, "Module (scrollview-base-ie) not found in sorted array");3022 },3023 "Testing scrollview-list": function(data) {3024 var loader = new Y.Loader({3025 require: ["scrollview-list"],3026 ignoreRegistered: true,3027 allowRollup: false3028 });3029 loader.calculate();3030 //Testing A normal module3031 Assert.isTrue((loader.sorted.indexOf("scrollview-list")) > -1, "Module (scrollview-list) not found in sorted array");3032 },3033 "Testing scrollview-paginator": function(data) {3034 var loader = new Y.Loader({3035 require: ["scrollview-paginator"],3036 ignoreRegistered: true,3037 allowRollup: false3038 });3039 loader.calculate();3040 //Testing A normal module3041 Assert.isTrue((loader.sorted.indexOf("scrollview-paginator")) > -1, "Module (scrollview-paginator) not found in sorted array");3042 },3043 "Testing scrollview-scrollbars": function(data) {3044 var loader = new Y.Loader({3045 require: ["scrollview-scrollbars"],3046 ignoreRegistered: true,3047 allowRollup: false3048 });3049 loader.calculate();3050 //Testing A normal module3051 Assert.isTrue((loader.sorted.indexOf("scrollview-scrollbars")) > -1, "Module (scrollview-scrollbars) not found in sorted array");3052 },3053 "Testing selector": function(data) {3054 var loader = new Y.Loader({3055 require: ["selector"],3056 ignoreRegistered: true,3057 allowRollup: false3058 });3059 loader.calculate();3060 //Testing A normal module3061 Assert.isTrue((loader.sorted.indexOf("selector")) > -1, "Module (selector) not found in sorted array");3062 },3063 "Testing selector-native": function(data) {3064 var loader = new Y.Loader({3065 require: ["selector-native"],3066 ignoreRegistered: true,3067 allowRollup: false3068 });3069 loader.calculate();3070 //Testing A normal module3071 Assert.isTrue((loader.sorted.indexOf("selector-native")) > -1, "Module (selector-native) not found in sorted array");3072 },3073 "Testing series-area": function(data) {3074 var loader = new Y.Loader({3075 require: ["series-area"],3076 ignoreRegistered: true,3077 allowRollup: false3078 });3079 loader.calculate();3080 //Testing A normal module3081 Assert.isTrue((loader.sorted.indexOf("series-area")) > -1, "Module (series-area) not found in sorted array");3082 },3083 "Testing series-area-stacked": function(data) {3084 var loader = new Y.Loader({3085 require: ["series-area-stacked"],3086 ignoreRegistered: true,3087 allowRollup: false3088 });3089 loader.calculate();3090 //Testing A normal module3091 Assert.isTrue((loader.sorted.indexOf("series-area-stacked")) > -1, "Module (series-area-stacked) not found in sorted array");3092 },3093 "Testing series-areaspline": function(data) {3094 var loader = new Y.Loader({3095 require: ["series-areaspline"],3096 ignoreRegistered: true,3097 allowRollup: false3098 });3099 loader.calculate();3100 //Testing A normal module3101 Assert.isTrue((loader.sorted.indexOf("series-areaspline")) > -1, "Module (series-areaspline) not found in sorted array");3102 },3103 "Testing series-areaspline-stacked": function(data) {3104 var loader = new Y.Loader({3105 require: ["series-areaspline-stacked"],3106 ignoreRegistered: true,3107 allowRollup: false3108 });3109 loader.calculate();3110 //Testing A normal module3111 Assert.isTrue((loader.sorted.indexOf("series-areaspline-stacked")) > -1, "Module (series-areaspline-stacked) not found in sorted array");3112 },3113 "Testing series-bar": function(data) {3114 var loader = new Y.Loader({3115 require: ["series-bar"],3116 ignoreRegistered: true,3117 allowRollup: false3118 });3119 loader.calculate();3120 //Testing A normal module3121 Assert.isTrue((loader.sorted.indexOf("series-bar")) > -1, "Module (series-bar) not found in sorted array");3122 },3123 "Testing series-bar-stacked": function(data) {3124 var loader = new Y.Loader({3125 require: ["series-bar-stacked"],3126 ignoreRegistered: true,3127 allowRollup: false3128 });3129 loader.calculate();3130 //Testing A normal module3131 Assert.isTrue((loader.sorted.indexOf("series-bar-stacked")) > -1, "Module (series-bar-stacked) not found in sorted array");3132 },3133 "Testing series-base": function(data) {3134 var loader = new Y.Loader({3135 require: ["series-base"],3136 ignoreRegistered: true,3137 allowRollup: false3138 });3139 loader.calculate();3140 //Testing A normal module3141 Assert.isTrue((loader.sorted.indexOf("series-base")) > -1, "Module (series-base) not found in sorted array");3142 },3143 "Testing series-candlestick": function(data) {3144 var loader = new Y.Loader({3145 require: ["series-candlestick"],3146 ignoreRegistered: true,3147 allowRollup: false3148 });3149 loader.calculate();3150 //Testing A normal module3151 Assert.isTrue((loader.sorted.indexOf("series-candlestick")) > -1, "Module (series-candlestick) not found in sorted array");3152 },3153 "Testing series-cartesian": function(data) {3154 var loader = new Y.Loader({3155 require: ["series-cartesian"],3156 ignoreRegistered: true,3157 allowRollup: false3158 });3159 loader.calculate();3160 //Testing A normal module3161 Assert.isTrue((loader.sorted.indexOf("series-cartesian")) > -1, "Module (series-cartesian) not found in sorted array");3162 },3163 "Testing series-column": function(data) {3164 var loader = new Y.Loader({3165 require: ["series-column"],3166 ignoreRegistered: true,3167 allowRollup: false3168 });3169 loader.calculate();3170 //Testing A normal module3171 Assert.isTrue((loader.sorted.indexOf("series-column")) > -1, "Module (series-column) not found in sorted array");3172 },3173 "Testing series-column-stacked": function(data) {3174 var loader = new Y.Loader({3175 require: ["series-column-stacked"],3176 ignoreRegistered: true,3177 allowRollup: false3178 });3179 loader.calculate();3180 //Testing A normal module3181 Assert.isTrue((loader.sorted.indexOf("series-column-stacked")) > -1, "Module (series-column-stacked) not found in sorted array");3182 },3183 "Testing series-combo": function(data) {3184 var loader = new Y.Loader({3185 require: ["series-combo"],3186 ignoreRegistered: true,3187 allowRollup: false3188 });3189 loader.calculate();3190 //Testing A normal module3191 Assert.isTrue((loader.sorted.indexOf("series-combo")) > -1, "Module (series-combo) not found in sorted array");3192 },3193 "Testing series-combo-stacked": function(data) {3194 var loader = new Y.Loader({3195 require: ["series-combo-stacked"],3196 ignoreRegistered: true,3197 allowRollup: false3198 });3199 loader.calculate();3200 //Testing A normal module3201 Assert.isTrue((loader.sorted.indexOf("series-combo-stacked")) > -1, "Module (series-combo-stacked) not found in sorted array");3202 },3203 "Testing series-combospline": function(data) {3204 var loader = new Y.Loader({3205 require: ["series-combospline"],3206 ignoreRegistered: true,3207 allowRollup: false3208 });3209 loader.calculate();3210 //Testing A normal module3211 Assert.isTrue((loader.sorted.indexOf("series-combospline")) > -1, "Module (series-combospline) not found in sorted array");3212 },3213 "Testing series-combospline-stacked": function(data) {3214 var loader = new Y.Loader({3215 require: ["series-combospline-stacked"],3216 ignoreRegistered: true,3217 allowRollup: false3218 });3219 loader.calculate();3220 //Testing A normal module3221 Assert.isTrue((loader.sorted.indexOf("series-combospline-stacked")) > -1, "Module (series-combospline-stacked) not found in sorted array");3222 },3223 "Testing series-curve-util": function(data) {3224 var loader = new Y.Loader({3225 require: ["series-curve-util"],3226 ignoreRegistered: true,3227 allowRollup: false3228 });3229 loader.calculate();3230 //Testing A normal module3231 Assert.isTrue((loader.sorted.indexOf("series-curve-util")) > -1, "Module (series-curve-util) not found in sorted array");3232 },3233 "Testing series-fill-util": function(data) {3234 var loader = new Y.Loader({3235 require: ["series-fill-util"],3236 ignoreRegistered: true,3237 allowRollup: false3238 });3239 loader.calculate();3240 //Testing A normal module3241 Assert.isTrue((loader.sorted.indexOf("series-fill-util")) > -1, "Module (series-fill-util) not found in sorted array");3242 },3243 "Testing series-histogram-base": function(data) {3244 var loader = new Y.Loader({3245 require: ["series-histogram-base"],3246 ignoreRegistered: true,3247 allowRollup: false3248 });3249 loader.calculate();3250 //Testing A normal module3251 Assert.isTrue((loader.sorted.indexOf("series-histogram-base")) > -1, "Module (series-histogram-base) not found in sorted array");3252 },3253 "Testing series-line": function(data) {3254 var loader = new Y.Loader({3255 require: ["series-line"],3256 ignoreRegistered: true,3257 allowRollup: false3258 });3259 loader.calculate();3260 //Testing A normal module3261 Assert.isTrue((loader.sorted.indexOf("series-line")) > -1, "Module (series-line) not found in sorted array");3262 },3263 "Testing series-line-stacked": function(data) {3264 var loader = new Y.Loader({3265 require: ["series-line-stacked"],3266 ignoreRegistered: true,3267 allowRollup: false3268 });3269 loader.calculate();3270 //Testing A normal module3271 Assert.isTrue((loader.sorted.indexOf("series-line-stacked")) > -1, "Module (series-line-stacked) not found in sorted array");3272 },3273 "Testing series-line-util": function(data) {3274 var loader = new Y.Loader({3275 require: ["series-line-util"],3276 ignoreRegistered: true,3277 allowRollup: false3278 });3279 loader.calculate();3280 //Testing A normal module3281 Assert.isTrue((loader.sorted.indexOf("series-line-util")) > -1, "Module (series-line-util) not found in sorted array");3282 },3283 "Testing series-marker": function(data) {3284 var loader = new Y.Loader({3285 require: ["series-marker"],3286 ignoreRegistered: true,3287 allowRollup: false3288 });3289 loader.calculate();3290 //Testing A normal module3291 Assert.isTrue((loader.sorted.indexOf("series-marker")) > -1, "Module (series-marker) not found in sorted array");3292 },3293 "Testing series-marker-stacked": function(data) {3294 var loader = new Y.Loader({3295 require: ["series-marker-stacked"],3296 ignoreRegistered: true,3297 allowRollup: false3298 });3299 loader.calculate();3300 //Testing A normal module3301 Assert.isTrue((loader.sorted.indexOf("series-marker-stacked")) > -1, "Module (series-marker-stacked) not found in sorted array");3302 },3303 "Testing series-ohlc": function(data) {3304 var loader = new Y.Loader({3305 require: ["series-ohlc"],3306 ignoreRegistered: true,3307 allowRollup: false3308 });3309 loader.calculate();3310 //Testing A normal module3311 Assert.isTrue((loader.sorted.indexOf("series-ohlc")) > -1, "Module (series-ohlc) not found in sorted array");3312 },3313 "Testing series-pie": function(data) {3314 var loader = new Y.Loader({3315 require: ["series-pie"],3316 ignoreRegistered: true,3317 allowRollup: false3318 });3319 loader.calculate();3320 //Testing A normal module3321 Assert.isTrue((loader.sorted.indexOf("series-pie")) > -1, "Module (series-pie) not found in sorted array");3322 },3323 "Testing series-plot-util": function(data) {3324 var loader = new Y.Loader({3325 require: ["series-plot-util"],3326 ignoreRegistered: true,3327 allowRollup: false3328 });3329 loader.calculate();3330 //Testing A normal module3331 Assert.isTrue((loader.sorted.indexOf("series-plot-util")) > -1, "Module (series-plot-util) not found in sorted array");3332 },3333 "Testing series-range": function(data) {3334 var loader = new Y.Loader({3335 require: ["series-range"],3336 ignoreRegistered: true,3337 allowRollup: false3338 });3339 loader.calculate();3340 //Testing A normal module3341 Assert.isTrue((loader.sorted.indexOf("series-range")) > -1, "Module (series-range) not found in sorted array");3342 },3343 "Testing series-spline": function(data) {3344 var loader = new Y.Loader({3345 require: ["series-spline"],3346 ignoreRegistered: true,3347 allowRollup: false3348 });3349 loader.calculate();3350 //Testing A normal module3351 Assert.isTrue((loader.sorted.indexOf("series-spline")) > -1, "Module (series-spline) not found in sorted array");3352 },3353 "Testing series-spline-stacked": function(data) {3354 var loader = new Y.Loader({3355 require: ["series-spline-stacked"],3356 ignoreRegistered: true,3357 allowRollup: false3358 });3359 loader.calculate();3360 //Testing A normal module3361 Assert.isTrue((loader.sorted.indexOf("series-spline-stacked")) > -1, "Module (series-spline-stacked) not found in sorted array");3362 },3363 "Testing series-stacked": function(data) {3364 var loader = new Y.Loader({3365 require: ["series-stacked"],3366 ignoreRegistered: true,3367 allowRollup: false3368 });3369 loader.calculate();3370 //Testing A normal module3371 Assert.isTrue((loader.sorted.indexOf("series-stacked")) > -1, "Module (series-stacked) not found in sorted array");3372 },3373 "Testing shim-plugin": function(data) {3374 var loader = new Y.Loader({3375 require: ["shim-plugin"],3376 ignoreRegistered: true,3377 allowRollup: false3378 });3379 loader.calculate();3380 //Testing A normal module3381 Assert.isTrue((loader.sorted.indexOf("shim-plugin")) > -1, "Module (shim-plugin) not found in sorted array");3382 },3383 "Testing slider": function(data) {3384 var loader = new Y.Loader({3385 require: ["slider"],3386 ignoreRegistered: true,3387 allowRollup: false3388 });3389 loader.calculate();3390 //Testing A rollup module3391 Assert.isTrue((loader.sorted.indexOf("slider-base")) > -1, "Module (slider-base) not found in sorted array");3392 Assert.isTrue((loader.sorted.indexOf("slider-value-range")) > -1, "Module (slider-value-range) not found in sorted array");3393 Assert.isTrue((loader.sorted.indexOf("clickable-rail")) > -1, "Module (clickable-rail) not found in sorted array");3394 Assert.isTrue((loader.sorted.indexOf("range-slider")) > -1, "Module (range-slider) not found in sorted array");3395 },3396 "Testing slider-base": function(data) {3397 var loader = new Y.Loader({3398 require: ["slider-base"],3399 ignoreRegistered: true,3400 allowRollup: false3401 });3402 loader.calculate();3403 //Testing A normal module3404 Assert.isTrue((loader.sorted.indexOf("slider-base")) > -1, "Module (slider-base) not found in sorted array");3405 },3406 "Testing slider-value-range": function(data) {3407 var loader = new Y.Loader({3408 require: ["slider-value-range"],3409 ignoreRegistered: true,3410 allowRollup: false3411 });3412 loader.calculate();3413 //Testing A normal module3414 Assert.isTrue((loader.sorted.indexOf("slider-value-range")) > -1, "Module (slider-value-range) not found in sorted array");3415 },3416 "Testing sortable": function(data) {3417 var loader = new Y.Loader({3418 require: ["sortable"],3419 ignoreRegistered: true,3420 allowRollup: false3421 });3422 loader.calculate();3423 //Testing A normal module3424 Assert.isTrue((loader.sorted.indexOf("sortable")) > -1, "Module (sortable) not found in sorted array");3425 },3426 "Testing sortable-scroll": function(data) {3427 var loader = new Y.Loader({3428 require: ["sortable-scroll"],3429 ignoreRegistered: true,3430 allowRollup: false3431 });3432 loader.calculate();3433 //Testing A normal module3434 Assert.isTrue((loader.sorted.indexOf("sortable-scroll")) > -1, "Module (sortable-scroll) not found in sorted array");3435 },3436 "Testing stylesheet": function(data) {3437 var loader = new Y.Loader({3438 require: ["stylesheet"],3439 ignoreRegistered: true,3440 allowRollup: false3441 });3442 loader.calculate();3443 //Testing A normal module3444 Assert.isTrue((loader.sorted.indexOf("stylesheet")) > -1, "Module (stylesheet) not found in sorted array");3445 },3446 "Testing substitute": function(data) {3447 var loader = new Y.Loader({3448 require: ["substitute"],3449 ignoreRegistered: true,3450 allowRollup: false3451 });3452 loader.calculate();3453 //Testing A normal module3454 Assert.isTrue((loader.sorted.indexOf("substitute")) > -1, "Module (substitute) not found in sorted array");3455 },3456 "Testing swf": function(data) {3457 var loader = new Y.Loader({3458 require: ["swf"],3459 ignoreRegistered: true,3460 allowRollup: false3461 });3462 loader.calculate();3463 //Testing A normal module3464 Assert.isTrue((loader.sorted.indexOf("swf")) > -1, "Module (swf) not found in sorted array");3465 },3466 "Testing swfdetect": function(data) {3467 var loader = new Y.Loader({3468 require: ["swfdetect"],3469 ignoreRegistered: true,3470 allowRollup: false3471 });3472 loader.calculate();3473 //Testing A normal module3474 Assert.isTrue((loader.sorted.indexOf("swfdetect")) > -1, "Module (swfdetect) not found in sorted array");3475 },3476 "Testing tabview": function(data) {3477 var loader = new Y.Loader({3478 require: ["tabview"],3479 ignoreRegistered: true,3480 allowRollup: false3481 });3482 loader.calculate();3483 //Testing A normal module3484 Assert.isTrue((loader.sorted.indexOf("tabview")) > -1, "Module (tabview) not found in sorted array");3485 },3486 "Testing tabview-base": function(data) {3487 var loader = new Y.Loader({3488 require: ["tabview-base"],3489 ignoreRegistered: true,3490 allowRollup: false3491 });3492 loader.calculate();3493 //Testing A normal module3494 Assert.isTrue((loader.sorted.indexOf("tabview-base")) > -1, "Module (tabview-base) not found in sorted array");3495 },3496 "Testing tabview-plugin": function(data) {3497 var loader = new Y.Loader({3498 require: ["tabview-plugin"],3499 ignoreRegistered: true,3500 allowRollup: false3501 });3502 loader.calculate();3503 //Testing A normal module3504 Assert.isTrue((loader.sorted.indexOf("tabview-plugin")) > -1, "Module (tabview-plugin) not found in sorted array");3505 },3506 "Testing template": function(data) {3507 var loader = new Y.Loader({3508 require: ["template"],3509 ignoreRegistered: true,3510 allowRollup: false3511 });3512 loader.calculate();3513 //Testing A rollup module3514 Assert.isTrue((loader.sorted.indexOf("template-base")) > -1, "Module (template-base) not found in sorted array");3515 Assert.isTrue((loader.sorted.indexOf("template-micro")) > -1, "Module (template-micro) not found in sorted array");3516 },3517 "Testing template-base": function(data) {3518 var loader = new Y.Loader({3519 require: ["template-base"],3520 ignoreRegistered: true,3521 allowRollup: false3522 });3523 loader.calculate();3524 //Testing A normal module3525 Assert.isTrue((loader.sorted.indexOf("template-base")) > -1, "Module (template-base) not found in sorted array");3526 },3527 "Testing template-micro": function(data) {3528 var loader = new Y.Loader({3529 require: ["template-micro"],3530 ignoreRegistered: true,3531 allowRollup: false3532 });3533 loader.calculate();3534 //Testing A normal module3535 Assert.isTrue((loader.sorted.indexOf("template-micro")) > -1, "Module (template-micro) not found in sorted array");3536 },3537 "Testing test": function(data) {3538 var loader = new Y.Loader({3539 require: ["test"],3540 ignoreRegistered: true,3541 allowRollup: false3542 });3543 loader.calculate();3544 //Testing A normal module3545 Assert.isTrue((loader.sorted.indexOf("test")) > -1, "Module (test) not found in sorted array");3546 },3547 "Testing test-console": function(data) {3548 var loader = new Y.Loader({3549 require: ["test-console"],3550 ignoreRegistered: true,3551 allowRollup: false3552 });3553 loader.calculate();3554 //Testing A normal module3555 Assert.isTrue((loader.sorted.indexOf("test-console")) > -1, "Module (test-console) not found in sorted array");3556 },3557 "Testing text": function(data) {3558 var loader = new Y.Loader({3559 require: ["text"],3560 ignoreRegistered: true,3561 allowRollup: false3562 });3563 loader.calculate();3564 //Testing A rollup module3565 Assert.isTrue((loader.sorted.indexOf("text-accentfold")) > -1, "Module (text-accentfold) not found in sorted array");3566 Assert.isTrue((loader.sorted.indexOf("text-wordbreak")) > -1, "Module (text-wordbreak) not found in sorted array");3567 },3568 "Testing text-accentfold": function(data) {3569 var loader = new Y.Loader({3570 require: ["text-accentfold"],3571 ignoreRegistered: true,3572 allowRollup: false3573 });3574 loader.calculate();3575 //Testing A normal module3576 Assert.isTrue((loader.sorted.indexOf("text-accentfold")) > -1, "Module (text-accentfold) not found in sorted array");3577 },3578 "Testing text-data-accentfold": function(data) {3579 var loader = new Y.Loader({3580 require: ["text-data-accentfold"],3581 ignoreRegistered: true,3582 allowRollup: false3583 });3584 loader.calculate();3585 //Testing A normal module3586 Assert.isTrue((loader.sorted.indexOf("text-data-accentfold")) > -1, "Module (text-data-accentfold) not found in sorted array");3587 },3588 "Testing text-data-wordbreak": function(data) {3589 var loader = new Y.Loader({3590 require: ["text-data-wordbreak"],3591 ignoreRegistered: true,3592 allowRollup: false3593 });3594 loader.calculate();3595 //Testing A normal module3596 Assert.isTrue((loader.sorted.indexOf("text-data-wordbreak")) > -1, "Module (text-data-wordbreak) not found in sorted array");3597 },3598 "Testing text-wordbreak": function(data) {3599 var loader = new Y.Loader({3600 require: ["text-wordbreak"],3601 ignoreRegistered: true,3602 allowRollup: false3603 });3604 loader.calculate();3605 //Testing A normal module3606 Assert.isTrue((loader.sorted.indexOf("text-wordbreak")) > -1, "Module (text-wordbreak) not found in sorted array");3607 },3608 "Testing timers": function(data) {3609 var loader = new Y.Loader({3610 require: ["timers"],3611 ignoreRegistered: true,3612 allowRollup: false3613 });3614 loader.calculate();3615 //Testing A normal module3616 Assert.isTrue((loader.sorted.indexOf("timers")) > -1, "Module (timers) not found in sorted array");3617 },3618 "Testing transition": function(data) {3619 var loader = new Y.Loader({3620 require: ["transition"],3621 ignoreRegistered: true,3622 allowRollup: false3623 });3624 loader.calculate();3625 //Testing A normal module3626 Assert.isTrue((loader.sorted.indexOf("transition")) > -1, "Module (transition) not found in sorted array");3627 },3628 "Testing transition-timer": function(data) {3629 var loader = new Y.Loader({3630 require: ["transition-timer"],3631 ignoreRegistered: true,3632 allowRollup: false3633 });3634 loader.calculate();3635 //Testing A normal module3636 Assert.isTrue((loader.sorted.indexOf("transition-timer")) > -1, "Module (transition-timer) not found in sorted array");3637 },3638 "Testing tree": function(data) {3639 var loader = new Y.Loader({3640 require: ["tree"],3641 ignoreRegistered: true,3642 allowRollup: false3643 });3644 loader.calculate();3645 //Testing A normal module3646 Assert.isTrue((loader.sorted.indexOf("tree")) > -1, "Module (tree) not found in sorted array");3647 },3648 "Testing tree-labelable": function(data) {3649 var loader = new Y.Loader({3650 require: ["tree-labelable"],3651 ignoreRegistered: true,3652 allowRollup: false3653 });3654 loader.calculate();3655 //Testing A normal module3656 Assert.isTrue((loader.sorted.indexOf("tree-labelable")) > -1, "Module (tree-labelable) not found in sorted array");3657 },3658 "Testing tree-lazy": function(data) {3659 var loader = new Y.Loader({3660 require: ["tree-lazy"],3661 ignoreRegistered: true,3662 allowRollup: false3663 });3664 loader.calculate();3665 //Testing A normal module3666 Assert.isTrue((loader.sorted.indexOf("tree-lazy")) > -1, "Module (tree-lazy) not found in sorted array");3667 },3668 "Testing tree-node": function(data) {3669 var loader = new Y.Loader({3670 require: ["tree-node"],3671 ignoreRegistered: true,3672 allowRollup: false3673 });3674 loader.calculate();3675 //Testing A normal module3676 Assert.isTrue((loader.sorted.indexOf("tree-node")) > -1, "Module (tree-node) not found in sorted array");3677 },3678 "Testing tree-openable": function(data) {3679 var loader = new Y.Loader({3680 require: ["tree-openable"],3681 ignoreRegistered: true,3682 allowRollup: false3683 });3684 loader.calculate();3685 //Testing A normal module3686 Assert.isTrue((loader.sorted.indexOf("tree-openable")) > -1, "Module (tree-openable) not found in sorted array");3687 },3688 "Testing tree-selectable": function(data) {3689 var loader = new Y.Loader({3690 require: ["tree-selectable"],3691 ignoreRegistered: true,3692 allowRollup: false3693 });3694 loader.calculate();3695 //Testing A normal module3696 Assert.isTrue((loader.sorted.indexOf("tree-selectable")) > -1, "Module (tree-selectable) not found in sorted array");3697 },3698 "Testing tree-sortable": function(data) {3699 var loader = new Y.Loader({3700 require: ["tree-sortable"],3701 ignoreRegistered: true,3702 allowRollup: false3703 });3704 loader.calculate();3705 //Testing A normal module3706 Assert.isTrue((loader.sorted.indexOf("tree-sortable")) > -1, "Module (tree-sortable) not found in sorted array");3707 },3708 "Testing uploader": function(data) {3709 var loader = new Y.Loader({3710 require: ["uploader"],3711 ignoreRegistered: true,3712 allowRollup: false3713 });3714 loader.calculate();3715 //Testing A normal module3716 Assert.isTrue((loader.sorted.indexOf("uploader")) > -1, "Module (uploader) not found in sorted array");3717 },3718 "Testing uploader-flash": function(data) {3719 var loader = new Y.Loader({3720 require: ["uploader-flash"],3721 ignoreRegistered: true,3722 allowRollup: false3723 });3724 loader.calculate();3725 //Testing A normal module3726 Assert.isTrue((loader.sorted.indexOf("uploader-flash")) > -1, "Module (uploader-flash) not found in sorted array");3727 },3728 "Testing uploader-html5": function(data) {3729 var loader = new Y.Loader({3730 require: ["uploader-html5"],3731 ignoreRegistered: true,3732 allowRollup: false3733 });3734 loader.calculate();3735 //Testing A normal module3736 Assert.isTrue((loader.sorted.indexOf("uploader-html5")) > -1, "Module (uploader-html5) not found in sorted array");3737 },3738 "Testing uploader-queue": function(data) {3739 var loader = new Y.Loader({3740 require: ["uploader-queue"],3741 ignoreRegistered: true,3742 allowRollup: false3743 });3744 loader.calculate();3745 //Testing A normal module3746 Assert.isTrue((loader.sorted.indexOf("uploader-queue")) > -1, "Module (uploader-queue) not found in sorted array");3747 },3748 "Testing view": function(data) {3749 var loader = new Y.Loader({3750 require: ["view"],3751 ignoreRegistered: true,3752 allowRollup: false3753 });3754 loader.calculate();3755 //Testing A normal module3756 Assert.isTrue((loader.sorted.indexOf("view")) > -1, "Module (view) not found in sorted array");3757 },3758 "Testing view-node-map": function(data) {3759 var loader = new Y.Loader({3760 require: ["view-node-map"],3761 ignoreRegistered: true,3762 allowRollup: false3763 });3764 loader.calculate();3765 //Testing A normal module3766 Assert.isTrue((loader.sorted.indexOf("view-node-map")) > -1, "Module (view-node-map) not found in sorted array");3767 },3768 "Testing widget": function(data) {3769 var loader = new Y.Loader({3770 require: ["widget"],3771 ignoreRegistered: true,3772 allowRollup: false3773 });3774 loader.calculate();3775 //Testing A rollup module3776 Assert.isTrue((loader.sorted.indexOf("widget-base")) > -1, "Module (widget-base) not found in sorted array");3777 Assert.isTrue((loader.sorted.indexOf("widget-htmlparser")) > -1, "Module (widget-htmlparser) not found in sorted array");3778 Assert.isTrue((loader.sorted.indexOf("widget-skin")) > -1, "Module (widget-skin) not found in sorted array");3779 Assert.isTrue((loader.sorted.indexOf("widget-uievents")) > -1, "Module (widget-uievents) not found in sorted array");3780 },3781 "Testing widget-anim": function(data) {3782 var loader = new Y.Loader({3783 require: ["widget-anim"],3784 ignoreRegistered: true,3785 allowRollup: false3786 });3787 loader.calculate();3788 //Testing A normal module3789 Assert.isTrue((loader.sorted.indexOf("widget-anim")) > -1, "Module (widget-anim) not found in sorted array");3790 },3791 "Testing widget-autohide": function(data) {3792 var loader = new Y.Loader({3793 require: ["widget-autohide"],3794 ignoreRegistered: true,3795 allowRollup: false3796 });3797 loader.calculate();3798 //Testing A normal module3799 Assert.isTrue((loader.sorted.indexOf("widget-autohide")) > -1, "Module (widget-autohide) not found in sorted array");3800 },3801 "Testing widget-base": function(data) {3802 var loader = new Y.Loader({3803 require: ["widget-base"],3804 ignoreRegistered: true,3805 allowRollup: false3806 });3807 loader.calculate();3808 //Testing A normal module3809 Assert.isTrue((loader.sorted.indexOf("widget-base")) > -1, "Module (widget-base) not found in sorted array");3810 },3811 "Testing widget-base-ie": function(data) {3812 var loader = new Y.Loader({3813 require: ["widget-base-ie"],3814 ignoreRegistered: true,3815 allowRollup: false3816 });3817 loader.calculate();3818 //Testing A normal module3819 Assert.isTrue((loader.sorted.indexOf("widget-base-ie")) > -1, "Module (widget-base-ie) not found in sorted array");3820 },3821 "Testing widget-buttons": function(data) {3822 var loader = new Y.Loader({3823 require: ["widget-buttons"],3824 ignoreRegistered: true,3825 allowRollup: false3826 });3827 loader.calculate();3828 //Testing A normal module3829 Assert.isTrue((loader.sorted.indexOf("widget-buttons")) > -1, "Module (widget-buttons) not found in sorted array");3830 },3831 "Testing widget-child": function(data) {3832 var loader = new Y.Loader({3833 require: ["widget-child"],3834 ignoreRegistered: true,3835 allowRollup: false3836 });3837 loader.calculate();3838 //Testing A normal module3839 Assert.isTrue((loader.sorted.indexOf("widget-child")) > -1, "Module (widget-child) not found in sorted array");3840 },3841 "Testing widget-htmlparser": function(data) {3842 var loader = new Y.Loader({3843 require: ["widget-htmlparser"],3844 ignoreRegistered: true,3845 allowRollup: false3846 });3847 loader.calculate();3848 //Testing A normal module3849 Assert.isTrue((loader.sorted.indexOf("widget-htmlparser")) > -1, "Module (widget-htmlparser) not found in sorted array");3850 },3851 "Testing widget-modality": function(data) {3852 var loader = new Y.Loader({3853 require: ["widget-modality"],3854 ignoreRegistered: true,3855 allowRollup: false3856 });3857 loader.calculate();3858 //Testing A normal module3859 Assert.isTrue((loader.sorted.indexOf("widget-modality")) > -1, "Module (widget-modality) not found in sorted array");3860 },3861 "Testing widget-parent": function(data) {3862 var loader = new Y.Loader({3863 require: ["widget-parent"],3864 ignoreRegistered: true,3865 allowRollup: false3866 });3867 loader.calculate();3868 //Testing A normal module3869 Assert.isTrue((loader.sorted.indexOf("widget-parent")) > -1, "Module (widget-parent) not found in sorted array");3870 },3871 "Testing widget-position": function(data) {3872 var loader = new Y.Loader({3873 require: ["widget-position"],3874 ignoreRegistered: true,3875 allowRollup: false3876 });3877 loader.calculate();3878 //Testing A normal module3879 Assert.isTrue((loader.sorted.indexOf("widget-position")) > -1, "Module (widget-position) not found in sorted array");3880 },3881 "Testing widget-position-align": function(data) {3882 var loader = new Y.Loader({3883 require: ["widget-position-align"],3884 ignoreRegistered: true,3885 allowRollup: false3886 });3887 loader.calculate();3888 //Testing A normal module3889 Assert.isTrue((loader.sorted.indexOf("widget-position-align")) > -1, "Module (widget-position-align) not found in sorted array");3890 },3891 "Testing widget-position-constrain": function(data) {3892 var loader = new Y.Loader({3893 require: ["widget-position-constrain"],3894 ignoreRegistered: true,3895 allowRollup: false3896 });3897 loader.calculate();3898 //Testing A normal module3899 Assert.isTrue((loader.sorted.indexOf("widget-position-constrain")) > -1, "Module (widget-position-constrain) not found in sorted array");3900 },3901 "Testing widget-skin": function(data) {3902 var loader = new Y.Loader({3903 require: ["widget-skin"],3904 ignoreRegistered: true,3905 allowRollup: false3906 });3907 loader.calculate();3908 //Testing A normal module3909 Assert.isTrue((loader.sorted.indexOf("widget-skin")) > -1, "Module (widget-skin) not found in sorted array");3910 },3911 "Testing widget-stack": function(data) {3912 var loader = new Y.Loader({3913 require: ["widget-stack"],3914 ignoreRegistered: true,3915 allowRollup: false3916 });3917 loader.calculate();3918 //Testing A normal module3919 Assert.isTrue((loader.sorted.indexOf("widget-stack")) > -1, "Module (widget-stack) not found in sorted array");3920 },3921 "Testing widget-stdmod": function(data) {3922 var loader = new Y.Loader({3923 require: ["widget-stdmod"],3924 ignoreRegistered: true,3925 allowRollup: false3926 });3927 loader.calculate();3928 //Testing A normal module3929 Assert.isTrue((loader.sorted.indexOf("widget-stdmod")) > -1, "Module (widget-stdmod) not found in sorted array");3930 },3931 "Testing widget-uievents": function(data) {3932 var loader = new Y.Loader({3933 require: ["widget-uievents"],3934 ignoreRegistered: true,3935 allowRollup: false3936 });3937 loader.calculate();3938 //Testing A normal module3939 Assert.isTrue((loader.sorted.indexOf("widget-uievents")) > -1, "Module (widget-uievents) not found in sorted array");3940 },3941 "Testing yql": function(data) {3942 var loader = new Y.Loader({3943 require: ["yql"],3944 ignoreRegistered: true,3945 allowRollup: false3946 });3947 loader.calculate();3948 //Testing A normal module3949 Assert.isTrue((loader.sorted.indexOf("yql")) > -1, "Module (yql) not found in sorted array");3950 },3951 "Testing yql-jsonp": function(data) {3952 var loader = new Y.Loader({3953 require: ["yql-jsonp"],3954 ignoreRegistered: true,3955 allowRollup: false3956 });3957 loader.calculate();3958 //Testing A normal module3959 Assert.isTrue((loader.sorted.indexOf("yql-jsonp")) > -1, "Module (yql-jsonp) not found in sorted array");3960 },3961 "Testing yql-nodejs": function(data) {3962 var loader = new Y.Loader({3963 require: ["yql-nodejs"],3964 ignoreRegistered: true,3965 allowRollup: false3966 });3967 loader.calculate();3968 //Testing A normal module3969 Assert.isTrue((loader.sorted.indexOf("yql-nodejs")) > -1, "Module (yql-nodejs) not found in sorted array");3970 },3971 "Testing yql-winjs": function(data) {3972 var loader = new Y.Loader({3973 require: ["yql-winjs"],3974 ignoreRegistered: true,3975 allowRollup: false3976 });3977 loader.calculate();3978 //Testing A normal module3979 Assert.isTrue((loader.sorted.indexOf("yql-winjs")) > -1, "Module (yql-winjs) not found in sorted array");3980 } 3981}));...

Full Screen

Full Screen

sorted.js

Source:sorted.js Github

copy

Full Screen

1'use strict';2/*global require, after, before*/3var async = require('async'),4 assert = require('assert'),5 db = require('../mocks/databasemock');6describe('Sorted Set methods', function() {7 before(function(done) {8 async.parallel([9 function(next) {10 db.sortedSetAdd('sortedSetTest1', [1, 2, 3], ['value1', 'value2', 'value3'], next);11 },12 function(next) {13 db.sortedSetAdd('sortedSetTest2', [1, 4], ['value1', 'value4'], next);14 },15 function(next) {16 db.sortedSetAdd('sortedSetTest3', [2, 4], ['value2', 'value4'], next);17 }18 ], done);19 });20 describe('sortedSetAdd()', function() {21 it('should add an element to a sorted set', function(done) {22 db.sortedSetAdd('sorted1', 1, 'value1', function(err) {23 assert.equal(err, null);24 assert.equal(arguments.length, 1);25 done();26 });27 });28 it('should add two elements to a sorted set', function(done) {29 db.sortedSetAdd('sorted2', [1, 2], ['value1', 'value2'], function(err) {30 assert.equal(err, null);31 assert.equal(arguments.length, 1);32 done();33 });34 });35 });36 describe('sortedSetsAdd()', function() {37 it('should add an element to two sorted sets', function(done) {38 db.sortedSetsAdd(['sorted1', 'sorted2'], 3, 'value3', function(err) {39 assert.equal(err, null);40 assert.equal(arguments.length, 1);41 done();42 });43 });44 });45 describe('getSortedSetRange()', function() {46 it('should return the lowest scored element', function(done) {47 db.getSortedSetRange('sortedSetTest1', 0, 0, function(err, value) {48 assert.equal(err, null);49 assert.equal(arguments.length, 2);50 assert.equal(value, 'value1');51 done();52 });53 });54 it('should return elements sorted by score lowest to highest', function(done) {55 db.getSortedSetRange('sortedSetTest1', 0, -1, function(err, values) {56 assert.equal(err, null);57 assert.equal(arguments.length, 2);58 assert.deepEqual(values, ['value1', 'value2', 'value3']);59 done();60 });61 });62 });63 describe('getSortedSetRevRange()', function() {64 it('should return the highest scored element', function(done) {65 db.getSortedSetRevRange('sortedSetTest1', 0, 0, function(err, value) {66 assert.equal(err, null);67 assert.equal(arguments.length, 2);68 assert.equal(value, 'value3');69 done();70 });71 });72 it('should return elements sorted by score highest to lowest', function(done) {73 db.getSortedSetRevRange('sortedSetTest1', 0, -1, function(err, values) {74 assert.equal(err, null);75 assert.equal(arguments.length, 2);76 assert.deepEqual(values, ['value3', 'value2', 'value1']);77 done();78 });79 });80 });81 describe('getSortedSetRangeWithScores()', function() {82 it('should return array of elements sorted by score lowest to highest with scores', function(done) {83 db.getSortedSetRangeWithScores('sortedSetTest1', 0, -1, function(err, values) {84 assert.equal(err, null);85 assert.equal(arguments.length, 2);86 assert.deepEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}, {value: 'value3', score: 3}]);87 done();88 });89 });90 });91 describe('getSortedSetRevRangeWithScores()', function() {92 it('should return array of elements sorted by score highest to lowest with scores', function(done) {93 db.getSortedSetRevRangeWithScores('sortedSetTest1', 0, -1, function(err, values) {94 assert.equal(err, null);95 assert.equal(arguments.length, 2);96 assert.deepEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}, {value: 'value1', score: 1}]);97 done();98 });99 });100 });101 describe('getSortedSetRangeByScore()', function() {102 it('should get count elements with score between min max sorted by score lowest to highest', function(done) {103 db.getSortedSetRangeByScore('sortedSetTest1', 0, -1, '-inf', 2, function(err, values) {104 assert.equal(err, null);105 assert.equal(arguments.length, 2);106 assert.deepEqual(values, ['value1', 'value2']);107 done();108 });109 });110 });111 describe('getSortedSetRevRangeByScore()', function() {112 it('should get count elements with score between max min sorted by score highest to lowest', function(done) {113 db.getSortedSetRevRangeByScore('sortedSetTest1', 0, -1, '+inf', 2, function(err, values) {114 assert.equal(err, null);115 assert.equal(arguments.length, 2);116 assert.deepEqual(values, ['value3', 'value2']);117 done();118 });119 });120 });121 describe('getSortedSetRangeByScoreWithScores()', function() {122 it('should get count elements with score between min max sorted by score lowest to highest with scores', function(done) {123 db.getSortedSetRangeByScoreWithScores('sortedSetTest1', 0, -1, '-inf', 2, function(err, values) {124 assert.equal(err, null);125 assert.equal(arguments.length, 2);126 assert.deepEqual(values, [{value: 'value1', score: 1}, {value: 'value2', score: 2}]);127 done();128 });129 });130 });131 describe('getSortedSetRevRangeByScoreWithScores()', function() {132 it('should get count elements with score between max min sorted by score highest to lowest', function(done) {133 db.getSortedSetRevRangeByScoreWithScores('sortedSetTest1', 0, -1, '+inf', 2, function(err, values) {134 assert.equal(err, null);135 assert.equal(arguments.length, 2);136 assert.deepEqual(values, [{value: 'value3', score: 3}, {value: 'value2', score: 2}]);137 done();138 });139 });140 });141 describe('sortedSetCount()', function() {142 it('should return 0 for a sorted set that does not exist', function(done) {143 db.sortedSetCount('doesnotexist', 0, 10, function(err, count) {144 assert.equal(err, null);145 assert.equal(arguments.length, 2);146 assert.equal(count, 0);147 done();148 });149 });150 it('should return number of elements between scores min max inclusive', function(done) {151 db.sortedSetCount('sortedSetTest1', '-inf', 2, function(err, count) {152 assert.equal(err, null);153 assert.equal(arguments.length, 2);154 assert.equal(count, 2);155 done();156 });157 });158 });159 describe('sortedSetCard()', function() {160 it('should return 0 for a sorted set that does not exist', function(done) {161 db.sortedSetCard('doesnotexist', function(err, count) {162 assert.equal(err, null);163 assert.equal(arguments.length, 2);164 assert.equal(count, 0);165 done();166 });167 });168 it('should return number of elements in a sorted set', function(done) {169 db.sortedSetCard('sortedSetTest1', function(err, count) {170 assert.equal(err, null);171 assert.equal(arguments.length, 2);172 assert.equal(count, 3);173 done();174 });175 });176 });177 describe('sortedSetsCard()', function() {178 it('should return the number of elements in sorted sets', function(done) {179 db.sortedSetsCard(['sortedSetTest1', 'sortedSetTest2', 'doesnotexist'], function(err, counts) {180 assert.equal(err, null);181 assert.equal(arguments.length, 2);182 assert.deepEqual(counts, [3, 2, 0]);183 done();184 });185 });186 });187 describe('sortedSetRank()', function() {188 it('should return falsy if sorted set does not exist', function(done) {189 db.sortedSetRank('doesnotexist', 'value1', function(err, rank) {190 assert.equal(err, null);191 assert.equal(arguments.length, 2);192 assert.equal(!!rank, false);193 done();194 });195 });196 it('should return falsy if element isnt in sorted set', function(done) {197 db.sortedSetRank('sortedSetTest1', 'value5', function(err, rank) {198 assert.equal(err, null);199 assert.equal(arguments.length, 2);200 assert.equal(!!rank, false);201 done();202 });203 });204 it('should return the rank of the element in the sorted set sorted by lowest to highest score', function(done) {205 db.sortedSetRank('sortedSetTest1', 'value1', function(err, rank) {206 assert.equal(err, null);207 assert.equal(arguments.length, 2);208 assert.equal(rank, 0);209 done();210 });211 });212 });213 describe('sortedSetRevRank()', function() {214 it('should return falsy if sorted set doesnot exist', function(done) {215 db.sortedSetRevRank('doesnotexist', 'value1', function(err, rank) {216 assert.equal(err, null);217 assert.equal(arguments.length, 2);218 assert.equal(!!rank, false);219 done();220 });221 });222 it('should return falsy if element isnt in sorted set', function(done) {223 db.sortedSetRevRank('sortedSetTest1', 'value5', function(err, rank) {224 assert.equal(err, null);225 assert.equal(arguments.length, 2);226 assert.equal(!!rank, false);227 done();228 });229 });230 it('should return the rank of the element in the sorted set sorted by highest to lowest score', function(done) {231 db.sortedSetRevRank('sortedSetTest1', 'value1', function(err, rank) {232 assert.equal(err, null);233 assert.equal(arguments.length, 2);234 assert.equal(rank, 2);235 done();236 });237 });238 });239 describe('sortedSetsRanks()', function() {240 it('should return the ranks of values in sorted sets', function(done) {241 db.sortedSetsRanks(['sortedSetTest1', 'sortedSetTest2'], ['value1', 'value4'], function(err, ranks) {242 assert.equal(err, null);243 assert.equal(arguments.length, 2);244 assert.deepEqual(ranks, [0, 1]);245 done();246 });247 });248 });249 describe('sortedSetRanks()', function() {250 it('should return the ranks of values in a sorted set', function(done) {251 db.sortedSetRanks('sortedSetTest1', ['value2', 'value1', 'value3', 'value4'], function(err, ranks) {252 assert.equal(err, null);253 assert.equal(arguments.length, 2);254 assert.deepEqual(ranks, [1, 0, 2, null]);255 done();256 });257 });258 });259 describe('sortedSetScore()', function() {260 it('should return falsy if sorted set does not exist', function(done) {261 db.sortedSetScore('doesnotexist', 'value1', function(err, score) {262 assert.equal(err, null);263 assert.equal(arguments.length, 2);264 assert.equal(!!score, false);265 done();266 });267 });268 it('should return falsy if element is not in sorted set', function(done) {269 db.sortedSetScore('sortedSetTest1', 'value5', function(err, score) {270 assert.equal(err, null);271 assert.equal(arguments.length, 2);272 assert.equal(!!score, false);273 done();274 });275 });276 it('should return the score of an element', function(done) {277 db.sortedSetScore('sortedSetTest1', 'value2', function(err, score) {278 assert.equal(err, null);279 assert.equal(arguments.length, 2);280 assert.equal(score, 2);281 done();282 });283 });284 });285 describe('sortedSetsScore()', function() {286 it('should return the scores of value in sorted sets', function(done) {287 db.sortedSetsScore(['sortedSetTest1', 'sortedSetTest2', 'doesnotexist'], 'value1', function(err, scores) {288 assert.equal(err, null);289 assert.equal(arguments.length, 2);290 assert.deepEqual(scores, [1, 1, null]);291 done();292 });293 });294 });295 describe('sortedSetScores()', function() {296 it('should return the scores of value in sorted sets', function(done) {297 db.sortedSetScores('sortedSetTest1', ['value2', 'value1', 'doesnotexist'], function(err, scores) {298 assert.equal(err, null);299 assert.equal(arguments.length, 2);300 assert.deepEqual(scores, [2, 1, null]);301 done();302 });303 });304 });305 describe('isSortedSetMember()', function() {306 it('should return false if sorted set does not exist', function(done) {307 db.isSortedSetMember('doesnotexist', 'value1', function(err, isMember) {308 assert.equal(err, null);309 assert.equal(arguments.length, 2);310 assert.equal(isMember, false);311 done();312 });313 });314 it('should return false if element is not in sorted set', function(done) {315 db.isSortedSetMember('sorted2', 'value5', function(err, isMember) {316 assert.equal(err, null);317 assert.equal(arguments.length, 2);318 assert.equal(isMember, false);319 done();320 });321 });322 it('should return true if element is in sorted set', function(done) {323 db.isSortedSetMember('sortedSetTest1', 'value2', function(err, isMember) {324 assert.equal(err, null);325 assert.equal(arguments.length, 2);326 assert.deepEqual(isMember, true);327 done();328 });329 });330 });331 describe('isSortedSetMembers()', function() {332 it('should return an array of booleans indicating membership', function(done) {333 db.isSortedSetMembers('sortedSetTest1', ['value1', 'value2', 'value5'], function(err, isMembers) {334 assert.equal(err, null);335 assert.equal(arguments.length, 2);336 assert.deepEqual(isMembers, [true, true, false]);337 done();338 });339 });340 });341 describe('isMemberOfSortedSets', function() {342 it('should return true for members false for non members', function(done) {343 db.isMemberOfSortedSets(['doesnotexist', 'sortedSetTest1', 'sortedSetTest2'], 'value2', function(err, isMembers) {344 assert.equal(err, null);345 assert.equal(arguments.length, 2);346 assert.deepEqual(isMembers, [false, true, false]);347 done();348 });349 });350 });351 describe('getSortedSetsMembers', function() {352 it('should return members of multiple sorted sets', function(done) {353 db.getSortedSetsMembers(['doesnotexist', 'sortedSetTest1'], function(err, sortedSets) {354 assert.equal(err, null);355 assert.equal(arguments.length, 2);356 assert.deepEqual(sortedSets[0], []);357 sortedSets[0].forEach(function(element) {358 assert.notEqual(['value1', 'value2', 'value3'].indexOf(element), -1);359 });360 done();361 });362 });363 });364 describe('getSortedSetUnion()', function() {365 it('should return an array of values from both sorted sets sorted by scores lowest to highest', function(done) {366 db.getSortedSetUnion(['sortedSetTest2', 'sortedSetTest3'], 0, -1, function(err, values) {367 assert.equal(err, null);368 assert.equal(arguments.length, 2);369 assert.deepEqual(values, ['value1', 'value2', 'value4']);370 done();371 });372 });373 });374 describe('getSortedSetRevUnion()', function() {375 it('should return an array of values from both sorted sets sorted by scores highest to lowest', function(done) {376 db.getSortedSetRevUnion(['sortedSetTest2', 'sortedSetTest3'], 0, -1, function(err, values) {377 assert.equal(err, null);378 assert.equal(arguments.length, 2);379 assert.deepEqual(values, ['value4', 'value2', 'value1']);380 done();381 });382 });383 });384 describe('sortedSetIncrBy()', function() {385 it('should create a sorted set with a field set to 1', function(done) {386 db.sortedSetIncrBy('sortedIncr', 1, 'field1', function(err, newValue) {387 assert.equal(err, null);388 assert.equal(arguments.length, 2);389 assert.equal(newValue, 1);390 db.sortedSetScore('sortedIncr', 'field1', function(err, score) {391 assert.equal(err, null);392 assert.equal(score, 1);393 done();394 });395 });396 });397 it('should increment a field of a sorted set by 5', function(done) {398 db.sortedSetIncrBy('sortedIncr', 5, 'field1', function(err, newValue) {399 assert.equal(err, null);400 assert.equal(arguments.length, 2);401 assert.equal(newValue, 6);402 db.sortedSetScore('sortedIncr', 'field1', function(err, score) {403 assert.equal(err, null);404 assert.equal(score, 6);405 done();406 });407 });408 });409 });410 describe('sortedSetRemove()', function() {411 before(function(done) {412 db.sortedSetAdd('sorted3', [1, 2], ['value1', 'value2'], done);413 });414 it('should remove an element from a sorted set', function(done) {415 db.sortedSetRemove('sorted3', 'value2', function(err) {416 assert.equal(err, null);417 assert.equal(arguments.length, 1);418 db.isSortedSetMember('sorted3', 'value2', function(err, isMember) {419 assert.equal(err, null);420 assert.equal(isMember, false);421 done();422 });423 });424 });425 });426 describe('sortedSetsRemove()', function() {427 before(function(done) {428 async.parallel([429 async.apply(db.sortedSetAdd, 'sorted4', [1,2], ['value1', 'value2']),430 async.apply(db.sortedSetAdd, 'sorted5', [1,2], ['value1', 'value3']),431 ], done);432 });433 it('should remove element from multiple sorted sets', function(done) {434 db.sortedSetsRemove(['sorted4', 'sorted5'], 'value1', function(err) {435 assert.equal(err, null);436 assert.equal(arguments.length, 1);437 db.sortedSetsScore(['sorted4', 'sorted5'], 'value1', function(err, scores) {438 assert.equal(err, null);439 assert.deepEqual(scores, [null, null]);440 done();441 });442 });443 });444 });445 describe('sortedSetsRemoveRangeByScore()', function() {446 before(function(done) {447 db.sortedSetAdd('sorted6', [1,2,3,4,5], ['value1','value2','value3','value4','value5'], done);448 });449 it('should remove elements with scores between min max inclusive', function(done) {450 db.sortedSetsRemoveRangeByScore(['sorted6'], 4, 5, function(err) {451 assert.equal(err, null);452 assert.equal(arguments.length, 1);453 db.getSortedSetRange('sorted6', 0, -1, function(err, values) {454 assert.equal(err, null);455 assert.deepEqual(values, ['value1', 'value2', 'value3']);456 done();457 });458 });459 });460 });461 after(function() {462 db.flushdb();463 });...

Full Screen

Full Screen

Utils.spec.ts

Source:Utils.spec.ts Github

copy

Full Screen

1require("jest")2import {getSortedInsertPosition} from "./Utils"3import {getSortedGE} from "./Utils"4import {getSortedGT} from "./Utils"5import {getSortedLE} from "./Utils"6import {getSortedLT} from "./Utils"7import {getSuperclass} from "./Utils"8import {isGetter} from "./Utils"9import {isSetter} from "./Utils"10describe("Utils", () => {11 describe("sorted list methods", () => {12 const compare0 = (v: number) => v - 013 const compare1 = (v: number) => v - 114 const compare2 = (v: number) => v - 215 const compare3 = (v: number) => v - 316 const compare4 = (v: number) => v - 417 const compare5 = (v: number) => v - 518 const compare6 = (v: number) => v - 619 const compare7 = (v: number) => v - 720 const compare8 = (v: number) => v - 821 const l = [1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 7, 7, 7]22 describe("getSortedInsertPosition", () => {23 it("should return the expected values", () => {24 expect(getSortedInsertPosition([], compare4)).toBe(0)25 expect(getSortedInsertPosition([3], compare4)).toBe(1)26 expect(getSortedInsertPosition([5], compare4)).toBe(0)27 expect(getSortedInsertPosition([4], compare4)).toBe(0)28 expect(getSortedInsertPosition([1, 2], compare4)).toBe(2)29 expect(getSortedInsertPosition([5, 6], compare4)).toBe(0)30 expect(getSortedInsertPosition([1, 5, 6], compare4)).toBe(1)31 expect(getSortedInsertPosition([1, 2, 3, 5], compare4)).toBe(3)32 })33 })34 describe("getSortedGE", () => {35 it("should return the expected values", () => {36 expect(getSortedGE([], compare4)).toBe(0)37 expect(getSortedGE([5], compare4)).toBe(0)38 expect(getSortedGE([3], compare4)).toBe(1)39 expect(getSortedGE([4], compare4)).toBe(0)40 expect(getSortedGE([1, 2, 3, 4, 5, 6, 7], compare4)).toBe(3)41 expect(getSortedGE([1, 2, 3, 4, 5, 6, 7], compare5)).toBe(4)42 expect(getSortedGE(l, compare0)).toBe(0)43 expect(getSortedGE(l, compare1)).toBe(0)44 expect(getSortedGE(l, compare2)).toBe(1)45 expect(getSortedGE(l, compare3)).toBe(2)46 expect(getSortedGE(l, compare4)).toBe(5)47 expect(getSortedGE(l, compare5)).toBe(10)48 expect(getSortedGE(l, compare6)).toBe(12)49 expect(getSortedGE(l, compare7)).toBe(12)50 expect(getSortedGE(l, compare8)).toBe(15)51 })52 })53 describe("getSortedGT", () => {54 it("should return the expected values", () => {55 expect(getSortedGT([], compare4)).toBe(0)56 expect(getSortedGT([5], compare4)).toBe(0)57 expect(getSortedGT([3], compare4)).toBe(1)58 expect(getSortedGT([4], compare4)).toBe(1)59 expect(getSortedGT([1, 2, 3, 4, 5, 6, 7], compare4)).toBe(4)60 expect(getSortedGT([1, 2, 3, 4, 5, 6, 7], compare5)).toBe(5)61 expect(getSortedGT(l, compare0)).toBe(0)62 expect(getSortedGT(l, compare1)).toBe(1)63 expect(getSortedGT(l, compare2)).toBe(2)64 expect(getSortedGT(l, compare3)).toBe(5)65 expect(getSortedGT(l, compare4)).toBe(10)66 expect(getSortedGT(l, compare5)).toBe(12)67 expect(getSortedGT(l, compare6)).toBe(12)68 expect(getSortedGT(l, compare7)).toBe(15)69 expect(getSortedGT(l, compare8)).toBe(15)70 })71 })72 describe("getSortedLE", () => {73 it("should return the expected values", () => {74 expect(getSortedLE([], compare4)).toBe(-1)75 expect(getSortedLE([5], compare4)).toBe(-1)76 expect(getSortedLE([3], compare4)).toBe(0)77 expect(getSortedLE([4], compare4)).toBe(0)78 expect(getSortedLE([1, 2, 3, 4, 5, 6, 7], compare4)).toBe(3)79 expect(getSortedGE([1, 2, 3, 4, 5, 6, 7], compare5)).toBe(4)80 expect(getSortedLE(l, compare0)).toBe(-1)81 expect(getSortedLE(l, compare1)).toBe(0)82 expect(getSortedLE(l, compare2)).toBe(1)83 expect(getSortedLE(l, compare3)).toBe(4)84 expect(getSortedLE(l, compare4)).toBe(9)85 expect(getSortedLE(l, compare5)).toBe(11)86 expect(getSortedLE(l, compare6)).toBe(11)87 expect(getSortedLE(l, compare7)).toBe(14)88 })89 })90 describe("getSortedLT", () => {91 it("should return the expected values", () => {92 expect(getSortedLT([], compare4)).toBe(-1)93 expect(getSortedLT([5], compare4)).toBe(-1)94 expect(getSortedLT([3], compare4)).toBe(0)95 expect(getSortedLT([4], compare4)).toBe(-1)96 expect(getSortedLT([1, 2, 3, 4, 5, 6, 7], compare4)).toBe(2)97 expect(getSortedLT([1, 2, 3, 4, 5, 6, 7], compare5)).toBe(3)98 expect(getSortedLT(l, compare0)).toBe(-1)99 expect(getSortedLT(l, compare1)).toBe(-1)100 expect(getSortedLT(l, compare2)).toBe(0)101 expect(getSortedLT(l, compare3)).toBe(1)102 expect(getSortedLT(l, compare4)).toBe(4)103 expect(getSortedLT(l, compare5)).toBe(9)104 expect(getSortedLT(l, compare6)).toBe(11)105 expect(getSortedLT(l, compare7)).toBe(11)106 expect(getSortedLT(l, compare8)).toBe(14)107 })108 })109 })110 describe("getSuperclass", () => {111 class A {}112 class B extends A {}113 class C1 extends B {}114 class C2 extends B {}115 expect(getSuperclass(A)).toBe(null)116 expect(getSuperclass(B)).toBe(A)117 expect(getSuperclass(C1)).toBe(B)118 expect(getSuperclass(C2)).toBe(B)119 })120 describe("isGetter", () => {121 it("should return false for a nonexistent property", () => {122 class A {}123 const a = new A()124 expect(isGetter(a, "val")).toBe(false)125 })126 it("should return false for a property set on the object", () => {127 class A {128 val!: string129 }130 const a = new A()131 a.val = "abc"132 expect(isGetter(a, "val")).toBe(false)133 })134 it("should return true for a getter on the class", () => {135 class A {136 get val() {137 return 0138 }139 }140 const a = new A()141 expect(isGetter(a, "val")).toBe(true)142 })143 it("should return true for a getter on the superclass", () => {144 class A {145 get val() {146 return 0147 }148 }149 class A2 extends A {}150 const a = new A2()151 expect(isGetter(a, "val")).toBe(true)152 })153 it("should return false for a property shadowing a getter", () => {154 class A {155 get val() {156 return 0157 }158 }159 const a = new A()160 Object.defineProperty(a, "val", {value: 10})161 expect(isGetter(a, "val")).toBe(false)162 })163 })164 describe("isSetter", () => {165 it("should return false for a nonexistent property", () => {166 class A {}167 const a = new A()168 expect(isSetter(a, "val")).toBe(false)169 })170 it("should return false for a property set on the object", () => {171 class A {172 val!: string173 }174 const a = new A()175 a.val = "abc"176 expect(isSetter(a, "val")).toBe(false)177 })178 it("should return true for a setter on the class", () => {179 class A {180 set val(v: string) {}181 }182 const a = new A()183 expect(isSetter(a, "val")).toBe(true)184 })185 it("should return true for a setter on the superclass", () => {186 class A {187 set val(v: string) {}188 }189 class A2 extends A {}190 const a = new A2()191 expect(isSetter(a, "val")).toBe(true)192 })193 it("should return false for a property shadowing a setter", () => {194 class A {195 set val(v: string) {}196 }197 const a = new A()198 Object.defineProperty(a, "val", {value: 10})199 expect(isSetter(a, "val")).toBe(false)200 })201 })...

Full Screen

Full Screen

arrayUtils.spec.ts

Source:arrayUtils.spec.ts Github

copy

Full Screen

1import fc from "fast-check";2import { head } from "ramda";3import { findAdjacentToKeyInIndex, findNextPivot } from "../arrayUtils";4describe("find adjacent to pivot", () => {5 test("should find adjacent elements", () => {6 fc.assert(7 fc.property(8 fc.set(9 fc.string(),10 { minLength: 1 }11 )12 .chain(sortedArray =>13 fc14 .nat(sortedArray.length -1) // pivot15 .chain(pivot =>16 fc.tuple(17 fc.nat(pivot), // adjacent left bound18 fc.integer(pivot, sortedArray.length - 1) // adjacent right bound19 )20 .chain(([adjacentLeftBound, adjacentRightBound]) =>21 fc.tuple(22 fc.nat(23 adjacentLeftBound > 124 ? adjacentLeftBound - 225 : 026 ) // left space after adjacent27 .chain(leftSpace =>28 fc.shuffledSubarray(sortedArray.slice(0, leftSpace))29 ),30 fc.integer(31 (adjacentRightBound + 2 < sortedArray.length - 1)32 ? adjacentRightBound + 233 : sortedArray.length - 1,34 sortedArray.length - 135 ) // right space after adjacent36 .chain(rightSpace =>37 fc.shuffledSubarray(sortedArray.slice(rightSpace, sortedArray.length - 1)) 38 )39 , // right space after adjacent40 )41 .map(([left, right]) => {42 const adjacent = sortedArray.slice(adjacentLeftBound, adjacentRightBound + 1);43 return {44 sortedArray: sortedArray,45 pivot: sortedArray[pivot],46 subarray: [47 ...left,48 ...adjacent,49 ...right,50 ],51 adjacent,52 };53 })54 )55 )56 )57 ,58 ({59 pivot,60 sortedArray,61 subarray,62 adjacent63 }) => {64 expect(65 findAdjacentToKeyInIndex(66 sortedArray,67 subarray,68 pivot69 )70 )71 .toEqual(72 adjacent73 );74 }75 ),76 {77 verbose: true78 }79 );80 });81});82describe("find next pivot", () => {83 test("should return 0 if theres nothing else selected", () => {84 fc.assert(85 fc.property(86 fc.set(87 fc.string(),88 { minLength: 1 }89 )90 .chain(sortedArray =>91 fc.record({92 sortedArray: fc.constant(sortedArray),93 previousPivot: fc94 .nat(sortedArray.length - 1)95 .map(i => sortedArray[i])96 })97 )98 ,99 ({100 previousPivot,101 sortedArray102 }) => {103 expect(104 findNextPivot(105 sortedArray,106 [],107 previousPivot108 )109 ).toEqual(head(sortedArray)!);110 }111 )112 );113 });114 test("should return pivot if exits on left side", () => {115 fc.assert(116 fc.property(117 fc.set(118 fc.string(),119 { minLength: 2 }120 )121 .chain(sortedArray =>122 fc123 .integer(1, sortedArray.length - 1)124 .chain(i =>125 fc126 .nat(i - 1)127 .chain(nextPivot =>128 fc129 .shuffledSubarray(sortedArray.slice(0, nextPivot))130 .map(selection => ({131 previousPivot: sortedArray[i],132 sortedArray: sortedArray,133 nextPivot: sortedArray[nextPivot],134 selection: selection.concat([sortedArray[nextPivot]])135 }))136 )137 ),138 )139 ,140 ({141 previousPivot,142 sortedArray,143 selection,144 nextPivot145 }) => {146 expect(147 findNextPivot(148 sortedArray,149 selection,150 previousPivot151 )152 ).toEqual(nextPivot);153 }154 )155 );156 });157 test("should return pivot if exits on right side", () => {158 fc.assert(159 fc.property(160 fc.set(161 fc.string(),162 { minLength: 2 }163 )164 .chain(sortedArray =>165 fc166 .nat(sortedArray.length - 2)167 .chain(previousPivot =>168 fc169 .integer(previousPivot + 1, sortedArray.length - 1)170 .chain(nextPivot =>171 fc.172 tuple(173 fc.shuffledSubarray(sortedArray.slice(0, previousPivot)),174 fc.shuffledSubarray(sortedArray.slice(nextPivot + 1, sortedArray.length - 1))175 )176 .map(([left, right]) => ({177 previousPivot: sortedArray[previousPivot],178 sortedArray: sortedArray,179 nextPivot: sortedArray[nextPivot],180 selection: left.concat([sortedArray[nextPivot]]).concat(right)181 }))182 )183 ),184 )185 ,186 ({187 previousPivot,188 sortedArray,189 selection,190 nextPivot191 }) => {192 expect(193 findNextPivot(194 sortedArray,195 selection,196 previousPivot197 )198 ).toEqual(nextPivot);199 }200 )201 );202 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var fc = require('fast-check');2var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];3console.log(fc.sorted(arr));4var fc = require('fast-check');5var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];6console.log(fc.sorted(arr));7var fc = require('fast-check');8var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];9console.log(fc.sorted(arr));10var fc = require('fast-check');11var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];12console.log(fc.sorted(arr));13var fc = require('fast-check');14var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];15console.log(fc.sorted(arr));

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2fc.assert(3 fc.property(4 fc.array(fc.nat()),5 (arr) => {6 const sorted = arr.slice().sort();7 return arr.length === sorted.length && arr.every((v, idx) => v === sorted[idx]);8 }9);10const fc = require('fast-check');11fc.assert(12 fc.property(13 fc.array(fc.nat()),14 (arr) => {15 const sorted = arr.slice().sort();16 return arr.length === sorted.length && arr.every((v, idx) => v === sorted[idx]);17 }18);19import React from 'react';20import renderer from 'react-test-renderer';21import { render, screen } from '@testing-library/react';22import '@testing-library/jest-dom';23import { BrowserRouter } from 'react-router-dom';24import { Provider } from 'react-redux';25import store from '../../redux/configureStore';26import Navbar from '../../components/Navbar';27describe('Navbar', () => {28 it('should render correctly', () => {29 .create(30 <Provider store={store}>31 .toJSON();32 expect(tree).toMatchSnapshot();33 });34});

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { sorted } = require('fast-check-monorepo');3const sortedArray = sorted(fc.nat());4fc.assert(5 fc.property(sortedArray, (arr) => {6 for (let i = 0; i < arr.length - 1; i++) {7 if (arr[i] > arr[i + 1]) {8 return false;9 }10 }11 return true;12 })13);14const fc = require('fast-check');15const { sorted } = require('fast-check-monorepo');16const sortedArray = sorted(fc.nat());17fc.assert(18 fc.property(sortedArray, (arr) => {19 for (let i = 0; i < arr.length - 1; i++) {20 if (arr[i] > arr[i + 1]) {21 return false;22 }23 }24 return true;25 })26);27const fc = require('fast-check');28const { sorted } = require('fast-check-monorepo');29const sortedArray = sorted(fc.nat());30fc.assert(31 fc.property(sortedArray, (arr) => {32 for (let i = 0; i < arr.length - 1; i++) {33 if (arr[i] > arr[i + 1]) {34 return false;35 }36 }37 return true;38 })39);40const fc = require('fast-check');41const { sorted } = require('fast-check-monorepo');42const sortedArray = sorted(fc.nat());43fc.assert(44 fc.property(sortedArray, (arr) => {45 for (let i = 0; i < arr.length - 1; i++) {46 if (arr[i] > arr[i + 1]) {47 return false;48 }49 }50 return true;51 })52);53const fc = require('fast-check');54const { sorted } = require('fast-check-monorepo');55const sortedArray = sorted(fc.nat());56fc.assert(57 fc.property(sortedArray, (arr) => {

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const { sorted } = require('fast-check-monorepo');3const test = () => {4 fc.assert(5 fc.property(fc.array(fc.integer(), 1, 100), (arr) => {6 return sorted(arr);7 })8 );9};10test();11 triggerUncaughtException(err

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const {sorted} = require('fast-check-monorepo');3const {sorted} = require('./index.js');4fc.assert(5 fc.property(fc.array(fc.integer()), (arr) => {6 const sortedArr = sorted(arr);7 return sortedArr[0] === Math.min(...arr);8 })9);10const fc = require('fast-check');11const {sorted} = require('fast-check-monorepo');12const {sorted} = require('./index.js');13fc.assert(14 fc.property(fc.array(fc.integer()), (arr) => {15 const sortedArr = sorted(arr);16 return sortedArr[sortedArr.length - 1] === Math.max(...arr);17 })18);19const fc = require('fast-check');20const {sorted} = require('fast-check-monorepo');21const {sorted} = require('./index.js');22fc.assert(23 fc.property(fc.array(fc.integer()), (arr) => {24 const sortedArr = sorted(arr);25 return sortedArr.length === arr.length;26 })27);28const fc = require('fast-check');29const {sorted} = require('fast-check-monorepo');30const {sorted} = require('./index.js');31fc.assert(32 fc.property(fc.array(fc.integer()), (arr) => {33 const sortedArr = sorted(arr);34 return arr.every((item) => sortedArr.includes(item));35 })36);37const fc = require('fast-check');38const {sorted} = require('fast-check-monorepo');39const {sorted} = require('./index.js');40fc.assert(41 fc.property(fc.array(fc.integer()), (arr) => {42 const sortedArr = sorted(arr);43 return sortedArr.every((item, index) => {44 return index === 0 || item >= sortedArr[index - 1];45 });46 })47);48const fc = require('fast-check');49const {sorted} = require('fast-check-monorepo');50const {sorted}

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const {sorted} = require('fast-check-monorepo');3const {sorted} = require('fast-check-monorepo');4fc.assert(5 fc.property(sorted(), (arr) => {6 for (let i = 0; i < arr.length - 1; i++) {7 if (arr[i] > arr[i + 1]) {8 return false;9 }10 }11 return true;12 })13);14const fc = require('fast-check');15const {sorted} = require('fast-check-monorepo');16const {sorted} = require('fast-check-monorepo');17fc.assert(18 fc.property(sorted(), (arr) => {19 for (let i = 0; i < arr.length - 1; i++) {20 if (arr[i] > arr[i + 1]) {21 return false;22 }23 }24 return true;25 })26);27const fc = require('fast-check');28const {sorted} = require('fast-check-monorepo');29const {sorted} = require('fast-check-monorepo');30fc.assert(31 fc.property(sorted(), (arr) => {32 for (let i = 0; i < arr.length - 1; i++) {33 if (arr[i] > arr[i + 1]) {34 return false;35 }36 }37 return true;38 })39);40const fc = require('fast-check');41const {sorted} = require('fast-check-monorepo');42const {sorted} = require('fast-check-monorepo');43fc.assert(44 fc.property(sorted(), (arr) => {45 for (let i = 0; i < arr.length - 1; i++) {46 if (arr[i] > arr[i + 1]) {47 return false;48 }49 }50 return true;51 })52);53const fc = require('fast-check');54const {sorted} = require('fast-check-monorepo');55const {sorted} = require('fast-check-monorepo');

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const assert = require('assert');3const { sorted } = require('fast-check-monorepo');4const { isSorted } = require('fast-check-monorepo');5const sortedArb = sorted(fc.nat());6fc.assert(7 fc.property(sortedArb, (arr) => {8 assert.ok(isSorted(arr));9 })10);11const fc = require('fast-check');12const assert = require('assert');13const { sorted } = require('fast-check-monorepo');14const { isSorted } = require('fast-check-monorepo');15const sortedArb = sorted(fc.nat());16fc.assert(17 fc.property(sortedArb, (arr) => {18 assert.ok(isSorted(arr));19 })20);21const fc = require('fast-check');22const assert = require('assert');23const { sorted } = require('fast-check-monorepo');24const { isSorted } = require('fast-check-monorepo');25const sortedArb = sorted(fc.nat());26fc.assert(27 fc.property(sortedArb, (arr) => {28 assert.ok(isSorted(arr));29 })30);31const fc = require('fast-check');32const assert = require('assert');33const { sorted } = require('fast-check-monorepo');34const { isSorted } = require('fast-check-monorepo');35const sortedArb = sorted(fc.nat());36fc.assert(37 fc.property(sortedArb, (arr) => {38 assert.ok(isSorted(arr));39 })40);41const fc = require('fast-check');42const assert = require('assert');43const { sorted } = require('fast-check-monorepo');44const { isSorted } = require('fast-check-monorepo');45const sortedArb = sorted(fc.nat());46fc.assert(47 fc.property(sortedArb, (arr) => {48 assert.ok(isSorted(arr));49 })50);51const fc = require('fast-check');52const assert = require('

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2const sorted = require('fast-check/lib/types/sorted');3const fcSorted = sorted(fc.integer());4fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {5 return a <= b;6}));7const fc = require('fast-check');8const sorted = require('fast-check/lib/types/sorted');9const fcSorted = sorted(fc.integer());10fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {11 return a <= b;12}));13const fc = require('fast-check');14const sorted = require('fast-check/lib/types/sorted');15const fcSorted = sorted(fc.integer());16fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {17 return a <= b;18}));19const fc = require('fast-check');20const sorted = require('fast-check/lib/types/sorted');21const fcSorted = sorted(fc.integer());22fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {23 return a <= b;24}));25const fc = require('fast-check');26const sorted = require('fast-check/lib/types/sorted');27const fcSorted = sorted(fc.integer());28fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {29 return a <= b;30}));31const fc = require('fast-check');32const sorted = require('fast-check/lib/types/sorted');33const fcSorted = sorted(fc.integer());34fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {35 return a <= b;36}));37const fc = require('fast-check');38const sorted = require('fast-check/lib/types/sorted');39const fcSorted = sorted(fc.integer());40fc.assert(fc.property(fcSorted, fcSorted, (a, b) => {41 return a <= b;42}));43const fc = require('fast-check');44const sorted = require('fast-check/lib/types/sorted');45const fcSorted = sorted(fc.integer());46fc.assert(fc.property(fcSorted

Full Screen

Using AI Code Generation

copy

Full Screen

1const { sorted } = require('fast-check');2const { fc } = require('fast-check-monorepo');3const { check } = fc;4const isSorted = (arr) => {5 for (let i = 1; i < arr.length; i++) {6 if (arr[i - 1] > arr[i]) {7 return false;8 }9 }10 return true;11};12const sortedProperty = sorted((a, b) => a - b).smap(13 (arr) => arr.map((x) => x * 2),14 (arr) => arr.map((x) => x / 2),15 (arr) => arr.map((x) => x + 1)16);17check(sortedProperty, { numRuns: 1000 }).then(() => console.log('OK'));18const { sorted } = require('fast-check');19const { fc } = require('fast-check-monorepo');20const { check } = fc;21const isSorted = (arr) => {22 for (let i = 1; i < arr.length; i++) {23 if (arr[i - 1] > arr[i]) {24 return false;25 }26 }27 return true;28};29const sortedProperty = sorted((a, b) => a - b).smap(30 (arr) => arr.map((x) => x * 2),31 (arr) => arr.map((x) => x / 2),32 (arr) => arr.map((x) => x + 1)33);34check(sortedProperty, { numRuns: 1000 }).then(() => console.log('OK'));35const { sorted } = require('fast-check-monorepo');36const { fc } = require('fast-check-monorepo');37const { check } = fc;38const isSorted = (arr) => {39 for (let i = 1; i < arr.length; i++) {40 if (arr[i - 1] > arr[i]) {41 return false;42 }43 }44 return true;45};

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fast-check-monorepo automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful