Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'dev-3.x' into tree-traverse

Conflicts:
	src/tree/HISTORY.md
  • Loading branch information...
commit c44d34db4018856aa168c6791e53b0bf9b0dc554 2 parents 16bb70f + e5ad3ee
@rgrove rgrove authored
Showing with 329 additions and 15,287 deletions.
  1. +1 −0  .gitignore
  2. +4 −12 .travis.yml
  3. +57 −0 BUILD.md
  4. +82 −0 Gruntfile.js
  5. +5 −293 build/align-plugin/align-plugin-coverage.js
  6. +5 −925 build/anim-base/anim-base-coverage.js
  7. +5 −105 build/anim-color/anim-color-coverage.js
  8. +5 −112 build/anim-curve/anim-curve-coverage.js
  9. +5 −490 build/anim-easing/anim-easing-coverage.js
  10. +5 −70 build/anim-node-plugin/anim-node-plugin-coverage.js
  11. +5 −83 build/anim-scroll/anim-scroll-coverage.js
  12. +5 −291 build/anim-shape/anim-shape-coverage.js
  13. +5 −66 build/anim-xy/anim-xy-coverage.js
  14. +5 −1,273 build/app-base/app-base-coverage.js
  15. +5 −308 build/app-content/app-content-coverage.js
  16. +5 −479 build/app-transitions-native/app-transitions-native-coverage.js
  17. +5 −288 build/app-transitions/app-transitions-coverage.js
  18. +5 −542 build/array-extras/array-extras-coverage.js
  19. +5 −82 build/array-invoke/array-invoke-coverage.js
  20. +5 −138 build/arraylist-add/arraylist-add-coverage.js
  21. +5 −88 build/arraylist-filter/arraylist-filter-coverage.js
  22. +5 −294 build/arraylist/arraylist-coverage.js
  23. +5 −117 build/arraysort/arraysort-coverage.js
  24. +5 −678 build/async-queue/async-queue-coverage.js
  25. +5 −156 build/attribute-base/attribute-base-coverage.js
  26. +5 −94 build/attribute-complex/attribute-complex-coverage.js
  27. +5 −1,411 build/attribute-core/attribute-core-coverage.js
  28. +5 −215 build/attribute-extras/attribute-extras-coverage.js
  29. +5 −285 build/attribute-observable/attribute-observable-coverage.js
  30. +5 −1,822 build/autocomplete-base/autocomplete-base-coverage.js
  31. +5 −211 build/autocomplete-filters-accentfold/autocomplete-filters-accentfold-coverage.js
  32. +5 −327 build/autocomplete-filters/autocomplete-filters-coverage.js
  33. +5 −165 build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-coverage.js
  34. +5 −266 build/autocomplete-highlighters/autocomplete-highlighters-coverage.js
  35. +5 −274 build/autocomplete-list-keys/autocomplete-list-keys-coverage.js
  36. +5 −1,133 build/autocomplete-list/autocomplete-list-coverage.js
  37. +5 −92 build/autocomplete-plugin/autocomplete-plugin-coverage.js
  38. +5 −641 build/autocomplete-sources/autocomplete-sources-coverage.js
  39. +5 −997 build/axis-base/axis-base-coverage.js
  40. +5 −270 build/axis-category-base/axis-category-base-coverage.js
  41. +5 −194 build/axis-category/axis-category-coverage.js
