The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2013.11.14-01-08'
}).use('gallery-array-iterate', function(Y) {
var a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21],
values = [];
Y.Array.iterate(a, -4, function (value, index) {
values.push('a[' + index + '] = ' + value);
if (index === 13) {
return true;
}
});
alert(values.join(', '));
// a[21] = 21, a[17] = 17, a[13] = 13
});
---------- start logs from yogi.stdout.log ---------- yogi [info] using yogi@0.1.11 on node@0.10.21 yogi [info] using module: gallery-array-iterate yogi [info] running with shifter shifter [info] racing to find the closest .shifter.json file shifter [info] revving up shifter [info] looking for build.json file shifter [info] found build.json file, shifting shifter [info] putting the hammer down, let's build this thing! shifter [info] munging in loader meta data into build.json shifter [info] putting the hammer down shifter [info] shifting into gear for gallery-array-iterate shifter [queu] file has changed, continuing build shifter [queu] writing RAW file shifter [queu] compressing gallery-array-iterate/gallery-array-iterate.js with UglifyJS shifter [queu] writing -min file shifter [info] shifting for coverage shifter [info] shifting assets for gallery-array-iterate shifter [queu] coverage file read, starting coverage for: gallery-array-iterate/gallery-array-iterate.js shifter [info] istanbul providing coverage shifter [queu] instrumenting with istanbul shifter [queu] writing coverage file to gallery-array-iterate/gallery-array-iterate-coverage.js shifter [info] done racing, the gears are toast shifter [info] finished in 0.067 seconds, pretty fast huh? yogi [info] build complete yogi [info] testing module now yogi [info] prepping grover tests yogi [info] adding tests route yogi [info] launching xdr server on port 5001 yogi [info] listening on: http://127.0.0.1:5000 yogi [info] turning on coverage support in grover Starting Grover on 1 files with PhantomJS@1.9.1 Running 15 concurrent tests at a time. Using a 120 second timeout per test. ✔ [gallery-array-iterate]: Passed: 7 Failed: 0 Total: 7 (ignored 0) (0.069 seconds) 100% Writing files in JSON format to: /src/gallery-array-iterate/logs/tests.json -------------------------------+-----------+-----------+-----------+-----------+ File | % Stmts |% Branches | % Funcs | % Lines | -------------------------------+-----------+-----------+-----------+-----------+ gallery-array-iterate/ | 100 | 100 | 100 | 100 | gallery-array-iterate.js | 100 | 100 | 100 | 100 | -------------------------------+-----------+-----------+-----------+-----------+ All files | 100 | 100 | 100 | 100 | -------------------------------+-----------+-----------+-----------+-----------+ =============================== Coverage summary =============================== Statements : 100% ( 12/12 ) Branches : 100% ( 10/10 ) Functions : 100% ( 3/3 ) Lines : 100% ( 12/12 ) ================================================================================ ---------------------------------------------------------------- ✔ [Total]: Passed: 7 Failed: 0 Total: 7 (ignored 0) (0.069 seconds) [Grover Execution Timer] 1.206 seconds yogi [info] grover tests complete ---------- end logs from yogi.stdout.log ---------- ---------- start logs from yogi.stderr.log ---------- no data logged ---------- end logs from yogi.stderr.log ----------
All code on this site is licensed under the BSD License unless stated otherwise.