Sorry, we could not display the entire diff because too many files (493) changed.
View
1  .gitignore
@@ -1,4 +1,5 @@
build-npm/
+release/
build_docs/
build_rollup_tmp*/
build_tmp*/
View
16 .travis.yml
@@ -1,19 +1,11 @@
language: node_js
node_js:
- "0.8"
- - "0.9"
- "0.10"
-branches:
- only:
- - master
- - 3.x
- - dev-master
- - dev-3.x
-before_install:
- - ./src/common/travis/before.sh
-install:
- - ./src/common/travis/install.sh
script:
- - ./src/common/travis/test.sh
+ - grunt travis
git:
depth: 30
+branches:
+ except:
+ - live-docs
View
57 BUILD.md
@@ -0,0 +1,57 @@
+Grunt Building
+==============
+
+Our dev and release builds are handled by [Grunt](http://gruntjs.com/).
+
+Installation
+------------
+
+First you need to install the `grunt-cli` (`npm -g install grunt-cli`)
+
+After cloning you can simply do an NPM install.
+
+`npm install`
+
+This will install the tools needed locally and build the library and npm package.
+
+Shortcuts
+---------
+
+ * `grunt build` Runs a `yogi` build.
+ * `grunt npm` Runs the npm build.
+ * `grunt test` Runs a `yogi test` on the entire lib.
+ * `grunt test-cli` Runs only the CLI tests.
+ * `grunt travis` Runs a custom build/test just for Travis CI.
+ * `grunt release` Runs a release build (more below)
+ * `grunt`, `grunt help`, `grunt yui` Will display build help.
+
+Release Build
+-------------
+
+You can do a full YUI release build with `grunt release`.
+
+This command uses two CLI options (`--release-version` and `--release-build`).
+
+ * `--release-version` The version to stamp the files with
+ * `--release-build` The build number of this release.
+
+If `--release-build` is not provided, the last Git sha (short version) will be used in it's place.
+
+Release builds are stored under: `./releases/[VERSION]/`
+
+The release build consists of the following artifacts:
+
+ * `dist release zip` Containing source, tests, HISTORY, api docs and landing pages.
+ * `cdn release zip` Contains the build dir stamped for a CDN release (CSS files processed for relative paths)
+ * `ssl cdn release zip` Same as above only tweaked for SSL access.
+ * `npm package` The npm package designed for a simple `npm publish`
+
+Other Builds
+------------
+
+We no longer require a `Makefile` for any of our modules, they have all been converted to `grunt` builds.
+
+ * `cssnormalize` Under `src/cssnormalize`, `grunt` will import the source.
+ * `handlebars` Under `src/handlebars`, `grunt` will import the source.
+ * `test` Under `src/test`, `grunt` will import the source.
+
View
82 Gruntfile.js
@@ -0,0 +1,82 @@
+module.exports = function(grunt) {
+
+ var cli = grunt.cli;
+
+ cli.optlist['release-version'] = {
+ info: 'Release Version',
+ type: String
+ };
+
+ cli.optlist['release-build'] = {
+ info: 'Release Build',
+ type: String
+ };
+
+ cli.optlist['cache-build'] = {
+ info: 'Cache the build',
+ type: Boolean
+ };
+
+ grunt.config.init({
+ version: grunt.option('release-version'),
+ build: grunt.option('release-build'),
+ buildtag: 'YUI <%= version %> (build <%= build %>)',
+ copyright: 'Copyright <%= grunt.template.today("yyyy") %> Yahoo! Inc. All rights reserved.',
+ license: 'Licensed under the BSD License.\nhttp://yuilibrary.com/license/',
+ compress: {
+ dist: {
+ files: [
+ {
+ expand: true,
+ cwd: 'release/<%= version %>/dist/',
+ src: ['**'],
+ dest: 'yui/'
+ }
+ ],
+ options: {
+ pretty: true,
+ archive: 'release/<%= version %>/archives/yui_<%= version %>.zip',
+ mode: 'zip',
+ level: 3
+ }
+ },
+ cdn: {
+ files: [
+ {
+ expand: true,
+ cwd: 'release/<%= version %>/cdn/',
+ dest: '<%= version %>/',
+ src: ['**']
+ }
+ ],
+ options: {
+ pretty: true,
+ archive: 'release/<%= version %>/archives/akamai_<%= version %>.zip',
+ mode: 'zip',
+ level: 3
+ }
+ },
+ 'cdn-ssl': {
+ files: [
+ {
+ expand: true,
+ cwd: 'release/<%= version %>/cdn-ssl/',
+ dest: '<%= version %>/',
+ src: ['**']
+ }
+ ],
+ options: {
+ pretty: true,
+ archive: 'release/<%= version %>/archives/akamaissl_<%= version %>.zip',
+ mode: 'zip',
+ level: 3
+ }
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-yui-contrib');
+ grunt.loadNpmTasks('grunt-contrib-compress');
+ grunt.registerTask('default', ['boot']);
+
+};
View
298 build/align-plugin/align-plugin-coverage.js
@@ -1,294 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/align-plugin/align-plugin.js']) {
+ __coverage__['build/align-plugin/align-plugin.js'] = {"path":"build/align-plugin/align-plugin.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":43}}},"2":{"name":"Align","line":20,"loc":{"start":{"line":20,"column":4},"end":{"line":20,"column":27}}},"3":{"name":"(anonymous_3)","line":58,"loc":{"start":{"line":58,"column":12},"end":{"line":58,"column":63}}},"4":{"name":"(anonymous_4)","line":103,"loc":{"start":{"line":103,"column":14},"end":{"line":103,"column":25}}},"5":{"name":"(anonymous_5)","line":108,"loc":{"start":{"line":108,"column":17},"end":{"line":108,"column":31}}},"6":{"name":"(anonymous_6)","line":118,"loc":{"start":{"line":118,"column":19},"end":{"line":118,"column":30}}},"7":{"name":"(anonymous_7)","line":120,"loc":{"start":{"line":120,"column":23},"end":{"line":120,"column":34}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":16},"end":{"line":133,"column":41}}},"9":{"name":"(anonymous_9)","line":143,"loc":{"start":{"line":143,"column":17},"end":{"line":143,"column":28}}},"10":{"name":"(anonymous_10)","line":152,"loc":{"start":{"line":152,"column":13},"end":{"line":152,"column":31}}},"11":{"name":"(anonymous_11)","line":156,"loc":{"start":{"line":156,"column":13},"end":{"line":156,"column":31}}},"12":{"name":"(anonymous_12)","line":160,"loc":{"start":{"line":160,"column":13},"end":{"line":160,"column":31}}},"13":{"name":"(anonymous_13)","line":164,"loc":{"start":{"line":164,"column":13},"end":{"line":164,"column":31}}},"14":{"name":"(anonymous_14)","line":168,"loc":{"start":{"line":168,"column":13},"end":{"line":168,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":193,"column":66}},"2":{"start":{"line":9,"column":4},"end":{"line":11,"column":30}},"3":{"start":{"line":20,"column":4},"end":{"line":24,"column":5}},"4":{"start":{"line":21,"column":8},"end":{"line":23,"column":9}},"5":{"start":{"line":22,"column":12},"end":{"line":22,"column":37}},"6":{"start":{"line":26,"column":4},"end":{"line":149,"column":6}},"7":{"start":{"line":60,"column":12},"end":{"line":60,"column":48}},"8":{"start":{"line":62,"column":12},"end":{"line":64,"column":13}},"9":{"start":{"line":63,"column":16},"end":{"line":63,"column":53}},"10":{"start":{"line":66,"column":12},"end":{"line":99,"column":13}},"11":{"start":{"line":67,"column":16},"end":{"line":77,"column":89}},"12":{"start":{"line":79,"column":16},"end":{"line":81,"column":17}},"13":{"start":{"line":80,"column":20},"end":{"line":80,"column":59}},"14":{"start":{"line":82,"column":16},"end":{"line":84,"column":17}},"15":{"start":{"line":83,"column":20},"end":{"line":83,"column":59}},"16":{"start":{"line":86,"column":16},"end":{"line":88,"column":17}},"17":{"start":{"line":87,"column":20},"end":{"line":87,"column":53}},"18":{"start":{"line":89,"column":16},"end":{"line":91,"column":17}},"19":{"start":{"line":90,"column":20},"end":{"line":90,"column":53}},"20":{"start":{"line":93,"column":16},"end":{"line":95,"column":17}},"21":{"start":{"line":94,"column":20},"end":{"line":94,"column":35}},"22":{"start":{"line":97,"column":16},"end":{"line":97,"column":43}},"23":{"start":{"line":100,"column":12},"end":{"line":100,"column":24}},"24":{"start":{"line":104,"column":12},"end":{"line":104,"column":48}},"25":{"start":{"line":105,"column":12},"end":{"line":105,"column":24}},"26":{"start":{"line":109,"column":12},"end":{"line":109,"column":38}},"27":{"start":{"line":110,"column":12},"end":{"line":114,"column":13}},"28":{"start":{"line":111,"column":16},"end":{"line":111,"column":76}},"29":{"start":{"line":112,"column":19},"end":{"line":114,"column":13}},"30":{"start":{"line":113,"column":16},"end":{"line":113,"column":32}},"31":{"start":{"line":119,"column":12},"end":{"line":119,"column":28}},"32":{"start":{"line":120,"column":12},"end":{"line":122,"column":15}},"33":{"start":{"line":121,"column":16},"end":{"line":121,"column":28}},"34":{"start":{"line":134,"column":12},"end":{"line":134,"column":48}},"35":{"start":{"line":135,"column":12},"end":{"line":135,"column":24}},"36":{"start":{"line":144,"column":12},"end":{"line":144,"column":38}},"37":{"start":{"line":145,"column":12},"end":{"line":147,"column":13}},"38":{"start":{"line":146,"column":16},"end":{"line":146,"column":32}},"39":{"start":{"line":151,"column":4},"end":{"line":181,"column":6}},"40":{"start":{"line":153,"column":12},"end":{"line":153,"column":22}},"41":{"start":{"line":157,"column":12},"end":{"line":157,"column":43}},"42":{"start":{"line":161,"column":12},"end":{"line":161,"column":43}},"43":{"start":{"line":165,"column":12},"end":{"line":165,"column":22}},"44":{"start":{"line":169,"column":12},"end":{"line":170,"column":25}},"45":{"start":{"line":172,"column":12},"end":{"line":177,"column":13}},"46":{"start":{"line":173,"column":16},"end":{"line":173,"column":63}},"47":{"start":{"line":175,"column":16},"end":{"line":175,"column":47}},"48":{"start":{"line":176,"column":16},"end":{"line":176,"column":59}},"49":{"start":{"line":179,"column":13},"end":{"line":179,"column":24}},"50":{"start":{"line":183,"column":4},"end":{"line":183,"column":25}},"51":{"start":{"line":184,"column":4},"end":{"line":184,"column":23}},"52":{"start":{"line":186,"column":4},"end":{"line":186,"column":40}},"53":{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},"54":{"start":{"line":189,"column":4},"end":{"line":189,"column":27}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":8}},{"start":{"line":21,"column":8},"end":{"line":21,"column":8}}]},"2":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},{"start":{"line":62,"column":12},"end":{"line":62,"column":12}}]},"3":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":12},"end":{"line":66,"column":12}},{"start":{"line":66,"column":12},"end":{"line":66,"column":12}}]},"4":{"line":74,"type":"cond-expr","locations":[{"start":{"line":74,"column":46},"end":{"line":74,"column":75}},{"start":{"line":74,"column":77},"end":{"line":74,"column":81}}]},"5":{"line":75,"type":"cond-expr","locations":[{"start":{"line":75,"column":72},"end":{"line":75,"column":101}},{"start":{"line":75,"column":104},"end":{"line":75,"column":108}}]},"6":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":33},"end":{"line":75,"column":44}},{"start":{"line":75,"column":48},"end":{"line":75,"column":68}}]},"7":{"line":76,"type":"cond-expr","locations":[{"start":{"line":76,"column":38},"end":{"line":76,"column":61}},{"start":{"line":76,"column":64},"end":{"line":76,"column":68}}]},"8":{"line":77,"type":"cond-expr","locations":[{"start":{"line":77,"column":58},"end":{"line":77,"column":81}},{"start":{"line":77,"column":84},"end":{"line":77,"column":88}}]},"9":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":31},"end":{"line":77,"column":36}},{"start":{"line":77,"column":40},"end":{"line":77,"column":54}}]},"10":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":16},"end":{"line":79,"column":16}},{"start":{"line":79,"column":16},"end":{"line":79,"column":16}}]},"11":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":16},"end":{"line":82,"column":16}},{"start":{"line":82,"column":16},"end":{"line":82,"column":16}}]},"12":{"line":86,"type":"if","locations":[{"start":{"line":86,"column":16},"end":{"line":86,"column":16}},{"start":{"line":86,"column":16},"end":{"line":86,"column":16}}]},"13":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":16},"end":{"line":89,"column":16}},{"start":{"line":89,"column":16},"end":{"line":89,"column":16}}]},"14":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":16},"end":{"line":93,"column":16}},{"start":{"line":93,"column":16},"end":{"line":93,"column":16}}]},"15":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":20},"end":{"line":93,"column":22}},{"start":{"line":93,"column":26},"end":{"line":93,"column":30}}]},"16":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":12}},{"start":{"line":110,"column":12},"end":{"line":110,"column":12}}]},"17":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":16},"end":{"line":110,"column":19}},{"start":{"line":110,"column":23},"end":{"line":110,"column":30}}]},"18":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":19},"end":{"line":112,"column":19}},{"start":{"line":112,"column":19},"end":{"line":112,"column":19}}]},"19":{"line":112,"type":"binary-expr","locations":[{"start":{"line":112,"column":23},"end":{"line":112,"column":27}},{"start":{"line":112,"column":31},"end":{"line":112,"column":37}}]},"20":{"line":145,"type":"if","locations":[{"start":{"line":145,"column":12},"end":{"line":145,"column":12}},{"start":{"line":145,"column":12},"end":{"line":145,"column":12}}]},"21":{"line":169,"type":"cond-expr","locations":[{"start":{"line":169,"column":65},"end":{"line":169,"column":66}},{"start":{"line":169,"column":69},"end":{"line":169,"column":70}}]},"22":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":24},"end":{"line":169,"column":40}},{"start":{"line":169,"column":44},"end":{"line":169,"column":60}}]},"23":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"24":{"line":176,"type":"cond-expr","locations":[{"start":{"line":176,"column":31},"end":{"line":176,"column":43}},{"start":{"line":176,"column":46},"end":{"line":176,"column":58}}]}},"code":["(function () { YUI.add('align-plugin', function (Y, NAME) {",""," /**"," * Provides advanced positioning support for Node via a Plugin"," * for centering and alignment. "," * @module align-plugin"," */",""," var OFFSET_WIDTH = 'offsetWidth',"," OFFSET_HEIGHT = 'offsetHeight',"," undefined = undefined;",""," /**"," * Node plugin which can be used to align a node with another node,"," * region, or the viewport."," *"," * @class Plugin.Align"," * @param {Object} User configuration object"," */"," function Align(config) {"," if (config.host) {"," this._host = config.host;"," }"," }"," "," Align.prototype = {"," /**"," * Aligns node with a point on another node or region."," * Possible alignment points are:"," * <dl>"," * <dt>tl</dt>"," * <dd>top left</dd>"," * <dt>tr</dt>"," * <dd>top right</dd>"," * <dt>bl</dt>"," * <dd>bottom left</dd>"," * <dt>br</dt>"," * <dd>bottom right</dd>"," * <dt>tc</dt>"," * <dd>top center</dd>"," * <dt>bc</dt>"," * <dd>bottom center</dd>"," * <dt>rc</dt>"," * <dd>right center</dd>"," * <dt>lc</dt>"," * <dd>left center</dd>"," * <dt>cc</dt>"," * <dd>center center</dd>"," * </dl>"," * @method to "," * @param region {String || Node || HTMLElement || Object} The node or"," * region to align with. Defaults to the viewport region."," * @param regionPoint {String} The point of the region to align with."," * @param point {String} The point of the node aligned to the region. "," * @param resize {Boolean} Whether or not the node should re-align when"," * the window is resized. Defaults to false."," */"," to: function(region, regionPoint, point, syncOnResize) {"," // cache original args for syncing"," this._syncArgs = Y.Array(arguments);",""," if (region.top === undefined) {"," region = Y.one(region).get('region');"," }",""," if (region) {"," var xy = [region.left, region.top],"," offxy = [region.width, region.height],"," points = Align.points,"," node = this._host,"," NULL = null,"," size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),"," nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets"," regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,"," regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,"," nodeFn0 = point ? points[point.charAt(0)] : NULL,"," nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;",""," if (regionFn0) {"," xy = regionFn0(xy, offxy, regionPoint);"," }"," if (regionFn1) {"," xy = regionFn1(xy, offxy, regionPoint);"," }",""," if (nodeFn0) {"," xy = nodeFn0(xy, nodeoff, point);"," }"," if (nodeFn1) {"," xy = nodeFn1(xy, nodeoff, point);"," }",""," if (xy && node) {"," node.setXY(xy);"," }"," "," this._resize(syncOnResize);",""," }"," return this;"," },",""," sync: function() {"," this.to.apply(this, this._syncArgs);"," return this;"," },",""," _resize: function(add) {"," var handle = this._handle;"," if (add && !handle) {"," this._handle = Y.on('resize', this._onresize, window, this);"," } else if (!add && handle) {"," handle.detach();"," }",""," },",""," _onresize: function() {"," var self = this;"," setTimeout(function() { // for performance"," self.sync();"," });"," },"," "," /**"," * Aligns the center of a node to the center of another node or region."," * @method center "," * @param region {Node || HTMLElement || Object} optional The node or"," * region to align with. Defaults to the viewport region."," * the window is resized. If centering to viewport, this defaults"," * to true, otherwise default is false."," */"," center: function(region, resize) {"," this.to(region, 'cc', 'cc', resize); "," return this;"," },",""," /**"," * Removes the resize handler, if any. This is called automatically"," * when unplugged from the host node."," * @method destroy "," */"," destroy: function() {"," var handle = this._handle;"," if (handle) {"," handle.detach();"," }"," }"," };",""," Align.points = {"," 't': function(xy, off) {"," return xy;"," },",""," 'r': function(xy, off) {"," return [xy[0] + off[0], xy[1]];"," },",""," 'b': function(xy, off) {"," return [xy[0], xy[1] + off[1]];"," },",""," 'l': function(xy, off) {"," return xy;"," },",""," 'c': function(xy, off, point) {"," var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,"," ret, val;",""," if (point === 'cc') {"," ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];"," } else {"," val = xy[axis] + off[axis] / 2;"," ret = (axis) ? [xy[0], val] : [val, xy[1]];"," }",""," return ret;"," }"," };",""," Align.NAME = 'Align';"," Align.NS = 'align';",""," Align.prototype.constructor = Align;",""," Y.namespace('Plugin');"," Y.Plugin.Align = Align;","","","","}, '@VERSION@', {\"requires\": [\"node-screen\", \"node-pluginhost\"]});","","}());"]};
}
-_yuitest_coverage["build/align-plugin/align-plugin.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/align-plugin/align-plugin.js",
- code: []
-};
-_yuitest_coverage["build/align-plugin/align-plugin.js"].code=["YUI.add('align-plugin', function (Y, NAME) {",""," /**"," * Provides advanced positioning support for Node via a Plugin"," * for centering and alignment. "," * @module align-plugin"," */",""," var OFFSET_WIDTH = 'offsetWidth',"," OFFSET_HEIGHT = 'offsetHeight',"," undefined = undefined;",""," /**"," * Node plugin which can be used to align a node with another node,"," * region, or the viewport."," *"," * @class Plugin.Align"," * @param {Object} User configuration object"," */"," function Align(config) {"," if (config.host) {"," this._host = config.host;"," }"," }"," "," Align.prototype = {"," /**"," * Aligns node with a point on another node or region."," * Possible alignment points are:"," * <dl>"," * <dt>tl</dt>"," * <dd>top left</dd>"," * <dt>tr</dt>"," * <dd>top right</dd>"," * <dt>bl</dt>"," * <dd>bottom left</dd>"," * <dt>br</dt>"," * <dd>bottom right</dd>"," * <dt>tc</dt>"," * <dd>top center</dd>"," * <dt>bc</dt>"," * <dd>bottom center</dd>"," * <dt>rc</dt>"," * <dd>right center</dd>"," * <dt>lc</dt>"," * <dd>left center</dd>"," * <dt>cc</dt>"," * <dd>center center</dd>"," * </dl>"," * @method to "," * @param region {String || Node || HTMLElement || Object} The node or"," * region to align with. Defaults to the viewport region."," * @param regionPoint {String} The point of the region to align with."," * @param point {String} The point of the node aligned to the region. "," * @param resize {Boolean} Whether or not the node should re-align when"," * the window is resized. Defaults to false."," */"," to: function(region, regionPoint, point, syncOnResize) {"," // cache original args for syncing"," this._syncArgs = Y.Array(arguments);",""," if (region.top === undefined) {"," region = Y.one(region).get('region');"," }",""," if (region) {"," var xy = [region.left, region.top],"," offxy = [region.width, region.height],"," points = Align.points,"," node = this._host,"," NULL = null,"," size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),"," nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets"," regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,"," regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,"," nodeFn0 = point ? points[point.charAt(0)] : NULL,"," nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;",""," if (regionFn0) {"," xy = regionFn0(xy, offxy, regionPoint);"," }"," if (regionFn1) {"," xy = regionFn1(xy, offxy, regionPoint);"," }",""," if (nodeFn0) {"," xy = nodeFn0(xy, nodeoff, point);"," }"," if (nodeFn1) {"," xy = nodeFn1(xy, nodeoff, point);"," }",""," if (xy && node) {"," node.setXY(xy);"," }"," "," this._resize(syncOnResize);",""," }"," return this;"," },",""," sync: function() {"," this.to.apply(this, this._syncArgs);"," return this;"," },",""," _resize: function(add) {"," var handle = this._handle;"," if (add && !handle) {"," this._handle = Y.on('resize', this._onresize, window, this);"," } else if (!add && handle) {"," handle.detach();"," }",""," },",""," _onresize: function() {"," var self = this;"," setTimeout(function() { // for performance"," self.sync();"," });"," },"," "," /**"," * Aligns the center of a node to the center of another node or region."," * @method center "," * @param region {Node || HTMLElement || Object} optional The node or"," * region to align with. Defaults to the viewport region."," * the window is resized. If centering to viewport, this defaults"," * to true, otherwise default is false."," */"," center: function(region, resize) {"," this.to(region, 'cc', 'cc', resize); "," return this;"," },",""," /**"," * Removes the resize handler, if any. This is called automatically"," * when unplugged from the host node."," * @method destroy "," */"," destroy: function() {"," var handle = this._handle;"," if (handle) {"," handle.detach();"," }"," }"," };",""," Align.points = {"," 't': function(xy, off) {"," return xy;"," },",""," 'r': function(xy, off) {"," return [xy[0] + off[0], xy[1]];"," },",""," 'b': function(xy, off) {"," return [xy[0], xy[1] + off[1]];"," },",""," 'l': function(xy, off) {"," return xy;"," },",""," 'c': function(xy, off, point) {"," var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,"," ret, val;",""," if (point === 'cc') {"," ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];"," } else {"," val = xy[axis] + off[axis] / 2;"," ret = (axis) ? [xy[0], val] : [val, xy[1]];"," }",""," return ret;"," }"," };",""," Align.NAME = 'Align';"," Align.NS = 'align';",""," Align.prototype.constructor = Align;",""," Y.namespace('Plugin');"," Y.Plugin.Align = Align;","","","","}, '@VERSION@', {\"requires\": [\"node-screen\", \"node-pluginhost\"]});"];
-_yuitest_coverage["build/align-plugin/align-plugin.js"].lines = {"1":0,"9":0,"20":0,"21":0,"22":0,"26":0,"60":0,"62":0,"63":0,"66":0,"67":0,"79":0,"80":0,"82":0,"83":0,"86":0,"87":0,"89":0,"90":0,"93":0,"94":0,"97":0,"100":0,"104":0,"105":0,"109":0,"110":0,"111":0,"112":0,"113":0,"119":0,"120":0,"121":0,"134":0,"135":0,"144":0,"145":0,"146":0,"151":0,"153":0,"157":0,"161":0,"165":0,"169":0,"172":0,"173":0,"175":0,"176":0,"179":0,"183":0,"184":0,"186":0,"188":0,"189":0};
-_yuitest_coverage["build/align-plugin/align-plugin.js"].functions = {"Align:20":0,"to:58":0,"sync:103":0,"_resize:108":0,"(anonymous 2):120":0,"_onresize:118":0,"center:133":0,"destroy:143":0,"\'t\':152":0,"\'r\':156":0,"\'b\':160":0,"\'l\':164":0,"\'c\':168":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/align-plugin/align-plugin.js"].coveredLines = 54;
-_yuitest_coverage["build/align-plugin/align-plugin.js"].coveredFunctions = 14;
-_yuitest_coverline("build/align-plugin/align-plugin.js", 1);
-YUI.add('align-plugin', function (Y, NAME) {
-
- /**
- * Provides advanced positioning support for Node via a Plugin
- * for centering and alignment.
- * @module align-plugin
- */
-
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 9);
-var OFFSET_WIDTH = 'offsetWidth',
- OFFSET_HEIGHT = 'offsetHeight',
- undefined = undefined;
-
- /**
- * Node plugin which can be used to align a node with another node,
- * region, or the viewport.
- *
- * @class Plugin.Align
- * @param {Object} User configuration object
- */
- _yuitest_coverline("build/align-plugin/align-plugin.js", 20);
-function Align(config) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "Align", 20);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 21);
-if (config.host) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 22);
-this._host = config.host;
- }
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 26);
-Align.prototype = {
- /**
- * Aligns node with a point on another node or region.
- * Possible alignment points are:
- * <dl>
- * <dt>tl</dt>
- * <dd>top left</dd>
- * <dt>tr</dt>
- * <dd>top right</dd>
- * <dt>bl</dt>
- * <dd>bottom left</dd>
- * <dt>br</dt>
- * <dd>bottom right</dd>
- * <dt>tc</dt>
- * <dd>top center</dd>
- * <dt>bc</dt>
- * <dd>bottom center</dd>
- * <dt>rc</dt>
- * <dd>right center</dd>
- * <dt>lc</dt>
- * <dd>left center</dd>
- * <dt>cc</dt>
- * <dd>center center</dd>
- * </dl>
- * @method to
- * @param region {String || Node || HTMLElement || Object} The node or
- * region to align with. Defaults to the viewport region.
- * @param regionPoint {String} The point of the region to align with.
- * @param point {String} The point of the node aligned to the region.
- * @param resize {Boolean} Whether or not the node should re-align when
- * the window is resized. Defaults to false.
- */
- to: function(region, regionPoint, point, syncOnResize) {
- // cache original args for syncing
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "to", 58);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 60);
-this._syncArgs = Y.Array(arguments);
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 62);
-if (region.top === undefined) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 63);
-region = Y.one(region).get('region');
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 66);
-if (region) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 67);
-var xy = [region.left, region.top],
- offxy = [region.width, region.height],
- points = Align.points,
- node = this._host,
- NULL = null,
- size = node.getAttrs([OFFSET_HEIGHT, OFFSET_WIDTH]),
- nodeoff = [0 - size[OFFSET_WIDTH], 0 - size[OFFSET_HEIGHT]], // reverse offsets
- regionFn0 = regionPoint ? points[regionPoint.charAt(0)]: NULL,
- regionFn1 = (regionPoint && regionPoint !== 'cc') ? points[regionPoint.charAt(1)] : NULL,
- nodeFn0 = point ? points[point.charAt(0)] : NULL,
- nodeFn1 = (point && point !== 'cc') ? points[point.charAt(1)] : NULL;
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 79);
-if (regionFn0) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 80);
-xy = regionFn0(xy, offxy, regionPoint);
- }
- _yuitest_coverline("build/align-plugin/align-plugin.js", 82);
-if (regionFn1) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 83);
-xy = regionFn1(xy, offxy, regionPoint);
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 86);
-if (nodeFn0) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 87);
-xy = nodeFn0(xy, nodeoff, point);
- }
- _yuitest_coverline("build/align-plugin/align-plugin.js", 89);
-if (nodeFn1) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 90);
-xy = nodeFn1(xy, nodeoff, point);
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 93);
-if (xy && node) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 94);
-node.setXY(xy);
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 97);
-this._resize(syncOnResize);
-
- }
- _yuitest_coverline("build/align-plugin/align-plugin.js", 100);
-return this;
- },
-
- sync: function() {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "sync", 103);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 104);
-this.to.apply(this, this._syncArgs);
- _yuitest_coverline("build/align-plugin/align-plugin.js", 105);
-return this;
- },
-
- _resize: function(add) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "_resize", 108);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 109);
-var handle = this._handle;
- _yuitest_coverline("build/align-plugin/align-plugin.js", 110);
-if (add && !handle) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 111);
-this._handle = Y.on('resize', this._onresize, window, this);
- } else {_yuitest_coverline("build/align-plugin/align-plugin.js", 112);
-if (!add && handle) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 113);
-handle.detach();
- }}
-
- },
-
- _onresize: function() {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "_onresize", 118);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 119);
-var self = this;
- _yuitest_coverline("build/align-plugin/align-plugin.js", 120);
-setTimeout(function() { // for performance
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "(anonymous 2)", 120);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 121);
-self.sync();
- });
- },
-
- /**
- * Aligns the center of a node to the center of another node or region.
- * @method center
- * @param region {Node || HTMLElement || Object} optional The node or
- * region to align with. Defaults to the viewport region.
- * the window is resized. If centering to viewport, this defaults
- * to true, otherwise default is false.
- */
- center: function(region, resize) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "center", 133);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 134);
-this.to(region, 'cc', 'cc', resize);
- _yuitest_coverline("build/align-plugin/align-plugin.js", 135);
-return this;
- },
-
- /**
- * Removes the resize handler, if any. This is called automatically
- * when unplugged from the host node.
- * @method destroy
- */
- destroy: function() {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "destroy", 143);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 144);
-var handle = this._handle;
- _yuitest_coverline("build/align-plugin/align-plugin.js", 145);
-if (handle) {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 146);
-handle.detach();
- }
- }
- };
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 151);
-Align.points = {
- 't': function(xy, off) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "\'t\'", 152);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 153);
-return xy;
- },
-
- 'r': function(xy, off) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "\'r\'", 156);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 157);
-return [xy[0] + off[0], xy[1]];
- },
-
- 'b': function(xy, off) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "\'b\'", 160);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 161);
-return [xy[0], xy[1] + off[1]];
- },
-
- 'l': function(xy, off) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "\'l\'", 164);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 165);
-return xy;
- },
-
- 'c': function(xy, off, point) {
- _yuitest_coverfunc("build/align-plugin/align-plugin.js", "\'c\'", 168);
-_yuitest_coverline("build/align-plugin/align-plugin.js", 169);
-var axis = (point[0] === 't' || point[0] === 'b') ? 0 : 1,
- ret, val;
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 172);
-if (point === 'cc') {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 173);
-ret = [xy[0] + off[0] / 2, xy[1] + off[1] / 2];
- } else {
- _yuitest_coverline("build/align-plugin/align-plugin.js", 175);
-val = xy[axis] + off[axis] / 2;
- _yuitest_coverline("build/align-plugin/align-plugin.js", 176);
-ret = (axis) ? [xy[0], val] : [val, xy[1]];
- }
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 179);
-return ret;
- }
- };
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 183);
-Align.NAME = 'Align';
- _yuitest_coverline("build/align-plugin/align-plugin.js", 184);
-Align.NS = 'align';
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 186);
-Align.prototype.constructor = Align;
-
- _yuitest_coverline("build/align-plugin/align-plugin.js", 188);
-Y.namespace('Plugin');
- _yuitest_coverline("build/align-plugin/align-plugin.js", 189);
-Y.Plugin.Align = Align;
-
-
-
-}, '@VERSION@', {"requires": ["node-screen", "node-pluginhost"]});
+var __cov_R9lh3EQUN7v9Y4Y8KNqxug = __coverage__['build/align-plugin/align-plugin.js'];
+__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['1']++;YUI.add('align-plugin',function(Y,NAME){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['1']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['2']++;var OFFSET_WIDTH='offsetWidth',OFFSET_HEIGHT='offsetHeight',undefined=undefined;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['3']++;function Align(config){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['2']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['4']++;if(config.host){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['1'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['5']++;this._host=config.host;}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['1'][1]++;}}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['6']++;Align.prototype={to:function(region,regionPoint,point,syncOnResize){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['3']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['7']++;this._syncArgs=Y.Array(arguments);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['8']++;if(region.top===undefined){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['2'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['9']++;region=Y.one(region).get('region');}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['2'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['10']++;if(region){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['3'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['11']++;var xy=[region.left,region.top],offxy=[region.width,region.height],points=Align.points,node=this._host,NULL=null,size=node.getAttrs([OFFSET_HEIGHT,OFFSET_WIDTH]),nodeoff=[0-size[OFFSET_WIDTH],0-size[OFFSET_HEIGHT]],regionFn0=regionPoint?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['4'][0]++,points[regionPoint.charAt(0)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['4'][1]++,NULL),regionFn1=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['6'][0]++,regionPoint)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['6'][1]++,regionPoint!=='cc')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['5'][0]++,points[regionPoint.charAt(1)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['5'][1]++,NULL),nodeFn0=point?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['7'][0]++,points[point.charAt(0)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['7'][1]++,NULL),nodeFn1=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['9'][0]++,point)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['9'][1]++,point!=='cc')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['8'][0]++,points[point.charAt(1)]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['8'][1]++,NULL);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['12']++;if(regionFn0){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['10'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['13']++;xy=regionFn0(xy,offxy,regionPoint);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['10'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['14']++;if(regionFn1){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['11'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['15']++;xy=regionFn1(xy,offxy,regionPoint);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['11'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['16']++;if(nodeFn0){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['12'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['17']++;xy=nodeFn0(xy,nodeoff,point);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['12'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['18']++;if(nodeFn1){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['13'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['19']++;xy=nodeFn1(xy,nodeoff,point);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['13'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['20']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['15'][0]++,xy)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['15'][1]++,node)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['14'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['21']++;node.setXY(xy);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['14'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['22']++;this._resize(syncOnResize);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['3'][1]++;}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['23']++;return this;},sync:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['4']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['24']++;this.to.apply(this,this._syncArgs);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['25']++;return this;},_resize:function(add){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['5']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['26']++;var handle=this._handle;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['27']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['17'][0]++,add)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['17'][1]++,!handle)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['16'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['28']++;this._handle=Y.on('resize',this._onresize,window,this);}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['16'][1]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['29']++;if((__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['19'][0]++,!add)&&(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['19'][1]++,handle)){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['18'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['30']++;handle.detach();}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['18'][1]++;}}},_onresize:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['6']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['31']++;var self=this;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['32']++;setTimeout(function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['7']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['33']++;self.sync();});},center:function(region,resize){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['8']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['34']++;this.to(region,'cc','cc',resize);__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['35']++;return this;},destroy:function(){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['9']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['36']++;var handle=this._handle;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['37']++;if(handle){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['20'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['38']++;handle.detach();}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['20'][1]++;}}};__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['39']++;Align.points={'t':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['10']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['40']++;return xy;},'r':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['11']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['41']++;return[xy[0]+off[0],xy[1]];},'b':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['12']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['42']++;return[xy[0],xy[1]+off[1]];},'l':function(xy,off){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['13']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['43']++;return xy;},'c':function(xy,off,point){__cov_R9lh3EQUN7v9Y4Y8KNqxug.f['14']++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['44']++;var axis=(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['22'][0]++,point[0]==='t')||(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['22'][1]++,point[0]==='b')?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['21'][0]++,0):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['21'][1]++,1),ret,val;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['45']++;if(point==='cc'){__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['23'][0]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['46']++;ret=[xy[0]+off[0]/2,xy[1]+off[1]/2];}else{__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['23'][1]++;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['47']++;val=xy[axis]+off[axis]/2;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['48']++;ret=axis?(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['24'][0]++,[xy[0],val]):(__cov_R9lh3EQUN7v9Y4Y8KNqxug.b['24'][1]++,[val,xy[1]]);}__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['49']++;return ret;}};__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['50']++;Align.NAME='Align';__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['51']++;Align.NS='align';__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['52']++;Align.prototype.constructor=Align;__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['53']++;Y.namespace('Plugin');__cov_R9lh3EQUN7v9Y4Y8KNqxug.s['54']++;Y.Plugin.Align=Align;},'@VERSION@',{'requires':['node-screen','node-pluginhost']});
View
930 build/anim-base/anim-base-coverage.js
5 additions, 925 deletions not shown
View
110 build/anim-color/anim-color-coverage.js
@@ -1,106 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-color/anim-color.js']) {
+ __coverage__['build/anim-color/anim-color.js'] = {"path":"build/anim-color/anim-color.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0},"b":{"1":[0,0],"2":[0,0,0,0],"3":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":41}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":30},"end":{"line":13,"column":0}}},"3":{"name":"(anonymous_3)","line":29,"loc":{"start":{"line":29,"column":9},"end":{"line":29,"column":62}}},"4":{"name":"(anonymous_4)","line":34,"loc":{"start":{"line":34,"column":9},"end":{"line":34,"column":29}}},"5":{"name":"(anonymous_5)","line":47,"loc":{"start":{"line":47,"column":8},"end":{"line":47,"column":20}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":53,"column":45}},"2":{"start":{"line":10,"column":0},"end":{"line":10,"column":17}},"3":{"start":{"line":12,"column":0},"end":{"line":26,"column":2}},"4":{"start":{"line":14,"column":4},"end":{"line":14,"column":62}},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":58}},"6":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"7":{"start":{"line":18,"column":8},"end":{"line":18,"column":63}},"8":{"start":{"line":21,"column":4},"end":{"line":25,"column":23}},"9":{"start":{"line":28,"column":0},"end":{"line":39,"column":2}},"10":{"start":{"line":30,"column":8},"end":{"line":30,"column":95}},"11":{"start":{"line":35,"column":8},"end":{"line":35,"column":51}},"12":{"start":{"line":36,"column":8},"end":{"line":36,"column":67}},"13":{"start":{"line":37,"column":8},"end":{"line":37,"column":19}},"14":{"start":{"line":41,"column":0},"end":{"line":50,"column":2}},"15":{"start":{"line":48,"column":12},"end":{"line":48,"column":57}}},"branchMap":{"1":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":17,"column":4}},{"start":{"line":17,"column":4},"end":{"line":17,"column":4}}]},"2":{"line":17,"type":"binary-expr","locations":[{"start":{"line":17,"column":8},"end":{"line":17,"column":18}},{"start":{"line":17,"column":22},"end":{"line":17,"column":42}},{"start":{"line":17,"column":46},"end":{"line":17,"column":54}},{"start":{"line":17,"column":58},"end":{"line":17,"column":76}}]},"3":{"line":36,"type":"cond-expr","locations":[{"start":{"line":36,"column":40},"end":{"line":36,"column":60}},{"start":{"line":36,"column":63},"end":{"line":36,"column":66}}]}},"code":["(function () { YUI.add('anim-color', function (Y, NAME) {","","/**"," * Adds support for color properties in <code>to</code>"," * and <code>from</code> attributes."," * @module anim"," * @submodule anim-color"," */","","var NUM = Number;","","Y.Anim.getUpdatedColorValue = function(fromColor, toColor, elapsed, duration, fn)","{"," fromColor = Y.Color.re_RGB.exec(Y.Color.toRGB(fromColor));"," toColor = Y.Color.re_RGB.exec(Y.Color.toRGB(toColor));",""," if (!fromColor || fromColor.length < 3 || !toColor || toColor.length < 3) {"," Y.error('invalid from or to passed to color behavior');"," }",""," return 'rgb(' + ["," Math.floor(fn(elapsed, NUM(fromColor[1]), NUM(toColor[1]) - NUM(fromColor[1]), duration)),"," Math.floor(fn(elapsed, NUM(fromColor[2]), NUM(toColor[2]) - NUM(fromColor[2]), duration)),"," Math.floor(fn(elapsed, NUM(fromColor[3]), NUM(toColor[3]) - NUM(fromColor[3]), duration))"," ].join(', ') + ')';","};","","Y.Anim.behaviors.color = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," anim._node.setStyle(att, Y.Anim.getUpdatedColorValue(from, to, elapsed, duration, fn));"," },",""," // TODO: default bgcolor const"," get: function(anim, att) {"," var val = anim._node.getComputedStyle(att);"," val = (val === 'transparent') ? 'rgb(255, 255, 255)' : val;"," return val;"," }","};","","Y.each(['backgroundColor',"," 'borderColor',"," 'borderTopColor',"," 'borderRightColor',"," 'borderBottomColor',"," 'borderLeftColor'],"," function(v) {"," Y.Anim.behaviors[v] = Y.Anim.behaviors.color;"," }",");","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-color/anim-color.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-color/anim-color.js",
- code: []
-};
-_yuitest_coverage["build/anim-color/anim-color.js"].code=["YUI.add('anim-color', function (Y, NAME) {","","/**"," * Adds support for color properties in <code>to</code>"," * and <code>from</code> attributes."," * @module anim"," * @submodule anim-color"," */","","var NUM = Number;","","Y.Anim.getUpdatedColorValue = function(fromColor, toColor, elapsed, duration, fn)","{"," fromColor = Y.Color.re_RGB.exec(Y.Color.toRGB(fromColor));"," toColor = Y.Color.re_RGB.exec(Y.Color.toRGB(toColor));",""," if (!fromColor || fromColor.length < 3 || !toColor || toColor.length < 3) {"," Y.error('invalid from or to passed to color behavior');"," }",""," return 'rgb(' + ["," Math.floor(fn(elapsed, NUM(fromColor[1]), NUM(toColor[1]) - NUM(fromColor[1]), duration)),"," Math.floor(fn(elapsed, NUM(fromColor[2]), NUM(toColor[2]) - NUM(fromColor[2]), duration)),"," Math.floor(fn(elapsed, NUM(fromColor[3]), NUM(toColor[3]) - NUM(fromColor[3]), duration))"," ].join(', ') + ')';","};","","Y.Anim.behaviors.color = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," anim._node.setStyle(att, Y.Anim.getUpdatedColorValue(from, to, elapsed, duration, fn));"," },",""," // TODO: default bgcolor const"," get: function(anim, att) {"," var val = anim._node.getComputedStyle(att);"," val = (val === 'transparent') ? 'rgb(255, 255, 255)' : val;"," return val;"," }","};","","Y.each(['backgroundColor',"," 'borderColor',"," 'borderTopColor',"," 'borderRightColor',"," 'borderBottomColor',"," 'borderLeftColor'],"," function(v) {"," Y.Anim.behaviors[v] = Y.Anim.behaviors.color;"," }",");","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});"];
-_yuitest_coverage["build/anim-color/anim-color.js"].lines = {"1":0,"10":0,"12":0,"14":0,"15":0,"17":0,"18":0,"21":0,"28":0,"30":0,"35":0,"36":0,"37":0,"41":0,"48":0};
-_yuitest_coverage["build/anim-color/anim-color.js"].functions = {"getUpdatedColorValue:12":0,"set:29":0,"get:34":0,"(anonymous 2):47":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-color/anim-color.js"].coveredLines = 15;
-_yuitest_coverage["build/anim-color/anim-color.js"].coveredFunctions = 5;
-_yuitest_coverline("build/anim-color/anim-color.js", 1);
-YUI.add('anim-color', function (Y, NAME) {
-
-/**
- * Adds support for color properties in <code>to</code>
- * and <code>from</code> attributes.
- * @module anim
- * @submodule anim-color
- */
-
-_yuitest_coverfunc("build/anim-color/anim-color.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-color/anim-color.js", 10);
-var NUM = Number;
-
-_yuitest_coverline("build/anim-color/anim-color.js", 12);
-Y.Anim.getUpdatedColorValue = function(fromColor, toColor, elapsed, duration, fn)
-{
- _yuitest_coverfunc("build/anim-color/anim-color.js", "getUpdatedColorValue", 12);
-_yuitest_coverline("build/anim-color/anim-color.js", 14);
-fromColor = Y.Color.re_RGB.exec(Y.Color.toRGB(fromColor));
- _yuitest_coverline("build/anim-color/anim-color.js", 15);
-toColor = Y.Color.re_RGB.exec(Y.Color.toRGB(toColor));
-
- _yuitest_coverline("build/anim-color/anim-color.js", 17);
-if (!fromColor || fromColor.length < 3 || !toColor || toColor.length < 3) {
- _yuitest_coverline("build/anim-color/anim-color.js", 18);
-Y.error('invalid from or to passed to color behavior');
- }
-
- _yuitest_coverline("build/anim-color/anim-color.js", 21);
-return 'rgb(' + [
- Math.floor(fn(elapsed, NUM(fromColor[1]), NUM(toColor[1]) - NUM(fromColor[1]), duration)),
- Math.floor(fn(elapsed, NUM(fromColor[2]), NUM(toColor[2]) - NUM(fromColor[2]), duration)),
- Math.floor(fn(elapsed, NUM(fromColor[3]), NUM(toColor[3]) - NUM(fromColor[3]), duration))
- ].join(', ') + ')';
-};
-
-_yuitest_coverline("build/anim-color/anim-color.js", 28);
-Y.Anim.behaviors.color = {
- set: function(anim, att, from, to, elapsed, duration, fn) {
- _yuitest_coverfunc("build/anim-color/anim-color.js", "set", 29);
-_yuitest_coverline("build/anim-color/anim-color.js", 30);
-anim._node.setStyle(att, Y.Anim.getUpdatedColorValue(from, to, elapsed, duration, fn));
- },
-
- // TODO: default bgcolor const
- get: function(anim, att) {
- _yuitest_coverfunc("build/anim-color/anim-color.js", "get", 34);
-_yuitest_coverline("build/anim-color/anim-color.js", 35);
-var val = anim._node.getComputedStyle(att);
- _yuitest_coverline("build/anim-color/anim-color.js", 36);
-val = (val === 'transparent') ? 'rgb(255, 255, 255)' : val;
- _yuitest_coverline("build/anim-color/anim-color.js", 37);
-return val;
- }
-};
-
-_yuitest_coverline("build/anim-color/anim-color.js", 41);
-Y.each(['backgroundColor',
- 'borderColor',
- 'borderTopColor',
- 'borderRightColor',
- 'borderBottomColor',
- 'borderLeftColor'],
- function(v) {
- _yuitest_coverfunc("build/anim-color/anim-color.js", "(anonymous 2)", 47);
-_yuitest_coverline("build/anim-color/anim-color.js", 48);
-Y.Anim.behaviors[v] = Y.Anim.behaviors.color;
- }
-);
-
-
-}, '@VERSION@', {"requires": ["anim-base"]});
+var __cov_4lkXVKJvhKUU$6wddd5n2Q = __coverage__['build/anim-color/anim-color.js'];
+__cov_4lkXVKJvhKUU$6wddd5n2Q.s['1']++;YUI.add('anim-color',function(Y,NAME){__cov_4lkXVKJvhKUU$6wddd5n2Q.f['1']++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['2']++;var NUM=Number;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['3']++;Y.Anim.getUpdatedColorValue=function(fromColor,toColor,elapsed,duration,fn){__cov_4lkXVKJvhKUU$6wddd5n2Q.f['2']++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['4']++;fromColor=Y.Color.re_RGB.exec(Y.Color.toRGB(fromColor));__cov_4lkXVKJvhKUU$6wddd5n2Q.s['5']++;toColor=Y.Color.re_RGB.exec(Y.Color.toRGB(toColor));__cov_4lkXVKJvhKUU$6wddd5n2Q.s['6']++;if((__cov_4lkXVKJvhKUU$6wddd5n2Q.b['2'][0]++,!fromColor)||(__cov_4lkXVKJvhKUU$6wddd5n2Q.b['2'][1]++,fromColor.length<3)||(__cov_4lkXVKJvhKUU$6wddd5n2Q.b['2'][2]++,!toColor)||(__cov_4lkXVKJvhKUU$6wddd5n2Q.b['2'][3]++,toColor.length<3)){__cov_4lkXVKJvhKUU$6wddd5n2Q.b['1'][0]++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['7']++;Y.error('invalid from or to passed to color behavior');}else{__cov_4lkXVKJvhKUU$6wddd5n2Q.b['1'][1]++;}__cov_4lkXVKJvhKUU$6wddd5n2Q.s['8']++;return'rgb('+[Math.floor(fn(elapsed,NUM(fromColor[1]),NUM(toColor[1])-NUM(fromColor[1]),duration)),Math.floor(fn(elapsed,NUM(fromColor[2]),NUM(toColor[2])-NUM(fromColor[2]),duration)),Math.floor(fn(elapsed,NUM(fromColor[3]),NUM(toColor[3])-NUM(fromColor[3]),duration))].join(', ')+')';};__cov_4lkXVKJvhKUU$6wddd5n2Q.s['9']++;Y.Anim.behaviors.color={set:function(anim,att,from,to,elapsed,duration,fn){__cov_4lkXVKJvhKUU$6wddd5n2Q.f['3']++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['10']++;anim._node.setStyle(att,Y.Anim.getUpdatedColorValue(from,to,elapsed,duration,fn));},get:function(anim,att){__cov_4lkXVKJvhKUU$6wddd5n2Q.f['4']++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['11']++;var val=anim._node.getComputedStyle(att);__cov_4lkXVKJvhKUU$6wddd5n2Q.s['12']++;val=val==='transparent'?(__cov_4lkXVKJvhKUU$6wddd5n2Q.b['3'][0]++,'rgb(255, 255, 255)'):(__cov_4lkXVKJvhKUU$6wddd5n2Q.b['3'][1]++,val);__cov_4lkXVKJvhKUU$6wddd5n2Q.s['13']++;return val;}};__cov_4lkXVKJvhKUU$6wddd5n2Q.s['14']++;Y.each(['backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor'],function(v){__cov_4lkXVKJvhKUU$6wddd5n2Q.f['5']++;__cov_4lkXVKJvhKUU$6wddd5n2Q.s['15']++;Y.Anim.behaviors[v]=Y.Anim.behaviors.color;});},'@VERSION@',{'requires':['anim-base']});
View
117 build/anim-curve/anim-curve-coverage.js
@@ -1,113 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-curve/anim-curve.js']) {
+ __coverage__['build/anim-curve/anim-curve.js'] = {"path":"build/anim-curve/anim-curve.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0},"b":{},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":41}}},"2":{"name":"(anonymous_2)","line":11,"loc":{"start":{"line":11,"column":9},"end":{"line":11,"column":62}}},"3":{"name":"(anonymous_3)","line":19,"loc":{"start":{"line":19,"column":9},"end":{"line":19,"column":24}}},"4":{"name":"(anonymous_4)","line":37,"loc":{"start":{"line":37,"column":19},"end":{"line":37,"column":39}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":59,"column":43}},"2":{"start":{"line":10,"column":0},"end":{"line":22,"column":2}},"3":{"start":{"line":12,"column":8},"end":{"line":12,"column":37}},"4":{"start":{"line":13,"column":8},"end":{"line":13,"column":31}},"5":{"start":{"line":14,"column":8},"end":{"line":14,"column":52}},"6":{"start":{"line":15,"column":8},"end":{"line":15,"column":25}},"7":{"start":{"line":16,"column":8},"end":{"line":16,"column":50}},"8":{"start":{"line":20,"column":8},"end":{"line":20,"column":34}},"9":{"start":{"line":37,"column":0},"end":{"line":56,"column":2}},"10":{"start":{"line":38,"column":4},"end":{"line":41,"column":10}},"11":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"12":{"start":{"line":44,"column":8},"end":{"line":44,"column":46}},"13":{"start":{"line":47,"column":4},"end":{"line":52,"column":5}},"14":{"start":{"line":48,"column":8},"end":{"line":51,"column":9}},"15":{"start":{"line":49,"column":12},"end":{"line":49,"column":78}},"16":{"start":{"line":50,"column":12},"end":{"line":50,"column":78}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":36}}},"branchMap":{},"code":["(function () { YUI.add('anim-curve', function (Y, NAME) {","","/**"," * Adds support for the <code>curve</code> property for the <code>to</code>"," * attribute. A curve is zero or more control points and an end point."," * @module anim"," * @submodule anim-curve"," */","","Y.Anim.behaviors.curve = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," from = from.slice.call(from);"," to = to.slice.call(to);"," var t = fn(elapsed, 0, 100, duration) / 100;"," to.unshift(from);"," anim._node.setXY(Y.Anim.getBezier(to, t));"," },",""," get: function(anim) {"," return anim._node.getXY();"," }","};","","/**"," * Get the current position of the animated element based on t."," * Each point is an array of \"x\" and \"y\" values (0 = x, 1 = y)"," * At least 2 points are required (start and end)."," * First point is start. Last point is end."," * Additional control points are optional."," * @for Anim"," * @method getBezier"," * @static"," * @param {Array} points An array containing Bezier points"," * @param {Number} t A number between 0 and 1 which is the basis for determining current position"," * @return {Array} An array containing int x and y member data"," */","Y.Anim.getBezier = function(points, t) {"," var n = points.length,"," tmp = [],"," i,"," j;",""," for (i = 0; i < n; ++i){"," tmp[i] = [points[i][0], points[i][1]]; // save input"," }",""," for (j = 1; j < n; ++j) {"," for (i = 0; i < n - j; ++i) {"," tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];"," tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];"," }"," }",""," return [ tmp[0][0], tmp[0][1] ];","","};","","","}, '@VERSION@', {\"requires\": [\"anim-xy\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-curve/anim-curve.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-curve/anim-curve.js",
- code: []
-};
-_yuitest_coverage["build/anim-curve/anim-curve.js"].code=["YUI.add('anim-curve', function (Y, NAME) {","","/**"," * Adds support for the <code>curve</code> property for the <code>to</code>"," * attribute. A curve is zero or more control points and an end point."," * @module anim"," * @submodule anim-curve"," */","","Y.Anim.behaviors.curve = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," from = from.slice.call(from);"," to = to.slice.call(to);"," var t = fn(elapsed, 0, 100, duration) / 100;"," to.unshift(from);"," anim._node.setXY(Y.Anim.getBezier(to, t));"," },",""," get: function(anim) {"," return anim._node.getXY();"," }","};","","/**"," * Get the current position of the animated element based on t."," * Each point is an array of \"x\" and \"y\" values (0 = x, 1 = y)"," * At least 2 points are required (start and end)."," * First point is start. Last point is end."," * Additional control points are optional."," * @for Anim"," * @method getBezier"," * @static"," * @param {Array} points An array containing Bezier points"," * @param {Number} t A number between 0 and 1 which is the basis for determining current position"," * @return {Array} An array containing int x and y member data"," */","Y.Anim.getBezier = function(points, t) {"," var n = points.length,"," tmp = [],"," i,"," j;",""," for (i = 0; i < n; ++i){"," tmp[i] = [points[i][0], points[i][1]]; // save input"," }",""," for (j = 1; j < n; ++j) {"," for (i = 0; i < n - j; ++i) {"," tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];"," tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];"," }"," }",""," return [ tmp[0][0], tmp[0][1] ];","","};","","","}, '@VERSION@', {\"requires\": [\"anim-xy\"]});"];
-_yuitest_coverage["build/anim-curve/anim-curve.js"].lines = {"1":0,"10":0,"12":0,"13":0,"14":0,"15":0,"16":0,"20":0,"37":0,"38":0,"43":0,"44":0,"47":0,"48":0,"49":0,"50":0,"54":0};
-_yuitest_coverage["build/anim-curve/anim-curve.js"].functions = {"set:11":0,"get:19":0,"getBezier:37":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-curve/anim-curve.js"].coveredLines = 17;
-_yuitest_coverage["build/anim-curve/anim-curve.js"].coveredFunctions = 4;
-_yuitest_coverline("build/anim-curve/anim-curve.js", 1);
-YUI.add('anim-curve', function (Y, NAME) {
-
-/**
- * Adds support for the <code>curve</code> property for the <code>to</code>
- * attribute. A curve is zero or more control points and an end point.
- * @module anim
- * @submodule anim-curve
- */
-
-_yuitest_coverfunc("build/anim-curve/anim-curve.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-curve/anim-curve.js", 10);
-Y.Anim.behaviors.curve = {
- set: function(anim, att, from, to, elapsed, duration, fn) {
- _yuitest_coverfunc("build/anim-curve/anim-curve.js", "set", 11);
-_yuitest_coverline("build/anim-curve/anim-curve.js", 12);
-from = from.slice.call(from);
- _yuitest_coverline("build/anim-curve/anim-curve.js", 13);
-to = to.slice.call(to);
- _yuitest_coverline("build/anim-curve/anim-curve.js", 14);
-var t = fn(elapsed, 0, 100, duration) / 100;
- _yuitest_coverline("build/anim-curve/anim-curve.js", 15);
-to.unshift(from);
- _yuitest_coverline("build/anim-curve/anim-curve.js", 16);
-anim._node.setXY(Y.Anim.getBezier(to, t));
- },
-
- get: function(anim) {
- _yuitest_coverfunc("build/anim-curve/anim-curve.js", "get", 19);
-_yuitest_coverline("build/anim-curve/anim-curve.js", 20);
-return anim._node.getXY();
- }
-};
-
-/**
- * Get the current position of the animated element based on t.
- * Each point is an array of "x" and "y" values (0 = x, 1 = y)
- * At least 2 points are required (start and end).
- * First point is start. Last point is end.
- * Additional control points are optional.
- * @for Anim
- * @method getBezier
- * @static
- * @param {Array} points An array containing Bezier points
- * @param {Number} t A number between 0 and 1 which is the basis for determining current position
- * @return {Array} An array containing int x and y member data
- */
-_yuitest_coverline("build/anim-curve/anim-curve.js", 37);
-Y.Anim.getBezier = function(points, t) {
- _yuitest_coverfunc("build/anim-curve/anim-curve.js", "getBezier", 37);
-_yuitest_coverline("build/anim-curve/anim-curve.js", 38);
-var n = points.length,
- tmp = [],
- i,
- j;
-
- _yuitest_coverline("build/anim-curve/anim-curve.js", 43);
-for (i = 0; i < n; ++i){
- _yuitest_coverline("build/anim-curve/anim-curve.js", 44);
-tmp[i] = [points[i][0], points[i][1]]; // save input
- }
-
- _yuitest_coverline("build/anim-curve/anim-curve.js", 47);
-for (j = 1; j < n; ++j) {
- _yuitest_coverline("build/anim-curve/anim-curve.js", 48);
-for (i = 0; i < n - j; ++i) {
- _yuitest_coverline("build/anim-curve/anim-curve.js", 49);
-tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
- _yuitest_coverline("build/anim-curve/anim-curve.js", 50);
-tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
- }
- }
-
- _yuitest_coverline("build/anim-curve/anim-curve.js", 54);
-return [ tmp[0][0], tmp[0][1] ];
-
-};
-
-
-}, '@VERSION@', {"requires": ["anim-xy"]});
+var __cov_KVxV32cezCVHOJVQ1PWnTw = __coverage__['build/anim-curve/anim-curve.js'];
+__cov_KVxV32cezCVHOJVQ1PWnTw.s['1']++;YUI.add('anim-curve',function(Y,NAME){__cov_KVxV32cezCVHOJVQ1PWnTw.f['1']++;__cov_KVxV32cezCVHOJVQ1PWnTw.s['2']++;Y.Anim.behaviors.curve={set:function(anim,att,from,to,elapsed,duration,fn){__cov_KVxV32cezCVHOJVQ1PWnTw.f['2']++;__cov_KVxV32cezCVHOJVQ1PWnTw.s['3']++;from=from.slice.call(from);__cov_KVxV32cezCVHOJVQ1PWnTw.s['4']++;to=to.slice.call(to);__cov_KVxV32cezCVHOJVQ1PWnTw.s['5']++;var t=fn(elapsed,0,100,duration)/100;__cov_KVxV32cezCVHOJVQ1PWnTw.s['6']++;to.unshift(from);__cov_KVxV32cezCVHOJVQ1PWnTw.s['7']++;anim._node.setXY(Y.Anim.getBezier(to,t));},get:function(anim){__cov_KVxV32cezCVHOJVQ1PWnTw.f['3']++;__cov_KVxV32cezCVHOJVQ1PWnTw.s['8']++;return anim._node.getXY();}};__cov_KVxV32cezCVHOJVQ1PWnTw.s['9']++;Y.Anim.getBezier=function(points,t){__cov_KVxV32cezCVHOJVQ1PWnTw.f['4']++;__cov_KVxV32cezCVHOJVQ1PWnTw.s['10']++;var n=points.length,tmp=[],i,j;__cov_KVxV32cezCVHOJVQ1PWnTw.s['11']++;for(i=0;i<n;++i){__cov_KVxV32cezCVHOJVQ1PWnTw.s['12']++;tmp[i]=[points[i][0],points[i][1]];}__cov_KVxV32cezCVHOJVQ1PWnTw.s['13']++;for(j=1;j<n;++j){__cov_KVxV32cezCVHOJVQ1PWnTw.s['14']++;for(i=0;i<n-j;++i){__cov_KVxV32cezCVHOJVQ1PWnTw.s['15']++;tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];__cov_KVxV32cezCVHOJVQ1PWnTw.s['16']++;tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}}__cov_KVxV32cezCVHOJVQ1PWnTw.s['17']++;return[tmp[0][0],tmp[0][1]];};},'@VERSION@',{'requires':['anim-xy']});
View
495 build/anim-easing/anim-easing-coverage.js
@@ -1,491 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-easing/anim-easing.js']) {
+ __coverage__['build/anim-easing/anim-easing.js'] = {"path":"build/anim-easing/anim-easing.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":52,"loc":{"start":{"line":52,"column":14},"end":{"line":52,"column":36}}},"3":{"name":"(anonymous_3)","line":65,"loc":{"start":{"line":65,"column":12},"end":{"line":65,"column":34}}},"4":{"name":"(anonymous_4)","line":78,"loc":{"start":{"line":78,"column":13},"end":{"line":78,"column":35}}},"5":{"name":"(anonymous_5)","line":91,"loc":{"start":{"line":91,"column":14},"end":{"line":91,"column":36}}},"6":{"name":"(anonymous_6)","line":108,"loc":{"start":{"line":108,"column":18},"end":{"line":108,"column":40}}},"7":{"name":"(anonymous_7)","line":121,"loc":{"start":{"line":121,"column":19},"end":{"line":121,"column":41}}},"8":{"name":"(anonymous_8)","line":134,"loc":{"start":{"line":134,"column":20},"end":{"line":134,"column":42}}},"9":{"name":"(anonymous_9)","line":154,"loc":{"start":{"line":154,"column":15},"end":{"line":154,"column":43}}},"10":{"name":"(anonymous_10)","line":188,"loc":{"start":{"line":188,"column":16},"end":{"line":188,"column":44}}},"11":{"name":"(anonymous_11)","line":222,"loc":{"start":{"line":222,"column":17},"end":{"line":222,"column":45}}},"12":{"name":"(anonymous_12)","line":263,"loc":{"start":{"line":263,"column":12},"end":{"line":263,"column":37}}},"13":{"name":"(anonymous_13)","line":283,"loc":{"start":{"line":283,"column":13},"end":{"line":283,"column":38}}},"14":{"name":"(anonymous_14)","line":301,"loc":{"start":{"line":301,"column":14},"end":{"line":301,"column":39}}},"15":{"name":"(anonymous_15)","line":321,"loc":{"start":{"line":321,"column":14},"end":{"line":321,"column":36}}},"16":{"name":"(anonymous_16)","line":334,"loc":{"start":{"line":334,"column":15},"end":{"line":334,"column":37}}},"17":{"name":"(anonymous_17)","line":354,"loc":{"start":{"line":354,"column":16},"end":{"line":354,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":365,"column":45}},"2":{"start":{"line":40,"column":0},"end":{"line":360,"column":2}},"3":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"4":{"start":{"line":66,"column":8},"end":{"line":66,"column":30}},"5":{"start":{"line":79,"column":8},"end":{"line":79,"column":36}},"6":{"start":{"line":92,"column":8},"end":{"line":94,"column":9}},"7":{"start":{"line":93,"column":12},"end":{"line":93,"column":31}},"8":{"start":{"line":96,"column":8},"end":{"line":96,"column":44}},"9":{"start":{"line":109,"column":8},"end":{"line":109,"column":34}},"10":{"start":{"line":122,"column":8},"end":{"line":122,"column":46}},"11":{"start":{"line":135,"column":8},"end":{"line":137,"column":9}},"12":{"start":{"line":136,"column":12},"end":{"line":136,"column":35}},"13":{"start":{"line":139,"column":8},"end":{"line":139,"column":45}},"14":{"start":{"line":155,"column":8},"end":{"line":155,"column":14}},"15":{"start":{"line":156,"column":8},"end":{"line":158,"column":9}},"16":{"start":{"line":157,"column":12},"end":{"line":157,"column":21}},"17":{"start":{"line":159,"column":8},"end":{"line":161,"column":9}},"18":{"start":{"line":160,"column":12},"end":{"line":160,"column":23}},"19":{"start":{"line":162,"column":8},"end":{"line":164,"column":9}},"20":{"start":{"line":163,"column":12},"end":{"line":163,"column":23}},"21":{"start":{"line":166,"column":8},"end":{"line":172,"column":9}},"22":{"start":{"line":167,"column":12},"end":{"line":167,"column":18}},"23":{"start":{"line":168,"column":12},"end":{"line":168,"column":20}},"24":{"start":{"line":171,"column":12},"end":{"line":171,"column":48}},"25":{"start":{"line":174,"column":8},"end":{"line":174,"column":82}},"26":{"start":{"line":189,"column":8},"end":{"line":189,"column":14}},"27":{"start":{"line":190,"column":8},"end":{"line":192,"column":9}},"28":{"start":{"line":191,"column":12},"end":{"line":191,"column":21}},"29":{"start":{"line":193,"column":8},"end":{"line":195,"column":9}},"30":{"start":{"line":194,"column":12},"end":{"line":194,"column":23}},"31":{"start":{"line":196,"column":8},"end":{"line":198,"column":9}},"32":{"start":{"line":197,"column":12},"end":{"line":197,"column":22}},"33":{"start":{"line":200,"column":8},"end":{"line":206,"column":9}},"34":{"start":{"line":201,"column":12},"end":{"line":201,"column":18}},"35":{"start":{"line":202,"column":12},"end":{"line":202,"column":22}},"36":{"start":{"line":205,"column":12},"end":{"line":205,"column":48}},"37":{"start":{"line":208,"column":8},"end":{"line":208,"column":79}},"38":{"start":{"line":223,"column":8},"end":{"line":223,"column":14}},"39":{"start":{"line":224,"column":8},"end":{"line":226,"column":9}},"40":{"start":{"line":225,"column":12},"end":{"line":225,"column":21}},"41":{"start":{"line":228,"column":8},"end":{"line":230,"column":9}},"42":{"start":{"line":229,"column":12},"end":{"line":229,"column":23}},"43":{"start":{"line":232,"column":8},"end":{"line":234,"column":9}},"44":{"start":{"line":233,"column":12},"end":{"line":233,"column":28}},"45":{"start":{"line":236,"column":8},"end":{"line":242,"column":9}},"46":{"start":{"line":237,"column":12},"end":{"line":237,"column":18}},"47":{"start":{"line":238,"column":12},"end":{"line":238,"column":20}},"48":{"start":{"line":241,"column":12},"end":{"line":241,"column":48}},"49":{"start":{"line":244,"column":8},"end":{"line":247,"column":9}},"50":{"start":{"line":245,"column":12},"end":{"line":246,"column":59}},"51":{"start":{"line":248,"column":8},"end":{"line":249,"column":62}},"52":{"start":{"line":264,"column":8},"end":{"line":266,"column":9}},"53":{"start":{"line":265,"column":12},"end":{"line":265,"column":24}},"54":{"start":{"line":267,"column":8},"end":{"line":269,"column":9}},"55":{"start":{"line":268,"column":12},"end":{"line":268,"column":23}},"56":{"start":{"line":270,"column":8},"end":{"line":270,"column":44}},"57":{"start":{"line":284,"column":8},"end":{"line":286,"column":9}},"58":{"start":{"line":285,"column":12},"end":{"line":285,"column":24}},"59":{"start":{"line":287,"column":8},"end":{"line":287,"column":53}},"60":{"start":{"line":302,"column":8},"end":{"line":304,"column":9}},"61":{"start":{"line":303,"column":12},"end":{"line":303,"column":24}},"62":{"start":{"line":306,"column":8},"end":{"line":308,"column":9}},"63":{"start":{"line":307,"column":12},"end":{"line":307,"column":58}},"64":{"start":{"line":309,"column":8},"end":{"line":309,"column":63}},"65":{"start":{"line":322,"column":8},"end":{"line":322,"column":56}},"66":{"start":{"line":335,"column":8},"end":{"line":341,"column":9}},"67":{"start":{"line":336,"column":16},"end":{"line":336,"column":42}},"68":{"start":{"line":337,"column":15},"end":{"line":341,"column":9}},"69":{"start":{"line":338,"column":16},"end":{"line":338,"column":63}},"70":{"start":{"line":339,"column":15},"end":{"line":341,"column":9}},"71":{"start":{"line":340,"column":16},"end":{"line":340,"column":66}},"72":{"start":{"line":342,"column":8},"end":{"line":342,"column":61}},"73":{"start":{"line":355,"column":8},"end":{"line":357,"column":9}},"74":{"start":{"line":356,"column":12},"end":{"line":356,"column":63}},"75":{"start":{"line":358,"column":8},"end":{"line":358,"column":74}},"76":{"start":{"line":362,"column":0},"end":{"line":362,"column":18}}},"branchMap":{"1":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"2":{"line":135,"type":"if","locations":[{"start":{"line":135,"column":8},"end":{"line":135,"column":8}},{"start":{"line":135,"column":8},"end":{"line":135,"column":8}}]},"3":{"line":156,"type":"if","locations":[{"start":{"line":156,"column":8},"end":{"line":156,"column":8}},{"start":{"line":156,"column":8},"end":{"line":156,"column":8}}]},"4":{"line":159,"type":"if","locations":[{"start":{"line":159,"column":8},"end":{"line":159,"column":8}},{"start":{"line":159,"column":8},"end":{"line":159,"column":8}}]},"5":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":8},"end":{"line":162,"column":8}},{"start":{"line":162,"column":8},"end":{"line":162,"column":8}}]},"6":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":8},"end":{"line":166,"column":8}},{"start":{"line":166,"column":8},"end":{"line":166,"column":8}}]},"7":{"line":166,"type":"binary-expr","locations":[{"start":{"line":166,"column":12},"end":{"line":166,"column":14}},{"start":{"line":166,"column":18},"end":{"line":166,"column":33}}]},"8":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":8},"end":{"line":190,"column":8}},{"start":{"line":190,"column":8},"end":{"line":190,"column":8}}]},"9":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":8},"end":{"line":193,"column":8}},{"start":{"line":193,"column":8},"end":{"line":193,"column":8}}]},"10":{"line":196,"type":"if","locations":[{"start":{"line":196,"column":8},"end":{"line":196,"column":8}},{"start":{"line":196,"column":8},"end":{"line":196,"column":8}}]},"11":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":8}},{"start":{"line":200,"column":8},"end":{"line":200,"column":8}}]},"12":{"line":200,"type":"binary-expr","locations":[{"start":{"line":200,"column":12},"end":{"line":200,"column":14}},{"start":{"line":200,"column":18},"end":{"line":200,"column":33}}]},"13":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":8},"end":{"line":224,"column":8}},{"start":{"line":224,"column":8},"end":{"line":224,"column":8}}]},"14":{"line":228,"type":"if","locations":[{"start":{"line":228,"column":8},"end":{"line":228,"column":8}},{"start":{"line":228,"column":8},"end":{"line":228,"column":8}}]},"15":{"line":232,"type":"if","locations":[{"start":{"line":232,"column":8},"end":{"line":232,"column":8}},{"start":{"line":232,"column":8},"end":{"line":232,"column":8}}]},"16":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":8},"end":{"line":236,"column":8}},{"start":{"line":236,"column":8},"end":{"line":236,"column":8}}]},"17":{"line":236,"type":"binary-expr","locations":[{"start":{"line":236,"column":13},"end":{"line":236,"column":15}},{"start":{"line":236,"column":19},"end":{"line":236,"column":34}}]},"18":{"line":244,"type":"if","locations":[{"start":{"line":244,"column":8},"end":{"line":244,"column":8}},{"start":{"line":244,"column":8},"end":{"line":244,"column":8}}]},"19":{"line":264,"type":"if","locations":[{"start":{"line":264,"column":8},"end":{"line":264,"column":8}},{"start":{"line":264,"column":8},"end":{"line":264,"column":8}}]},"20":{"line":267,"type":"if","locations":[{"start":{"line":267,"column":8},"end":{"line":267,"column":8}},{"start":{"line":267,"column":8},"end":{"line":267,"column":8}}]},"21":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":8},"end":{"line":284,"column":8}},{"start":{"line":284,"column":8},"end":{"line":284,"column":8}}]},"22":{"line":302,"type":"if","locations":[{"start":{"line":302,"column":8},"end":{"line":302,"column":8}},{"start":{"line":302,"column":8},"end":{"line":302,"column":8}}]},"23":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":8},"end":{"line":306,"column":8}},{"start":{"line":306,"column":8},"end":{"line":306,"column":8}}]},"24":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":8},"end":{"line":335,"column":8}},{"start":{"line":335,"column":8},"end":{"line":335,"column":8}}]},"25":{"line":337,"type":"if","locations":[{"start":{"line":337,"column":15},"end":{"line":337,"column":15}},{"start":{"line":337,"column":15},"end":{"line":337,"column":15}}]},"26":{"line":339,"type":"if","locations":[{"start":{"line":339,"column":15},"end":{"line":339,"column":15}},{"start":{"line":339,"column":15},"end":{"line":339,"column":15}}]},"27":{"line":355,"type":"if","locations":[{"start":{"line":355,"column":8},"end":{"line":355,"column":8}},{"start":{"line":355,"column":8},"end":{"line":355,"column":8}}]}},"code":["(function () { YUI.add('anim-easing', function (Y, NAME) {","","/*","TERMS OF USE - EASING EQUATIONS","Open source under the BSD License.","Copyright 2001 Robert Penner All rights reserved.","","Redistribution and use in source and binary forms, with or without modification,","are permitted provided that the following conditions are met:",""," * Redistributions of source code must retain the above copyright notice, this"," list of conditions and the following disclaimer."," * Redistributions in binary form must reproduce the above copyright notice,"," this list of conditions and the following disclaimer in the documentation"," and/or other materials provided with the distribution."," * Neither the name of the author nor the names of contributors may be used to"," endorse or promote products derived from this software without specific prior"," written permission.","","THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND","ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED","WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.","IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,","INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,","BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,","DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY","OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE","OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED","OF THE POSSIBILITY OF SUCH DAMAGE.","*/","","/**"," * The easing module provides methods for customizing"," * how an animation behaves during each run."," * @class Easing"," * @module anim"," * @submodule anim-easing"," */","","var Easing = {",""," /**"," * Uniform speed between points."," * @for Easing"," * @method easeNone"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeNone: function (t, b, c, d) {"," return c*t/d + b;"," },",""," /**"," * Begins slowly and accelerates towards end. (quadratic)"," * @method easeIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeIn: function (t, b, c, d) {"," return c*(t/=d)*t + b;"," },",""," /**"," * Begins quickly and decelerates towards end. (quadratic)"," * @method easeOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeOut: function (t, b, c, d) {"," return -c *(t/=d)*(t-2) + b;"," },",""," /**"," * Begins slowly and decelerates towards end. (quadratic)"," * @method easeBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeBoth: function (t, b, c, d) {"," if ((t /= d/2) < 1) {"," return c/2*t*t + b;"," }",""," return -c/2 * ((--t)*(t-2) - 1) + b;"," },",""," /**"," * Begins slowly and accelerates towards end. (quartic)"," * @method easeInStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeInStrong: function (t, b, c, d) {"," return c*(t/=d)*t*t*t + b;"," },",""," /**"," * Begins quickly and decelerates towards end. (quartic)"," * @method easeOutStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeOutStrong: function (t, b, c, d) {"," return -c * ((t=t/d-1)*t*t*t - 1) + b;"," },",""," /**"," * Begins slowly and decelerates towards end. (quartic)"," * @method easeBothStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeBothStrong: function (t, b, c, d) {"," if ((t /= d/2) < 1) {"," return c/2*t*t*t*t + b;"," }",""," return -c/2 * ((t-=2)*t*t*t - 2) + b;"," },",""," /**"," * Snap in elastic effect."," * @method elasticIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */",""," elasticIn: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }"," if ( (t /= d) === 1 ) {"," return b+c;"," }"," if (!p) {"," p = d* 0.3;"," }",""," if (!a || a < Math.abs(c)) {"," a = c;"," s = p/4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;"," },",""," /**"," * Snap out elastic effect."," * @method elasticOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */"," elasticOut: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }"," if ( (t /= d) === 1 ) {"," return b+c;"," }"," if (!p) {"," p=d * 0.3;"," }",""," if (!a || a < Math.abs(c)) {"," a = c;"," s = p / 4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;"," },",""," /**"," * Snap both elastic effect."," * @method elasticBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */"," elasticBoth: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }",""," if ( (t /= d/2) === 2 ) {"," return b+c;"," }",""," if (!p) {"," p = d*(0.3*1.5);"," }",""," if ( !a || a < Math.abs(c) ) {"," a = c;"," s = p/4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," if (t < 1) {"," return -0.5*(a*Math.pow(2,10*(t-=1)) *"," Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;"," }"," return a*Math.pow(2,-10*(t-=1)) *"," Math.sin( (t*d-s)*(2*Math.PI)/p )*0.5 + c + b;"," },","",""," /**"," * Backtracks slightly, then reverses direction and moves to end."," * @method backIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backIn: function (t, b, c, d, s) {"," if (s === undefined) {"," s = 1.70158;"," }"," if (t === d) {"," t -= 0.001;"," }"," return c*(t/=d)*t*((s+1)*t - s) + b;"," },",""," /**"," * Overshoots end, then reverses and comes back to end."," * @method backOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backOut: function (t, b, c, d, s) {"," if (typeof s === 'undefined') {"," s = 1.70158;"," }"," return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;"," },",""," /**"," * Backtracks slightly, then reverses direction, overshoots end,"," * then reverses and comes back to end."," * @method backBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backBoth: function (t, b, c, d, s) {"," if (typeof s === 'undefined') {"," s = 1.70158;"," }",""," if ((t /= d/2 ) < 1) {"," return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;"," }"," return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;"," },",""," /**"," * Bounce off of start."," * @method bounceIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceIn: function (t, b, c, d) {"," return c - Y.Easing.bounceOut(d-t, 0, c, d) + b;"," },",""," /**"," * Bounces off end."," * @method bounceOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceOut: function (t, b, c, d) {"," if ((t/=d) < (1/2.75)) {"," return c*(7.5625*t*t) + b;"," } else if (t < (2/2.75)) {"," return c*(7.5625*(t-=(1.5/2.75))*t + 0.75) + b;"," } else if (t < (2.5/2.75)) {"," return c*(7.5625*(t-=(2.25/2.75))*t + 0.9375) + b;"," }"," return c*(7.5625*(t-=(2.625/2.75))*t + 0.984375) + b;"," },",""," /**"," * Bounces off start and end."," * @method bounceBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceBoth: function (t, b, c, d) {"," if (t < d/2) {"," return Y.Easing.bounceIn(t * 2, 0, c, d) * 0.5 + b;"," }"," return Y.Easing.bounceOut(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;"," }","};","","Y.Easing = Easing;","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-easing/anim-easing.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-easing/anim-easing.js",
- code: []
-};
-_yuitest_coverage["build/anim-easing/anim-easing.js"].code=["YUI.add('anim-easing', function (Y, NAME) {","","/*","TERMS OF USE - EASING EQUATIONS","Open source under the BSD License.","Copyright 2001 Robert Penner All rights reserved.","","Redistribution and use in source and binary forms, with or without modification,","are permitted provided that the following conditions are met:",""," * Redistributions of source code must retain the above copyright notice, this"," list of conditions and the following disclaimer."," * Redistributions in binary form must reproduce the above copyright notice,"," this list of conditions and the following disclaimer in the documentation"," and/or other materials provided with the distribution."," * Neither the name of the author nor the names of contributors may be used to"," endorse or promote products derived from this software without specific prior"," written permission.","","THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND","ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED","WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.","IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,","INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,","BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,","DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY","OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE","OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED","OF THE POSSIBILITY OF SUCH DAMAGE.","*/","","/**"," * The easing module provides methods for customizing"," * how an animation behaves during each run."," * @class Easing"," * @module anim"," * @submodule anim-easing"," */","","var Easing = {",""," /**"," * Uniform speed between points."," * @for Easing"," * @method easeNone"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeNone: function (t, b, c, d) {"," return c*t/d + b;"," },",""," /**"," * Begins slowly and accelerates towards end. (quadratic)"," * @method easeIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeIn: function (t, b, c, d) {"," return c*(t/=d)*t + b;"," },",""," /**"," * Begins quickly and decelerates towards end. (quadratic)"," * @method easeOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeOut: function (t, b, c, d) {"," return -c *(t/=d)*(t-2) + b;"," },",""," /**"," * Begins slowly and decelerates towards end. (quadratic)"," * @method easeBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeBoth: function (t, b, c, d) {"," if ((t /= d/2) < 1) {"," return c/2*t*t + b;"," }",""," return -c/2 * ((--t)*(t-2) - 1) + b;"," },",""," /**"," * Begins slowly and accelerates towards end. (quartic)"," * @method easeInStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeInStrong: function (t, b, c, d) {"," return c*(t/=d)*t*t*t + b;"," },",""," /**"," * Begins quickly and decelerates towards end. (quartic)"," * @method easeOutStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeOutStrong: function (t, b, c, d) {"," return -c * ((t=t/d-1)*t*t*t - 1) + b;"," },",""," /**"," * Begins slowly and decelerates towards end. (quartic)"," * @method easeBothStrong"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," easeBothStrong: function (t, b, c, d) {"," if ((t /= d/2) < 1) {"," return c/2*t*t*t*t + b;"," }",""," return -c/2 * ((t-=2)*t*t*t - 2) + b;"," },",""," /**"," * Snap in elastic effect."," * @method elasticIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */",""," elasticIn: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }"," if ( (t /= d) === 1 ) {"," return b+c;"," }"," if (!p) {"," p = d* 0.3;"," }",""," if (!a || a < Math.abs(c)) {"," a = c;"," s = p/4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;"," },",""," /**"," * Snap out elastic effect."," * @method elasticOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */"," elasticOut: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }"," if ( (t /= d) === 1 ) {"," return b+c;"," }"," if (!p) {"," p=d * 0.3;"," }",""," if (!a || a < Math.abs(c)) {"," a = c;"," s = p / 4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;"," },",""," /**"," * Snap both elastic effect."," * @method elasticBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} a Amplitude (optional)"," * @param {Number} p Period (optional)"," * @return {Number} The computed value for the current animation frame"," */"," elasticBoth: function (t, b, c, d, a, p) {"," var s;"," if (t === 0) {"," return b;"," }",""," if ( (t /= d/2) === 2 ) {"," return b+c;"," }",""," if (!p) {"," p = d*(0.3*1.5);"," }",""," if ( !a || a < Math.abs(c) ) {"," a = c;"," s = p/4;"," }"," else {"," s = p/(2*Math.PI) * Math.asin (c/a);"," }",""," if (t < 1) {"," return -0.5*(a*Math.pow(2,10*(t-=1)) *"," Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;"," }"," return a*Math.pow(2,-10*(t-=1)) *"," Math.sin( (t*d-s)*(2*Math.PI)/p )*0.5 + c + b;"," },","",""," /**"," * Backtracks slightly, then reverses direction and moves to end."," * @method backIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backIn: function (t, b, c, d, s) {"," if (s === undefined) {"," s = 1.70158;"," }"," if (t === d) {"," t -= 0.001;"," }"," return c*(t/=d)*t*((s+1)*t - s) + b;"," },",""," /**"," * Overshoots end, then reverses and comes back to end."," * @method backOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backOut: function (t, b, c, d, s) {"," if (typeof s === 'undefined') {"," s = 1.70158;"," }"," return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;"," },",""," /**"," * Backtracks slightly, then reverses direction, overshoots end,"," * then reverses and comes back to end."," * @method backBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @param {Number} s Overshoot (optional)"," * @return {Number} The computed value for the current animation frame"," */"," backBoth: function (t, b, c, d, s) {"," if (typeof s === 'undefined') {"," s = 1.70158;"," }",""," if ((t /= d/2 ) < 1) {"," return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;"," }"," return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;"," },",""," /**"," * Bounce off of start."," * @method bounceIn"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceIn: function (t, b, c, d) {"," return c - Y.Easing.bounceOut(d-t, 0, c, d) + b;"," },",""," /**"," * Bounces off end."," * @method bounceOut"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceOut: function (t, b, c, d) {"," if ((t/=d) < (1/2.75)) {"," return c*(7.5625*t*t) + b;"," } else if (t < (2/2.75)) {"," return c*(7.5625*(t-=(1.5/2.75))*t + 0.75) + b;"," } else if (t < (2.5/2.75)) {"," return c*(7.5625*(t-=(2.25/2.75))*t + 0.9375) + b;"," }"," return c*(7.5625*(t-=(2.625/2.75))*t + 0.984375) + b;"," },",""," /**"," * Bounces off start and end."," * @method bounceBoth"," * @param {Number} t Time value used to compute current value"," * @param {Number} b Starting value"," * @param {Number} c Delta between start and end values"," * @param {Number} d Total length of animation"," * @return {Number} The computed value for the current animation frame"," */"," bounceBoth: function (t, b, c, d) {"," if (t < d/2) {"," return Y.Easing.bounceIn(t * 2, 0, c, d) * 0.5 + b;"," }"," return Y.Easing.bounceOut(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;"," }","};","","Y.Easing = Easing;","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});"];
-_yuitest_coverage["build/anim-easing/anim-easing.js"].lines = {"1":0,"40":0,"53":0,"66":0,"79":0,"92":0,"93":0,"96":0,"109":0,"122":0,"135":0,"136":0,"139":0,"155":0,"156":0,"157":0,"159":0,"160":0,"162":0,"163":0,"166":0,"167":0,"168":0,"171":0,"174":0,"189":0,"190":0,"191":0,"193":0,"194":0,"196":0,"197":0,"200":0,"201":0,"202":0,"205":0,"208":0,"223":0,"224":0,"225":0,"228":0,"229":0,"232":0,"233":0,"236":0,"237":0,"238":0,"241":0,"244":0,"245":0,"248":0,"264":0,"265":0,"267":0,"268":0,"270":0,"284":0,"285":0,"287":0,"302":0,"303":0,"306":0,"307":0,"309":0,"322":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"342":0,"355":0,"356":0,"358":0,"362":0};
-_yuitest_coverage["build/anim-easing/anim-easing.js"].functions = {"easeNone:52":0,"easeIn:65":0,"easeOut:78":0,"easeBoth:91":0,"easeInStrong:108":0,"easeOutStrong:121":0,"easeBothStrong:134":0,"elasticIn:154":0,"elasticOut:188":0,"elasticBoth:222":0,"backIn:263":0,"backOut:283":0,"backBoth:301":0,"bounceIn:321":0,"bounceOut:334":0,"bounceBoth:354":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-easing/anim-easing.js"].coveredLines = 76;
-_yuitest_coverage["build/anim-easing/anim-easing.js"].coveredFunctions = 17;
-_yuitest_coverline("build/anim-easing/anim-easing.js", 1);
-YUI.add('anim-easing', function (Y, NAME) {
-
-/*
-TERMS OF USE - EASING EQUATIONS
-Open source under the BSD License.
-Copyright 2001 Robert Penner All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of the author nor the names of contributors may be used to
- endorse or promote products derived from this software without specific prior
- written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
- * The easing module provides methods for customizing
- * how an animation behaves during each run.
- * @class Easing
- * @module anim
- * @submodule anim-easing
- */
-
-_yuitest_coverfunc("build/anim-easing/anim-easing.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 40);
-var Easing = {
-
- /**
- * Uniform speed between points.
- * @for Easing
- * @method easeNone
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeNone: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeNone", 52);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 53);
-return c*t/d + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quadratic)
- * @method easeIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeIn: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeIn", 65);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 66);
-return c*(t/=d)*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quadratic)
- * @method easeOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOut: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeOut", 78);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 79);
-return -c *(t/=d)*(t-2) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quadratic)
- * @method easeBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBoth: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeBoth", 91);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 92);
-if ((t /= d/2) < 1) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 93);
-return c/2*t*t + b;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 96);
-return -c/2 * ((--t)*(t-2) - 1) + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quartic)
- * @method easeInStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeInStrong: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeInStrong", 108);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 109);
-return c*(t/=d)*t*t*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quartic)
- * @method easeOutStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOutStrong: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeOutStrong", 121);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 122);
-return -c * ((t=t/d-1)*t*t*t - 1) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quartic)
- * @method easeBothStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBothStrong: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "easeBothStrong", 134);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 135);
-if ((t /= d/2) < 1) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 136);
-return c/2*t*t*t*t + b;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 139);
-return -c/2 * ((t-=2)*t*t*t - 2) + b;
- },
-
- /**
- * Snap in elastic effect.
- * @method elasticIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
-
- elasticIn: function (t, b, c, d, a, p) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "elasticIn", 154);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 155);
-var s;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 156);
-if (t === 0) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 157);
-return b;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 159);
-if ( (t /= d) === 1 ) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 160);
-return b+c;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 162);
-if (!p) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 163);
-p = d* 0.3;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 166);
-if (!a || a < Math.abs(c)) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 167);
-a = c;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 168);
-s = p/4;
- }
- else {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 171);
-s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 174);
-return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- },
-
- /**
- * Snap out elastic effect.
- * @method elasticOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticOut: function (t, b, c, d, a, p) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "elasticOut", 188);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 189);
-var s;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 190);
-if (t === 0) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 191);
-return b;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 193);
-if ( (t /= d) === 1 ) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 194);
-return b+c;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 196);
-if (!p) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 197);
-p=d * 0.3;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 200);
-if (!a || a < Math.abs(c)) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 201);
-a = c;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 202);
-s = p / 4;
- }
- else {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 205);
-s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 208);
-return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
- },
-
- /**
- * Snap both elastic effect.
- * @method elasticBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticBoth: function (t, b, c, d, a, p) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "elasticBoth", 222);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 223);
-var s;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 224);
-if (t === 0) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 225);
-return b;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 228);
-if ( (t /= d/2) === 2 ) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 229);
-return b+c;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 232);
-if (!p) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 233);
-p = d*(0.3*1.5);
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 236);
-if ( !a || a < Math.abs(c) ) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 237);
-a = c;
- _yuitest_coverline("build/anim-easing/anim-easing.js", 238);
-s = p/4;
- }
- else {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 241);
-s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 244);
-if (t < 1) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 245);
-return -0.5*(a*Math.pow(2,10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 248);
-return a*Math.pow(2,-10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )*0.5 + c + b;
- },
-
-
- /**
- * Backtracks slightly, then reverses direction and moves to end.
- * @method backIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backIn: function (t, b, c, d, s) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "backIn", 263);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 264);
-if (s === undefined) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 265);
-s = 1.70158;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 267);
-if (t === d) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 268);
-t -= 0.001;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 270);
-return c*(t/=d)*t*((s+1)*t - s) + b;
- },
-
- /**
- * Overshoots end, then reverses and comes back to end.
- * @method backOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backOut: function (t, b, c, d, s) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "backOut", 283);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 284);
-if (typeof s === 'undefined') {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 285);
-s = 1.70158;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 287);
-return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
- },
-
- /**
- * Backtracks slightly, then reverses direction, overshoots end,
- * then reverses and comes back to end.
- * @method backBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backBoth: function (t, b, c, d, s) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "backBoth", 301);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 302);
-if (typeof s === 'undefined') {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 303);
-s = 1.70158;
- }
-
- _yuitest_coverline("build/anim-easing/anim-easing.js", 306);
-if ((t /= d/2 ) < 1) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 307);
-return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 309);
-return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
- },
-
- /**
- * Bounce off of start.
- * @method bounceIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceIn: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "bounceIn", 321);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 322);
-return c - Y.Easing.bounceOut(d-t, 0, c, d) + b;
- },
-
- /**
- * Bounces off end.
- * @method bounceOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceOut: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "bounceOut", 334);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 335);
-if ((t/=d) < (1/2.75)) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 336);
-return c*(7.5625*t*t) + b;
- } else {_yuitest_coverline("build/anim-easing/anim-easing.js", 337);
-if (t < (2/2.75)) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 338);
-return c*(7.5625*(t-=(1.5/2.75))*t + 0.75) + b;
- } else {_yuitest_coverline("build/anim-easing/anim-easing.js", 339);
-if (t < (2.5/2.75)) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 340);
-return c*(7.5625*(t-=(2.25/2.75))*t + 0.9375) + b;
- }}}
- _yuitest_coverline("build/anim-easing/anim-easing.js", 342);
-return c*(7.5625*(t-=(2.625/2.75))*t + 0.984375) + b;
- },
-
- /**
- * Bounces off start and end.
- * @method bounceBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceBoth: function (t, b, c, d) {
- _yuitest_coverfunc("build/anim-easing/anim-easing.js", "bounceBoth", 354);
-_yuitest_coverline("build/anim-easing/anim-easing.js", 355);
-if (t < d/2) {
- _yuitest_coverline("build/anim-easing/anim-easing.js", 356);
-return Y.Easing.bounceIn(t * 2, 0, c, d) * 0.5 + b;
- }
- _yuitest_coverline("build/anim-easing/anim-easing.js", 358);
-return Y.Easing.bounceOut(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
- }
-};
-
-_yuitest_coverline("build/anim-easing/anim-easing.js", 362);
-Y.Easing = Easing;
-
-
-}, '@VERSION@', {"requires": ["anim-base"]});
+var __cov_YIovT6krughe2nlH0KPcnA = __coverage__['build/anim-easing/anim-easing.js'];
+__cov_YIovT6krughe2nlH0KPcnA.s['1']++;YUI.add('anim-easing',function(Y,NAME){__cov_YIovT6krughe2nlH0KPcnA.f['1']++;__cov_YIovT6krughe2nlH0KPcnA.s['2']++;var Easing={easeNone:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['2']++;__cov_YIovT6krughe2nlH0KPcnA.s['3']++;return c*t/d+b;},easeIn:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['3']++;__cov_YIovT6krughe2nlH0KPcnA.s['4']++;return c*(t/=d)*t+b;},easeOut:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['4']++;__cov_YIovT6krughe2nlH0KPcnA.s['5']++;return-c*(t/=d)*(t-2)+b;},easeBoth:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['5']++;__cov_YIovT6krughe2nlH0KPcnA.s['6']++;if((t/=d/2)<1){__cov_YIovT6krughe2nlH0KPcnA.b['1'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['7']++;return c/2*t*t+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['1'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['8']++;return-c/2*(--t*(t-2)-1)+b;},easeInStrong:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['6']++;__cov_YIovT6krughe2nlH0KPcnA.s['9']++;return c*(t/=d)*t*t*t+b;},easeOutStrong:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['7']++;__cov_YIovT6krughe2nlH0KPcnA.s['10']++;return-c*((t=t/d-1)*t*t*t-1)+b;},easeBothStrong:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['8']++;__cov_YIovT6krughe2nlH0KPcnA.s['11']++;if((t/=d/2)<1){__cov_YIovT6krughe2nlH0KPcnA.b['2'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['12']++;return c/2*t*t*t*t+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['2'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['13']++;return-c/2*((t-=2)*t*t*t-2)+b;},elasticIn:function(t,b,c,d,a,p){__cov_YIovT6krughe2nlH0KPcnA.f['9']++;__cov_YIovT6krughe2nlH0KPcnA.s['14']++;var s;__cov_YIovT6krughe2nlH0KPcnA.s['15']++;if(t===0){__cov_YIovT6krughe2nlH0KPcnA.b['3'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['16']++;return b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['3'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['17']++;if((t/=d)===1){__cov_YIovT6krughe2nlH0KPcnA.b['4'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['18']++;return b+c;}else{__cov_YIovT6krughe2nlH0KPcnA.b['4'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['19']++;if(!p){__cov_YIovT6krughe2nlH0KPcnA.b['5'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['20']++;p=d*0.3;}else{__cov_YIovT6krughe2nlH0KPcnA.b['5'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['21']++;if((__cov_YIovT6krughe2nlH0KPcnA.b['7'][0]++,!a)||(__cov_YIovT6krughe2nlH0KPcnA.b['7'][1]++,a<Math.abs(c))){__cov_YIovT6krughe2nlH0KPcnA.b['6'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['22']++;a=c;__cov_YIovT6krughe2nlH0KPcnA.s['23']++;s=p/4;}else{__cov_YIovT6krughe2nlH0KPcnA.b['6'][1]++;__cov_YIovT6krughe2nlH0KPcnA.s['24']++;s=p/(2*Math.PI)*Math.asin(c/a);}__cov_YIovT6krughe2nlH0KPcnA.s['25']++;return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},elasticOut:function(t,b,c,d,a,p){__cov_YIovT6krughe2nlH0KPcnA.f['10']++;__cov_YIovT6krughe2nlH0KPcnA.s['26']++;var s;__cov_YIovT6krughe2nlH0KPcnA.s['27']++;if(t===0){__cov_YIovT6krughe2nlH0KPcnA.b['8'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['28']++;return b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['8'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['29']++;if((t/=d)===1){__cov_YIovT6krughe2nlH0KPcnA.b['9'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['30']++;return b+c;}else{__cov_YIovT6krughe2nlH0KPcnA.b['9'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['31']++;if(!p){__cov_YIovT6krughe2nlH0KPcnA.b['10'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['32']++;p=d*0.3;}else{__cov_YIovT6krughe2nlH0KPcnA.b['10'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['33']++;if((__cov_YIovT6krughe2nlH0KPcnA.b['12'][0]++,!a)||(__cov_YIovT6krughe2nlH0KPcnA.b['12'][1]++,a<Math.abs(c))){__cov_YIovT6krughe2nlH0KPcnA.b['11'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['34']++;a=c;__cov_YIovT6krughe2nlH0KPcnA.s['35']++;s=p/4;}else{__cov_YIovT6krughe2nlH0KPcnA.b['11'][1]++;__cov_YIovT6krughe2nlH0KPcnA.s['36']++;s=p/(2*Math.PI)*Math.asin(c/a);}__cov_YIovT6krughe2nlH0KPcnA.s['37']++;return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},elasticBoth:function(t,b,c,d,a,p){__cov_YIovT6krughe2nlH0KPcnA.f['11']++;__cov_YIovT6krughe2nlH0KPcnA.s['38']++;var s;__cov_YIovT6krughe2nlH0KPcnA.s['39']++;if(t===0){__cov_YIovT6krughe2nlH0KPcnA.b['13'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['40']++;return b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['13'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['41']++;if((t/=d/2)===2){__cov_YIovT6krughe2nlH0KPcnA.b['14'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['42']++;return b+c;}else{__cov_YIovT6krughe2nlH0KPcnA.b['14'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['43']++;if(!p){__cov_YIovT6krughe2nlH0KPcnA.b['15'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['44']++;p=d*(0.3*1.5);}else{__cov_YIovT6krughe2nlH0KPcnA.b['15'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['45']++;if((__cov_YIovT6krughe2nlH0KPcnA.b['17'][0]++,!a)||(__cov_YIovT6krughe2nlH0KPcnA.b['17'][1]++,a<Math.abs(c))){__cov_YIovT6krughe2nlH0KPcnA.b['16'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['46']++;a=c;__cov_YIovT6krughe2nlH0KPcnA.s['47']++;s=p/4;}else{__cov_YIovT6krughe2nlH0KPcnA.b['16'][1]++;__cov_YIovT6krughe2nlH0KPcnA.s['48']++;s=p/(2*Math.PI)*Math.asin(c/a);}__cov_YIovT6krughe2nlH0KPcnA.s['49']++;if(t<1){__cov_YIovT6krughe2nlH0KPcnA.b['18'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['50']++;return-0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['18'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['51']++;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b;},backIn:function(t,b,c,d,s){__cov_YIovT6krughe2nlH0KPcnA.f['12']++;__cov_YIovT6krughe2nlH0KPcnA.s['52']++;if(s===undefined){__cov_YIovT6krughe2nlH0KPcnA.b['19'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['53']++;s=1.70158;}else{__cov_YIovT6krughe2nlH0KPcnA.b['19'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['54']++;if(t===d){__cov_YIovT6krughe2nlH0KPcnA.b['20'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['55']++;t-=0.001;}else{__cov_YIovT6krughe2nlH0KPcnA.b['20'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['56']++;return c*(t/=d)*t*((s+1)*t-s)+b;},backOut:function(t,b,c,d,s){__cov_YIovT6krughe2nlH0KPcnA.f['13']++;__cov_YIovT6krughe2nlH0KPcnA.s['57']++;if(typeof s==='undefined'){__cov_YIovT6krughe2nlH0KPcnA.b['21'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['58']++;s=1.70158;}else{__cov_YIovT6krughe2nlH0KPcnA.b['21'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['59']++;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},backBoth:function(t,b,c,d,s){__cov_YIovT6krughe2nlH0KPcnA.f['14']++;__cov_YIovT6krughe2nlH0KPcnA.s['60']++;if(typeof s==='undefined'){__cov_YIovT6krughe2nlH0KPcnA.b['22'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['61']++;s=1.70158;}else{__cov_YIovT6krughe2nlH0KPcnA.b['22'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['62']++;if((t/=d/2)<1){__cov_YIovT6krughe2nlH0KPcnA.b['23'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['63']++;return c/2*(t*t*(((s*=1.525)+1)*t-s))+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['23'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['64']++;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b;},bounceIn:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['15']++;__cov_YIovT6krughe2nlH0KPcnA.s['65']++;return c-Y.Easing.bounceOut(d-t,0,c,d)+b;},bounceOut:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['16']++;__cov_YIovT6krughe2nlH0KPcnA.s['66']++;if((t/=d)<1/2.75){__cov_YIovT6krughe2nlH0KPcnA.b['24'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['67']++;return c*(7.5625*t*t)+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['24'][1]++;__cov_YIovT6krughe2nlH0KPcnA.s['68']++;if(t<2/2.75){__cov_YIovT6krughe2nlH0KPcnA.b['25'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['69']++;return c*(7.5625*(t-=1.5/2.75)*t+0.75)+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['25'][1]++;__cov_YIovT6krughe2nlH0KPcnA.s['70']++;if(t<2.5/2.75){__cov_YIovT6krughe2nlH0KPcnA.b['26'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['71']++;return c*(7.5625*(t-=2.25/2.75)*t+0.9375)+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['26'][1]++;}}}__cov_YIovT6krughe2nlH0KPcnA.s['72']++;return c*(7.5625*(t-=2.625/2.75)*t+0.984375)+b;},bounceBoth:function(t,b,c,d){__cov_YIovT6krughe2nlH0KPcnA.f['17']++;__cov_YIovT6krughe2nlH0KPcnA.s['73']++;if(t<d/2){__cov_YIovT6krughe2nlH0KPcnA.b['27'][0]++;__cov_YIovT6krughe2nlH0KPcnA.s['74']++;return Y.Easing.bounceIn(t*2,0,c,d)*0.5+b;}else{__cov_YIovT6krughe2nlH0KPcnA.b['27'][1]++;}__cov_YIovT6krughe2nlH0KPcnA.s['75']++;return Y.Easing.bounceOut(t*2-d,0,c,d)*0.5+c*0.5+b;}};__cov_YIovT6krughe2nlH0KPcnA.s['76']++;Y.Easing=Easing;},'@VERSION@',{'requires':['anim-base']});
View
75 build/anim-node-plugin/anim-node-plugin-coverage.js
@@ -1,71 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-node-plugin/anim-node-plugin.js']) {
+ __coverage__['build/anim-node-plugin/anim-node-plugin.js'] = {"path":"build/anim-node-plugin/anim-node-plugin.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"1":[0,0]},"f":{"1":0,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":47}}},"2":{"name":"(anonymous_2)","line":11,"loc":{"start":{"line":11,"column":13},"end":{"line":11,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":26,"column":64}},"2":{"start":{"line":11,"column":0},"end":{"line":15,"column":2}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":45}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":30}},"5":{"start":{"line":14,"column":4},"end":{"line":14,"column":57}},"6":{"start":{"line":17,"column":0},"end":{"line":17,"column":23}},"7":{"start":{"line":18,"column":0},"end":{"line":18,"column":17}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":25}},"9":{"start":{"line":22,"column":0},"end":{"line":22,"column":22}},"10":{"start":{"line":23,"column":0},"end":{"line":23,"column":25}}},"branchMap":{"1":{"line":12,"type":"cond-expr","locations":[{"start":{"line":12,"column":24},"end":{"line":12,"column":39}},{"start":{"line":12,"column":42},"end":{"line":12,"column":44}}]}},"code":["(function () { YUI.add('anim-node-plugin', function (Y, NAME) {","","/**"," * Binds an Anim instance to a Node instance"," * @module anim"," * @class Plugin.NodeFX"," * @extends Anim"," * @submodule anim-node-plugin"," */","","var NodeFX = function(config) {"," config = (config) ? Y.merge(config) : {};"," config.node = config.host;"," NodeFX.superclass.constructor.apply(this, arguments);","};","","NodeFX.NAME = \"nodefx\";","NodeFX.NS = \"fx\";","","Y.extend(NodeFX, Y.Anim);","","Y.namespace('Plugin');","Y.Plugin.NodeFX = NodeFX;","","","}, '@VERSION@', {\"requires\": [\"node-pluginhost\", \"anim-base\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-node-plugin/anim-node-plugin.js",
- code: []
-};
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"].code=["YUI.add('anim-node-plugin', function (Y, NAME) {","","/**"," * Binds an Anim instance to a Node instance"," * @module anim"," * @class Plugin.NodeFX"," * @extends Anim"," * @submodule anim-node-plugin"," */","","var NodeFX = function(config) {"," config = (config) ? Y.merge(config) : {};"," config.node = config.host;"," NodeFX.superclass.constructor.apply(this, arguments);","};","","NodeFX.NAME = \"nodefx\";","NodeFX.NS = \"fx\";","","Y.extend(NodeFX, Y.Anim);","","Y.namespace('Plugin');","Y.Plugin.NodeFX = NodeFX;","","","}, '@VERSION@', {\"requires\": [\"node-pluginhost\", \"anim-base\"]});"];
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"].lines = {"1":0,"11":0,"12":0,"13":0,"14":0,"17":0,"18":0,"20":0,"22":0,"23":0};
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"].functions = {"NodeFX:11":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"].coveredLines = 10;
-_yuitest_coverage["build/anim-node-plugin/anim-node-plugin.js"].coveredFunctions = 2;
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 1);
-YUI.add('anim-node-plugin', function (Y, NAME) {
-
-/**
- * Binds an Anim instance to a Node instance
- * @module anim
- * @class Plugin.NodeFX
- * @extends Anim
- * @submodule anim-node-plugin
- */
-
-_yuitest_coverfunc("build/anim-node-plugin/anim-node-plugin.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 11);
-var NodeFX = function(config) {
- _yuitest_coverfunc("build/anim-node-plugin/anim-node-plugin.js", "NodeFX", 11);
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 12);
-config = (config) ? Y.merge(config) : {};
- _yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 13);
-config.node = config.host;
- _yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 14);
-NodeFX.superclass.constructor.apply(this, arguments);
-};
-
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 17);
-NodeFX.NAME = "nodefx";
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 18);
-NodeFX.NS = "fx";
-
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 20);
-Y.extend(NodeFX, Y.Anim);
-
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 22);
-Y.namespace('Plugin');
-_yuitest_coverline("build/anim-node-plugin/anim-node-plugin.js", 23);
-Y.Plugin.NodeFX = NodeFX;
-
-
-}, '@VERSION@', {"requires": ["node-pluginhost", "anim-base"]});
+var __cov_rw4Ct134YvRotvWfOr0i4g = __coverage__['build/anim-node-plugin/anim-node-plugin.js'];
+__cov_rw4Ct134YvRotvWfOr0i4g.s['1']++;YUI.add('anim-node-plugin',function(Y,NAME){__cov_rw4Ct134YvRotvWfOr0i4g.f['1']++;__cov_rw4Ct134YvRotvWfOr0i4g.s['2']++;var NodeFX=function(config){__cov_rw4Ct134YvRotvWfOr0i4g.f['2']++;__cov_rw4Ct134YvRotvWfOr0i4g.s['3']++;config=config?(__cov_rw4Ct134YvRotvWfOr0i4g.b['1'][0]++,Y.merge(config)):(__cov_rw4Ct134YvRotvWfOr0i4g.b['1'][1]++,{});__cov_rw4Ct134YvRotvWfOr0i4g.s['4']++;config.node=config.host;__cov_rw4Ct134YvRotvWfOr0i4g.s['5']++;NodeFX.superclass.constructor.apply(this,arguments);};__cov_rw4Ct134YvRotvWfOr0i4g.s['6']++;NodeFX.NAME='nodefx';__cov_rw4Ct134YvRotvWfOr0i4g.s['7']++;NodeFX.NS='fx';__cov_rw4Ct134YvRotvWfOr0i4g.s['8']++;Y.extend(NodeFX,Y.Anim);__cov_rw4Ct134YvRotvWfOr0i4g.s['9']++;Y.namespace('Plugin');__cov_rw4Ct134YvRotvWfOr0i4g.s['10']++;Y.Plugin.NodeFX=NodeFX;},'@VERSION@',{'requires':['node-pluginhost','anim-base']});
View
88 build/anim-scroll/anim-scroll-coverage.js
@@ -1,84 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-scroll/anim-scroll.js']) {
+ __coverage__['build/anim-scroll/anim-scroll.js'] = {"path":"build/anim-scroll/anim-scroll.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"1":[0,0],"2":[0,0]},"f":{"1":0,"2":0,"3":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":14,"loc":{"start":{"line":14,"column":9},"end":{"line":14,"column":62}}},"3":{"name":"(anonymous_3)","line":30,"loc":{"start":{"line":30,"column":9},"end":{"line":30,"column":24}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":38,"column":45}},"2":{"start":{"line":10,"column":0},"end":{"line":10,"column":17}},"3":{"start":{"line":13,"column":0},"end":{"line":34,"column":2}},"4":{"start":{"line":15,"column":8},"end":{"line":20,"column":11}},"5":{"start":{"line":22,"column":8},"end":{"line":24,"column":9}},"6":{"start":{"line":23,"column":12},"end":{"line":23,"column":43}},"7":{"start":{"line":26,"column":8},"end":{"line":28,"column":9}},"8":{"start":{"line":27,"column":12},"end":{"line":27,"column":42}},"9":{"start":{"line":31,"column":8},"end":{"line":31,"column":30}},"10":{"start":{"line":32,"column":8},"end":{"line":32,"column":63}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":8},"end":{"line":22,"column":8}},{"start":{"line":22,"column":8},"end":{"line":22,"column":8}}]},"2":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":8},"end":{"line":26,"column":8}},{"start":{"line":26,"column":8},"end":{"line":26,"column":8}}]}},"code":["(function () { YUI.add('anim-scroll', function (Y, NAME) {","","/**"," * Adds support for the <code>scroll</code> property in <code>to</code>"," * and <code>from</code> attributes."," * @module anim"," * @submodule anim-scroll"," */","","var NUM = Number;","","//TODO: deprecate for scrollTop/Left properties?","Y.Anim.behaviors.scroll = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var"," node = anim._node,"," val = (["," fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),"," fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)"," ]);",""," if (val[0]) {"," node.set('scrollLeft', val[0]);"," }",""," if (val[1]) {"," node.set('scrollTop', val[1]);"," }"," },"," get: function(anim) {"," var node = anim._node;"," return [node.get('scrollLeft'), node.get('scrollTop')];"," }","};","","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-scroll/anim-scroll.js",
- code: []
-};
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"].code=["YUI.add('anim-scroll', function (Y, NAME) {","","/**"," * Adds support for the <code>scroll</code> property in <code>to</code>"," * and <code>from</code> attributes."," * @module anim"," * @submodule anim-scroll"," */","","var NUM = Number;","","//TODO: deprecate for scrollTop/Left properties?","Y.Anim.behaviors.scroll = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var"," node = anim._node,"," val = (["," fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),"," fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)"," ]);",""," if (val[0]) {"," node.set('scrollLeft', val[0]);"," }",""," if (val[1]) {"," node.set('scrollTop', val[1]);"," }"," },"," get: function(anim) {"," var node = anim._node;"," return [node.get('scrollLeft'), node.get('scrollTop')];"," }","};","","","","}, '@VERSION@', {\"requires\": [\"anim-base\"]});"];
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"].lines = {"1":0,"10":0,"13":0,"15":0,"22":0,"23":0,"26":0,"27":0,"31":0,"32":0};
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"].functions = {"set:14":0,"get:30":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"].coveredLines = 10;
-_yuitest_coverage["build/anim-scroll/anim-scroll.js"].coveredFunctions = 3;
-_yuitest_coverline("build/anim-scroll/anim-scroll.js", 1);
-YUI.add('anim-scroll', function (Y, NAME) {
-
-/**
- * Adds support for the <code>scroll</code> property in <code>to</code>
- * and <code>from</code> attributes.
- * @module anim
- * @submodule anim-scroll
- */
-
-_yuitest_coverfunc("build/anim-scroll/anim-scroll.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-scroll/anim-scroll.js", 10);
-var NUM = Number;
-
-//TODO: deprecate for scrollTop/Left properties?
-_yuitest_coverline("build/anim-scroll/anim-scroll.js", 13);
-Y.Anim.behaviors.scroll = {
- set: function(anim, att, from, to, elapsed, duration, fn) {
- _yuitest_coverfunc("build/anim-scroll/anim-scroll.js", "set", 14);
-_yuitest_coverline("build/anim-scroll/anim-scroll.js", 15);
-var
- node = anim._node,
- val = ([
- fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
- fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
- ]);
-
- _yuitest_coverline("build/anim-scroll/anim-scroll.js", 22);
-if (val[0]) {
- _yuitest_coverline("build/anim-scroll/anim-scroll.js", 23);
-node.set('scrollLeft', val[0]);
- }
-
- _yuitest_coverline("build/anim-scroll/anim-scroll.js", 26);
-if (val[1]) {
- _yuitest_coverline("build/anim-scroll/anim-scroll.js", 27);
-node.set('scrollTop', val[1]);
- }
- },
- get: function(anim) {
- _yuitest_coverfunc("build/anim-scroll/anim-scroll.js", "get", 30);
-_yuitest_coverline("build/anim-scroll/anim-scroll.js", 31);
-var node = anim._node;
- _yuitest_coverline("build/anim-scroll/anim-scroll.js", 32);
-return [node.get('scrollLeft'), node.get('scrollTop')];
- }
-};
-
-
-
-}, '@VERSION@', {"requires": ["anim-base"]});
+var __cov_Y$ghTwscbGchAvCVB9DMFQ = __coverage__['build/anim-scroll/anim-scroll.js'];
+__cov_Y$ghTwscbGchAvCVB9DMFQ.s['1']++;YUI.add('anim-scroll',function(Y,NAME){__cov_Y$ghTwscbGchAvCVB9DMFQ.f['1']++;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['2']++;var NUM=Number;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['3']++;Y.Anim.behaviors.scroll={set:function(anim,att,from,to,elapsed,duration,fn){__cov_Y$ghTwscbGchAvCVB9DMFQ.f['2']++;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['4']++;var node=anim._node,val=[fn(elapsed,NUM(from[0]),NUM(to[0])-NUM(from[0]),duration),fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)];__cov_Y$ghTwscbGchAvCVB9DMFQ.s['5']++;if(val[0]){__cov_Y$ghTwscbGchAvCVB9DMFQ.b['1'][0]++;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['6']++;node.set('scrollLeft',val[0]);}else{__cov_Y$ghTwscbGchAvCVB9DMFQ.b['1'][1]++;}__cov_Y$ghTwscbGchAvCVB9DMFQ.s['7']++;if(val[1]){__cov_Y$ghTwscbGchAvCVB9DMFQ.b['2'][0]++;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['8']++;node.set('scrollTop',val[1]);}else{__cov_Y$ghTwscbGchAvCVB9DMFQ.b['2'][1]++;}},get:function(anim){__cov_Y$ghTwscbGchAvCVB9DMFQ.f['3']++;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['9']++;var node=anim._node;__cov_Y$ghTwscbGchAvCVB9DMFQ.s['10']++;return[node.get('scrollLeft'),node.get('scrollTop')];}};},'@VERSION@',{'requires':['anim-base']});
View
296 build/anim-shape/anim-shape-coverage.js
@@ -1,292 +1,6 @@
-if (typeof _yuitest_coverage == "undefined"){
- _yuitest_coverage = {};
- _yuitest_coverline = function(src, line){
- var coverage = _yuitest_coverage[src];
- if (!coverage.lines[line]){
- coverage.calledLines++;
- }
- coverage.lines[line]++;
- };
- _yuitest_coverfunc = function(src, name, line){
- var coverage = _yuitest_coverage[src],
- funcId = name + ":" + line;
- if (!coverage.functions[funcId]){
- coverage.calledFunctions++;
- }
- coverage.functions[funcId]++;
- };
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/anim-shape/anim-shape.js']) {
+ __coverage__['build/anim-shape/anim-shape.js'] = {"path":"build/anim-shape/anim-shape.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":41}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":22},"end":{"line":25,"column":4}}},"3":{"name":"(anonymous_3)","line":64,"loc":{"start":{"line":64,"column":13},"end":{"line":64,"column":66}}},"4":{"name":"(anonymous_4)","line":94,"loc":{"start":{"line":94,"column":13},"end":{"line":94,"column":66}}},"5":{"name":"(anonymous_5)","line":132,"loc":{"start":{"line":132,"column":13},"end":{"line":132,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":185,"column":84}},"2":{"start":{"line":18,"column":4},"end":{"line":89,"column":6}},"3":{"start":{"line":26,"column":8},"end":{"line":33,"column":17}},"4":{"start":{"line":34,"column":8},"end":{"line":60,"column":9}},"5":{"start":{"line":36,"column":12},"end":{"line":36,"column":27}},"6":{"start":{"line":37,"column":12},"end":{"line":37,"column":31}},"7":{"start":{"line":38,"column":12},"end":{"line":38,"column":22}},"8":{"start":{"line":39,"column":12},"end":{"line":58,"column":13}},"9":{"start":{"line":41,"column":16},"end":{"line":57,"column":17}},"10":{"start":{"line":43,"column":20},"end":{"line":56,"column":21}},"11":{"start":{"line":45,"column":24},"end":{"line":51,"column":27}},"12":{"start":{"line":55,"column":24},"end":{"line":55,"column":121}},"13":{"start":{"line":59,"column":12},"end":{"line":59,"column":29}},"14":{"start":{"line":61,"column":8},"end":{"line":61,"column":21}},"15":{"start":{"line":65,"column":12},"end":{"line":68,"column":46}},"16":{"start":{"line":69,"column":12},"end":{"line":86,"column":13}},"17":{"start":{"line":71,"column":16},"end":{"line":85,"column":17}},"18":{"start":{"line":73,"column":20},"end":{"line":84,"column":21}},"19":{"start":{"line":76,"column":28},"end":{"line":76,"column":101}},"20":{"start":{"line":77,"column":24},"end":{"line":77,"column":30}},"21":{"start":{"line":79,"column":28},"end":{"line":79,"column":102}},"22":{"start":{"line":80,"column":24},"end":{"line":80,"column":30}},"23":{"start":{"line":82,"column":28},"end":{"line":82,"column":104}},"24":{"start":{"line":83,"column":24},"end":{"line":83,"column":30}},"25":{"start":{"line":87,"column":12},"end":{"line":87,"column":41}},"26":{"start":{"line":90,"column":4},"end":{"line":90,"column":50}},"27":{"start":{"line":91,"column":4},"end":{"line":91,"column":52}},"28":{"start":{"line":93,"column":4},"end":{"line":181,"column":6}},"29":{"start":{"line":95,"column":12},"end":{"line":104,"column":20}},"30":{"start":{"line":105,"column":12},"end":{"line":105,"column":20}},"31":{"start":{"line":106,"column":12},"end":{"line":106,"column":28}},"32":{"start":{"line":107,"column":12},"end":{"line":124,"column":13}},"33":{"start":{"line":109,"column":16},"end":{"line":109,"column":40}},"34":{"start":{"line":110,"column":16},"end":{"line":110,"column":44}},"35":{"start":{"line":111,"column":16},"end":{"line":111,"column":45}},"36":{"start":{"line":112,"column":16},"end":{"line":112,"column":49}},"37":{"start":{"line":113,"column":16},"end":{"line":113,"column":39}},"38":{"start":{"line":114,"column":16},"end":{"line":114,"column":47}},"39":{"start":{"line":115,"column":16},"end":{"line":122,"column":17}},"40":{"start":{"line":117,"column":20},"end":{"line":117,"column":108}},"41":{"start":{"line":118,"column":20},"end":{"line":121,"column":21}},"42":{"start":{"line":120,"column":24},"end":{"line":120,"column":42}},"43":{"start":{"line":123,"column":16},"end":{"line":123,"column":34}},"44":{"start":{"line":125,"column":12},"end":{"line":128,"column":13}},"45":{"start":{"line":127,"column":16},"end":{"line":127,"column":49}},"46":{"start":{"line":129,"column":12},"end":{"line":129,"column":39}},"47":{"start":{"line":133,"column":12},"end":{"line":143,"column":21}},"48":{"start":{"line":144,"column":12},"end":{"line":177,"column":13}},"49":{"start":{"line":146,"column":16},"end":{"line":176,"column":17}},"50":{"start":{"line":148,"column":20},"end":{"line":148,"column":35}},"51":{"start":{"line":149,"column":20},"end":{"line":149,"column":41}},"52":{"start":{"line":150,"column":20},"end":{"line":154,"column":21}},"53":{"start":{"line":152,"column":24},"end":{"line":152,"column":58}},"54":{"start":{"line":153,"column":24},"end":{"line":153,"column":97}},"55":{"start":{"line":155,"column":20},"end":{"line":155,"column":33}},"56":{"start":{"line":156,"column":20},"end":{"line":156,"column":37}},"57":{"start":{"line":158,"column":21},"end":{"line":176,"column":17}},"58":{"start":{"line":160,"column":20},"end":{"line":160,"column":33}},"59":{"start":{"line":161,"column":20},"end":{"line":161,"column":37}},"60":{"start":{"line":165,"column":20},"end":{"line":165,"column":46}},"61":{"start":{"line":166,"column":20},"end":{"line":166,"column":41}},"62":{"start":{"line":167,"column":20},"end":{"line":172,"column":21}},"63":{"start":{"line":169,"column":24},"end":{"line":169,"column":63}},"64":{"start":{"line":170,"column":24},"end":{"line":170,"column":108}},"65":{"start":{"line":171,"column":24},"end":{"line":171,"column":80}},"66":{"start":{"line":174,"column":20},"end":{"line":174,"column":46}},"67":{"start":{"line":175,"column":20},"end":{"line":175,"column":50}},"68":{"start":{"line":178,"column":12},"end":{"line":178,"column":32}},"69":{"start":{"line":179,"column":12},"end":{"line":179,"column":24}}},"branchMap":{"1":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":16},"end":{"line":41,"column":16}},{"start":{"line":41,"column":16},"end":{"line":41,"column":16}}]},"2":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":20},"end":{"line":43,"column":20}},{"start":{"line":43,"column":20},"end":{"line":43,"column":20}}]},"3":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":16},"end":{"line":71,"column":16}},{"start":{"line":71,"column":16},"end":{"line":71,"column":16}}]},"4":{"line":71,"type":"binary-expr","locations":[{"start":{"line":71,"column":19},"end":{"line":71,"column":39}},{"start":{"line":71,"column":43},"end":{"line":71,"column":53}}]},"5":{"line":73,"type":"switch","locations":[{"start":{"line":75,"column":24},"end":{"line":77,"column":30}},{"start":{"line":78,"column":24},"end":{"line":80,"column":30}},{"start":{"line":81,"column":24},"end":{"line":83,"column":30}}]},"6":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":20}},{"start":{"line":118,"column":20},"end":{"line":118,"column":20}}]},"7":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":12},"end":{"line":125,"column":12}},{"start":{"line":125,"column":12},"end":{"line":125,"column":12}}]},"8":{"line":138,"type":"cond-expr","locations":[{"start":{"line":138,"column":41},"end":{"line":138,"column":83}},{"start":{"line":138,"column":86},"end":{"line":138,"column":90}}]},"9":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":12},"end":{"line":144,"column":12}},{"start":{"line":144,"column":12},"end":{"line":144,"column":12}}]},"10":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":16},"end":{"line":146,"column":16}},{"start":{"line":146,"column":16},"end":{"line":146,"column":16}}]},"11":{"line":146,"type":"binary-expr","locations":[{"start":{"line":146,"column":19},"end":{"line":146,"column":29}},{"start":{"line":146,"column":33},"end":{"line":146,"column":53}}]},"12":{"line":158,"type":"if","locations":[{"start":{"line":158,"column":21},"end":{"line":158,"column":21}},{"start":{"line":158,"column":21},"end":{"line":158,"column":21}}]},"13":{"line":170,"type":"cond-expr","locations":[{"start":{"line":170,"column":77},"end":{"line":170,"column":87}},{"start":{"line":170,"column":90},"end":{"line":170,"column":107}}]}},"code":["(function () { YUI.add('anim-shape', function (Y, NAME) {","","/**"," * Adds support for the <code>transform</code> attribute of <code>Graphic</code>"," * <code>Shape</code> instances."," * @module anim"," * @submodule anim-shape-transform"," * @deprecated Use anim-shape instead."," */","/**"," * Adds support for the <code>transform</code>, <code>fill</code>, and <code> attributes of <code>Graphic</code>"," * <code>Shape</code> instances. The <code>anim-shape</code> submodule can be used for all animations involving"," * <code>Graphic</code> <code>Shape</code> attributes."," *"," * @module anim"," * @submodule anim-shape"," */"," var NUM = Number,"," TO,"," TOSTRING,"," COLOR = \"color\","," STOPS = \"stops\","," TYPE = \"type\","," GETUPDATEDSTOPS = function(anim, from, to, elapsed, duration, fn)"," {"," var i = 0,"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," toStop,"," fromStop,"," prop,"," len = to.length,"," stops = [],"," stop;"," for(; i < len; i = i + 1)"," {"," toStop = to[i];"," fromStop = from[i];"," stop = {};"," for(prop in toStop)"," {"," if(toStop.hasOwnProperty(prop))"," {"," if(prop === COLOR)"," {"," stop[prop] = Y.Color.toHex(getUpdatedColorValue("," Y.Color.toHex(fromStop[prop]),"," Y.Color.toHex(toStop[prop]),"," elapsed,"," duration,"," fn"," ));"," }"," else"," {"," stop[prop] = fn(elapsed, NUM(fromStop[prop]), NUM(toStop[prop]) - NUM(fromStop[prop]), duration);"," }"," }"," }"," stops.push(stop);"," }"," return stops;"," },"," FILLANDSTROKEBEHAVIOR = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var i,"," updated = {},"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," getUpdatedStops = GETUPDATEDSTOPS;"," for(i in to)"," {"," if(to.hasOwnProperty(i) && i !== TYPE)"," {"," switch(i)"," {"," case COLOR :"," updated[i] = getUpdatedColorValue(from[i], to[i], elapsed, duration, fn);"," break;"," case STOPS :"," updated[i] = getUpdatedStops(anim, from[i], to[i], elapsed, duration, fn);"," break;"," default :"," updated[i] = fn(elapsed, NUM(from[i]), NUM(to[i]) - NUM(from[i]), duration);"," break;"," }"," }"," }"," anim._node.set(att, updated);"," }"," };"," Y.Anim.behaviors.fill = FILLANDSTROKEBEHAVIOR;"," Y.Anim.behaviors.stroke = FILLANDSTROKEBEHAVIOR;",""," Y.Anim.behaviors.transform = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var node = anim._node,"," transform = \"\","," transformTo,"," transformFrom,"," toArgs,"," fromArgs,"," i = 0,"," j,"," argLen,"," len;"," to = TO;"," len = TO.length;"," for(; i < len; ++i)"," {"," toArgs = to[i].concat();"," fromArgs = from[i].concat();"," transformTo = toArgs.shift();"," transformFrom = fromArgs.shift();"," argLen = toArgs.length;"," transform += transformTo + \"(\";"," for(j = 0; j < argLen; ++j)"," {"," transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);"," if(j < argLen - 1)"," {"," transform += \", \";"," }"," }"," transform += \");\";"," }"," if(transform)"," {"," node.set('transform', transform);"," }"," node._transform = TOSTRING;"," },",""," get: function(anim) {"," var node = anim._node,"," fromMatrix = node.matrix,"," toString = anim.get(\"to\").transform,"," fromString = node.get(\"transform\"),"," toArray = Y.MatrixUtil.getTransformArray(toString),"," fromArray = fromString ? Y.MatrixUtil.getTransformArray(fromString) : null,"," toMatrix,"," i,"," len,"," transformFunction,"," from;"," if(toArray)"," {"," if(!fromArray || fromArray.length < 1)"," {"," fromArray = [];"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i][0];"," fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);"," }"," TO = toArray;"," from = fromArray;"," }"," else if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))"," {"," TO = toArray;"," from = fromArray;"," }"," else"," {"," toMatrix = new Y.Matrix();"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i].shift();"," transformFunction = transformFunction === \"matrix\" ? \"multiply\" : transformFunction;"," toMatrix[transformFunction].apply(toMatrix, toArray[i]);"," }",""," TO = toMatrix.decompose();"," from = fromMatrix.decompose();"," }"," }"," TOSTRING = toString;"," return from;"," }"," };","","","","}, '@VERSION@', {\"requires\": [\"anim-base\", \"anim-easing\", \"anim-color\", \"matrix\"]});","","}());"]};
}
-_yuitest_coverage["build/anim-shape/anim-shape.js"] = {
- lines: {},
- functions: {},
- coveredLines: 0,
- calledLines: 0,
- coveredFunctions: 0,
- calledFunctions: 0,
- path: "build/anim-shape/anim-shape.js",
- code: []
-};
-_yuitest_coverage["build/anim-shape/anim-shape.js"].code=["YUI.add('anim-shape', function (Y, NAME) {","","/**"," * Adds support for the <code>transform</code> attribute of <code>Graphic</code>"," * <code>Shape</code> instances."," * @module anim"," * @submodule anim-shape-transform"," * @deprecated Use anim-shape instead."," */","/**"," * Adds support for the <code>transform</code>, <code>fill</code>, and <code> attributes of <code>Graphic</code>"," * <code>Shape</code> instances. The <code>anim-shape</code> submodule can be used for all animations involving"," * <code>Graphic</code> <code>Shape</code> attributes."," *"," * @module anim"," * @submodule anim-shape"," */"," var NUM = Number,"," TO,"," TOSTRING,"," COLOR = \"color\","," STOPS = \"stops\","," TYPE = \"type\","," GETUPDATEDSTOPS = function(anim, from, to, elapsed, duration, fn)"," {"," var i = 0,"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," toStop,"," fromStop,"," prop,"," len = to.length,"," stops = [],"," stop;"," for(; i < len; i = i + 1)"," {"," toStop = to[i];"," fromStop = from[i];"," stop = {};"," for(prop in toStop)"," {"," if(toStop.hasOwnProperty(prop))"," {"," if(prop === COLOR)"," {"," stop[prop] = Y.Color.toHex(getUpdatedColorValue("," Y.Color.toHex(fromStop[prop]),"," Y.Color.toHex(toStop[prop]),"," elapsed,"," duration,"," fn"," ));"," }"," else"," {"," stop[prop] = fn(elapsed, NUM(fromStop[prop]), NUM(toStop[prop]) - NUM(fromStop[prop]), duration);"," }"," }"," }"," stops.push(stop);"," }"," return stops;"," },"," FILLANDSTROKEBEHAVIOR = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var i,"," updated = {},"," getUpdatedColorValue = Y.Anim.getUpdatedColorValue,"," getUpdatedStops = GETUPDATEDSTOPS;"," for(i in to)"," {"," if(to.hasOwnProperty(i) && i !== TYPE)"," {"," switch(i)"," {"," case COLOR :"," updated[i] = getUpdatedColorValue(from[i], to[i], elapsed, duration, fn);"," break;"," case STOPS :"," updated[i] = getUpdatedStops(anim, from[i], to[i], elapsed, duration, fn);"," break;"," default :"," updated[i] = fn(elapsed, NUM(from[i]), NUM(to[i]) - NUM(from[i]), duration);"," break;"," }"," }"," }"," anim._node.set(att, updated);"," }"," };"," Y.Anim.behaviors.fill = FILLANDSTROKEBEHAVIOR;"," Y.Anim.behaviors.stroke = FILLANDSTROKEBEHAVIOR;",""," Y.Anim.behaviors.transform = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," var node = anim._node,"," transform = \"\","," transformTo,"," transformFrom,"," toArgs,"," fromArgs,"," i = 0,"," j,"," argLen,"," len;"," to = TO;"," len = TO.length;"," for(; i < len; ++i)"," {"," toArgs = to[i].concat();"," fromArgs = from[i].concat();"," transformTo = toArgs.shift();"," transformFrom = fromArgs.shift();"," argLen = toArgs.length;"," transform += transformTo + \"(\";"," for(j = 0; j < argLen; ++j)"," {"," transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);"," if(j < argLen - 1)"," {"," transform += \", \";"," }"," }"," transform += \");\";"," }"," if(transform)"," {"," node.set('transform', transform);"," }"," node._transform = TOSTRING;"," },",""," get: function(anim) {"," var node = anim._node,"," fromMatrix = node.matrix,"," toString = anim.get(\"to\").transform,"," fromString = node.get(\"transform\"),"," toArray = Y.MatrixUtil.getTransformArray(toString),"," fromArray = fromString ? Y.MatrixUtil.getTransformArray(fromString) : null,"," toMatrix,"," i,"," len,"," transformFunction,"," from;"," if(toArray)"," {"," if(!fromArray || fromArray.length < 1)"," {"," fromArray = [];"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i][0];"," fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);"," }"," TO = toArray;"," from = fromArray;"," }"," else if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))"," {"," TO = toArray;"," from = fromArray;"," }"," else"," {"," toMatrix = new Y.Matrix();"," len = toArray.length;"," for(i = 0; i < len; ++i)"," {"," transformFunction = toArray[i].shift();"," transformFunction = transformFunction === \"matrix\" ? \"multiply\" : transformFunction;"," toMatrix[transformFunction].apply(toMatrix, toArray[i]);"," }",""," TO = toMatrix.decompose();"," from = fromMatrix.decompose();"," }"," }"," TOSTRING = toString;"," return from;"," }"," };","","","","}, '@VERSION@', {\"requires\": [\"anim-base\", \"anim-easing\", \"anim-color\", \"matrix\"]});"];
-_yuitest_coverage["build/anim-shape/anim-shape.js"].lines = {"1":0,"18":0,"26":0,"34":0,"36":0,"37":0,"38":0,"39":0,"41":0,"43":0,"45":0,"55":0,"59":0,"61":0,"65":0,"69":0,"71":0,"73":0,"76":0,"77":0,"79":0,"80":0,"82":0,"83":0,"87":0,"90":0,"91":0,"93":0,"95":0,"105":0,"106":0,"107":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"117":0,"118":0,"120":0,"123":0,"125":0,"127":0,"129":0,"133":0,"144":0,"146":0,"148":0,"149":0,"150":0,"152":0,"153":0,"155":0,"156":0,"158":0,"160":0,"161":0,"165":0,"166":0,"167":0,"169":0,"170":0,"171":0,"174":0,"175":0,"178":0,"179":0};
-_yuitest_coverage["build/anim-shape/anim-shape.js"].functions = {"GETUPDATEDSTOPS:24":0,"set:64":0,"set:94":0,"get:132":0,"(anonymous 1):1":0};
-_yuitest_coverage["build/anim-shape/anim-shape.js"].coveredLines = 69;
-_yuitest_coverage["build/anim-shape/anim-shape.js"].coveredFunctions = 5;
-_yuitest_coverline("build/anim-shape/anim-shape.js", 1);
-YUI.add('anim-shape', function (Y, NAME) {
-
-/**
- * Adds support for the <code>transform</code> attribute of <code>Graphic</code>
- * <code>Shape</code> instances.
- * @module anim
- * @submodule anim-shape-transform
- * @deprecated Use anim-shape instead.
- */
-/**
- * Adds support for the <code>transform</code>, <code>fill</code>, and <code> attributes of <code>Graphic</code>
- * <code>Shape</code> instances. The <code>anim-shape</code> submodule can be used for all animations involving
- * <code>Graphic</code> <code>Shape</code> attributes.
- *
- * @module anim
- * @submodule anim-shape
- */
- _yuitest_coverfunc("build/anim-shape/anim-shape.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/anim-shape/anim-shape.js", 18);
-var NUM = Number,
- TO,
- TOSTRING,
- COLOR = "color",
- STOPS = "stops",
- TYPE = "type",
- GETUPDATEDSTOPS = function(anim, from, to, elapsed, duration, fn)
- {
- _yuitest_coverfunc("build/anim-shape/anim-shape.js", "GETUPDATEDSTOPS", 24);
-_yuitest_coverline("build/anim-shape/anim-shape.js", 26);
-var i = 0,
- getUpdatedColorValue = Y.Anim.getUpdatedColorValue,
- toStop,
- fromStop,
- prop,
- len = to.length,
- stops = [],
- stop;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 34);
-for(; i < len; i = i + 1)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 36);
-toStop = to[i];
- _yuitest_coverline("build/anim-shape/anim-shape.js", 37);
-fromStop = from[i];
- _yuitest_coverline("build/anim-shape/anim-shape.js", 38);
-stop = {};
- _yuitest_coverline("build/anim-shape/anim-shape.js", 39);
-for(prop in toStop)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 41);
-if(toStop.hasOwnProperty(prop))
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 43);
-if(prop === COLOR)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 45);
-stop[prop] = Y.Color.toHex(getUpdatedColorValue(
- Y.Color.toHex(fromStop[prop]),
- Y.Color.toHex(toStop[prop]),
- elapsed,
- duration,
- fn
- ));
- }
- else
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 55);
-stop[prop] = fn(elapsed, NUM(fromStop[prop]), NUM(toStop[prop]) - NUM(fromStop[prop]), duration);
- }
- }
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 59);
-stops.push(stop);
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 61);
-return stops;
- },
- FILLANDSTROKEBEHAVIOR = {
- set: function(anim, att, from, to, elapsed, duration, fn) {
- _yuitest_coverfunc("build/anim-shape/anim-shape.js", "set", 64);
-_yuitest_coverline("build/anim-shape/anim-shape.js", 65);
-var i,
- updated = {},
- getUpdatedColorValue = Y.Anim.getUpdatedColorValue,
- getUpdatedStops = GETUPDATEDSTOPS;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 69);
-for(i in to)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 71);
-if(to.hasOwnProperty(i) && i !== TYPE)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 73);
-switch(i)
- {
- case COLOR :
- _yuitest_coverline("build/anim-shape/anim-shape.js", 76);
-updated[i] = getUpdatedColorValue(from[i], to[i], elapsed, duration, fn);
- _yuitest_coverline("build/anim-shape/anim-shape.js", 77);
-break;
- case STOPS :
- _yuitest_coverline("build/anim-shape/anim-shape.js", 79);
-updated[i] = getUpdatedStops(anim, from[i], to[i], elapsed, duration, fn);
- _yuitest_coverline("build/anim-shape/anim-shape.js", 80);
-break;
- default :
- _yuitest_coverline("build/anim-shape/anim-shape.js", 82);
-updated[i] = fn(elapsed, NUM(from[i]), NUM(to[i]) - NUM(from[i]), duration);
- _yuitest_coverline("build/anim-shape/anim-shape.js", 83);
-break;
- }
- }
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 87);
-anim._node.set(att, updated);
- }
- };
- _yuitest_coverline("build/anim-shape/anim-shape.js", 90);
-Y.Anim.behaviors.fill = FILLANDSTROKEBEHAVIOR;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 91);
-Y.Anim.behaviors.stroke = FILLANDSTROKEBEHAVIOR;
-
- _yuitest_coverline("build/anim-shape/anim-shape.js", 93);
-Y.Anim.behaviors.transform = {
- set: function(anim, att, from, to, elapsed, duration, fn) {
- _yuitest_coverfunc("build/anim-shape/anim-shape.js", "set", 94);
-_yuitest_coverline("build/anim-shape/anim-shape.js", 95);
-var node = anim._node,
- transform = "",
- transformTo,
- transformFrom,
- toArgs,
- fromArgs,
- i = 0,
- j,
- argLen,
- len;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 105);
-to = TO;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 106);
-len = TO.length;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 107);
-for(; i < len; ++i)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 109);
-toArgs = to[i].concat();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 110);
-fromArgs = from[i].concat();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 111);
-transformTo = toArgs.shift();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 112);
-transformFrom = fromArgs.shift();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 113);
-argLen = toArgs.length;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 114);
-transform += transformTo + "(";
- _yuitest_coverline("build/anim-shape/anim-shape.js", 115);
-for(j = 0; j < argLen; ++j)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 117);
-transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);
- _yuitest_coverline("build/anim-shape/anim-shape.js", 118);
-if(j < argLen - 1)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 120);
-transform += ", ";
- }
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 123);
-transform += ");";
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 125);
-if(transform)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 127);
-node.set('transform', transform);
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 129);
-node._transform = TOSTRING;
- },
-
- get: function(anim) {
- _yuitest_coverfunc("build/anim-shape/anim-shape.js", "get", 132);
-_yuitest_coverline("build/anim-shape/anim-shape.js", 133);
-var node = anim._node,
- fromMatrix = node.matrix,
- toString = anim.get("to").transform,
- fromString = node.get("transform"),
- toArray = Y.MatrixUtil.getTransformArray(toString),
- fromArray = fromString ? Y.MatrixUtil.getTransformArray(fromString) : null,
- toMatrix,
- i,
- len,
- transformFunction,
- from;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 144);
-if(toArray)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 146);
-if(!fromArray || fromArray.length < 1)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 148);
-fromArray = [];
- _yuitest_coverline("build/anim-shape/anim-shape.js", 149);
-len = toArray.length;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 150);
-for(i = 0; i < len; ++i)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 152);
-transformFunction = toArray[i][0];
- _yuitest_coverline("build/anim-shape/anim-shape.js", 153);
-fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 155);
-TO = toArray;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 156);
-from = fromArray;
- }
- else {_yuitest_coverline("build/anim-shape/anim-shape.js", 158);
-if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 160);
-TO = toArray;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 161);
-from = fromArray;
- }
- else
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 165);
-toMatrix = new Y.Matrix();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 166);
-len = toArray.length;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 167);
-for(i = 0; i < len; ++i)
- {
- _yuitest_coverline("build/anim-shape/anim-shape.js", 169);
-transformFunction = toArray[i].shift();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 170);
-transformFunction = transformFunction === "matrix" ? "multiply" : transformFunction;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 171);
-toMatrix[transformFunction].apply(toMatrix, toArray[i]);
- }
-
- _yuitest_coverline("build/anim-shape/anim-shape.js", 174);
-TO = toMatrix.decompose();
- _yuitest_coverline("build/anim-shape/anim-shape.js", 175);
-from = fromMatrix.decompose();
- }}
- }
- _yuitest_coverline("build/anim-shape/anim-shape.js", 178);
-TOSTRING = toString;
- _yuitest_coverline("build/anim-shape/anim-shape.js", 179);
-return from;
- }
- };
-
-
-
-}, '@VERSION@', {"requires": ["anim-base", "anim-easing", "anim-color", "matrix"]});
+var __cov_Sj0n4QPY_g38a32yagvG2w = __coverage__['build/anim-shape/anim-shape.js'];
+__cov_Sj0n4QPY_g38a32yagvG2w.s['1']++;YUI.add('anim-shape',function(Y,NAME){__cov_Sj0n4QPY_g38a32yagvG2w.f['1']++;__cov_Sj0n4QPY_g38a32yagvG2w.s['2']++;var NUM=Number,TO,TOSTRING,COLOR='color',STOPS='stops',TYPE='type',GETUPDATEDSTOPS=function(anim,from,to,elapsed,duration,fn){__cov_Sj0n4QPY_g38a32yagvG2w.f['2']++;__cov_Sj0n4QPY_g38a32yagvG2w.s['3']++;var i=0,getUpdatedColorValue=Y.Anim.getUpdatedColorValue,toStop,fromStop,prop,len=to.length,stops=[],stop;__cov_Sj0n4QPY_g38a32yagvG2w.s['4']++;for(;i<len;i=i+1){__cov_Sj0n4QPY_g38a32yagvG2w.s['5']++;toStop=to[i];__cov_Sj0n4QPY_g38a32yagvG2w.s['6']++;fromStop=from[i];__cov_Sj0n4QPY_g38a32yagvG2w.s['7']++;stop={};__cov_Sj0n4QPY_g38a32yagvG2w.s['8']++;for(prop in toStop){__cov_Sj0n4QPY_g38a32yagvG2w.s['9']++;if(toStop.hasOwnProperty(prop)){__cov_Sj0n4QPY_g38a32yagvG2w.b['1'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['10']++;if(prop===COLOR){__cov_Sj0n4QPY_g38a32yagvG2w.b['2'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['11']++;stop[prop]=Y.Color.toHex(getUpdatedColorValue(Y.Color.toHex(fromStop[prop]),Y.Color.toHex(toStop[prop]),elapsed,duration,fn));}else{__cov_Sj0n4QPY_g38a32yagvG2w.b['2'][1]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['12']++;stop[prop]=fn(elapsed,NUM(fromStop[prop]),NUM(toStop[prop])-NUM(fromStop[prop]),duration);}}else{__cov_Sj0n4QPY_g38a32yagvG2w.b['1'][1]++;}}__cov_Sj0n4QPY_g38a32yagvG2w.s['13']++;stops.push(stop);}__cov_Sj0n4QPY_g38a32yagvG2w.s['14']++;return stops;},FILLANDSTROKEBEHAVIOR={set:function(anim,att,from,to,elapsed,duration,fn){__cov_Sj0n4QPY_g38a32yagvG2w.f['3']++;__cov_Sj0n4QPY_g38a32yagvG2w.s['15']++;var i,updated={},getUpdatedColorValue=Y.Anim.getUpdatedColorValue,getUpdatedStops=GETUPDATEDSTOPS;__cov_Sj0n4QPY_g38a32yagvG2w.s['16']++;for(i in to){__cov_Sj0n4QPY_g38a32yagvG2w.s['17']++;if((__cov_Sj0n4QPY_g38a32yagvG2w.b['4'][0]++,to.hasOwnProperty(i))&&(__cov_Sj0n4QPY_g38a32yagvG2w.b['4'][1]++,i!==TYPE)){__cov_Sj0n4QPY_g38a32yagvG2w.b['3'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['18']++;switch(i){case COLOR:__cov_Sj0n4QPY_g38a32yagvG2w.b['5'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['19']++;updated[i]=getUpdatedColorValue(from[i],to[i],elapsed,duration,fn);__cov_Sj0n4QPY_g38a32yagvG2w.s['20']++;break;case STOPS:__cov_Sj0n4QPY_g38a32yagvG2w.b['5'][1]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['21']++;updated[i]=getUpdatedStops(anim,from[i],to[i],elapsed,duration,fn);__cov_Sj0n4QPY_g38a32yagvG2w.s['22']++;break;default:__cov_Sj0n4QPY_g38a32yagvG2w.b['5'][2]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['23']++;updated[i]=fn(elapsed,NUM(from[i]),NUM(to[i])-NUM(from[i]),duration);__cov_Sj0n4QPY_g38a32yagvG2w.s['24']++;break;}}else{__cov_Sj0n4QPY_g38a32yagvG2w.b['3'][1]++;}}__cov_Sj0n4QPY_g38a32yagvG2w.s['25']++;anim._node.set(att,updated);}};__cov_Sj0n4QPY_g38a32yagvG2w.s['26']++;Y.Anim.behaviors.fill=FILLANDSTROKEBEHAVIOR;__cov_Sj0n4QPY_g38a32yagvG2w.s['27']++;Y.Anim.behaviors.stroke=FILLANDSTROKEBEHAVIOR;__cov_Sj0n4QPY_g38a32yagvG2w.s['28']++;Y.Anim.behaviors.transform={set:function(anim,att,from,to,elapsed,duration,fn){__cov_Sj0n4QPY_g38a32yagvG2w.f['4']++;__cov_Sj0n4QPY_g38a32yagvG2w.s['29']++;var node=anim._node,transform='',transformTo,transformFrom,toArgs,fromArgs,i=0,j,argLen,len;__cov_Sj0n4QPY_g38a32yagvG2w.s['30']++;to=TO;__cov_Sj0n4QPY_g38a32yagvG2w.s['31']++;len=TO.length;__cov_Sj0n4QPY_g38a32yagvG2w.s['32']++;for(;i<len;++i){__cov_Sj0n4QPY_g38a32yagvG2w.s['33']++;toArgs=to[i].concat();__cov_Sj0n4QPY_g38a32yagvG2w.s['34']++;fromArgs=from[i].concat();__cov_Sj0n4QPY_g38a32yagvG2w.s['35']++;transformTo=toArgs.shift();__cov_Sj0n4QPY_g38a32yagvG2w.s['36']++;transformFrom=fromArgs.shift();__cov_Sj0n4QPY_g38a32yagvG2w.s['37']++;argLen=toArgs.length;__cov_Sj0n4QPY_g38a32yagvG2w.s['38']++;transform+=transformTo+'(';__cov_Sj0n4QPY_g38a32yagvG2w.s['39']++;for(j=0;j<argLen;++j){__cov_Sj0n4QPY_g38a32yagvG2w.s['40']++;transform+=fn(elapsed,NUM(fromArgs[j]),NUM(toArgs[j])-NUM(fromArgs[j]),duration);__cov_Sj0n4QPY_g38a32yagvG2w.s['41']++;if(j<argLen-1){__cov_Sj0n4QPY_g38a32yagvG2w.b['6'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['42']++;transform+=', ';}else{__cov_Sj0n4QPY_g38a32yagvG2w.b['6'][1]++;}}__cov_Sj0n4QPY_g38a32yagvG2w.s['43']++;transform+=');';}__cov_Sj0n4QPY_g38a32yagvG2w.s['44']++;if(transform){__cov_Sj0n4QPY_g38a32yagvG2w.b['7'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['45']++;node.set('transform',transform);}else{__cov_Sj0n4QPY_g38a32yagvG2w.b['7'][1]++;}__cov_Sj0n4QPY_g38a32yagvG2w.s['46']++;node._transform=TOSTRING;},get:function(anim){__cov_Sj0n4QPY_g38a32yagvG2w.f['5']++;__cov_Sj0n4QPY_g38a32yagvG2w.s['47']++;var node=anim._node,fromMatrix=node.matrix,toString=anim.get('to').transform,fromString=node.get('transform'),toArray=Y.MatrixUtil.getTransformArray(toString),fromArray=fromString?(__cov_Sj0n4QPY_g38a32yagvG2w.b['8'][0]++,Y.MatrixUtil.getTransformArray(fromString)):(__cov_Sj0n4QPY_g38a32yagvG2w.b['8'][1]++,null),toMatrix,i,len,transformFunction,from;__cov_Sj0n4QPY_g38a32yagvG2w.s['48']++;if(toArray){__cov_Sj0n4QPY_g38a32yagvG2w.b['9'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['49']++;if((__cov_Sj0n4QPY_g38a32yagvG2w.b['11'][0]++,!fromArray)||(__cov_Sj0n4QPY_g38a32yagvG2w.b['11'][1]++,fromArray.length<1)){__cov_Sj0n4QPY_g38a32yagvG2w.b['10'][0]++;__cov_Sj0n4QPY_g38a32yagvG2w.s['50']++;fromArray=[];__cov_Sj0n4QPY_g38a32yagvG2w.s['51']++;len=toArray.length;__cov_Sj0n4QPY_g38a32yagvG2w.s['52']++;for(i=0;i<len;++i){__cov_Sj0n4QPY_g38a32yagvG2w.s['53']++;transformFunction=toArray[i][0];__cov_Sj0n4QPY_g38a32yagvG2w.s['54']++;fromArray[i]=Y.MatrixUtil.getTransformFunctionArray(transformFunction);}__cov_Sj0n4QPY_g38a32yagvG2w.s['55']++;TO=toArray;__cov_Sj0n