Merge branch 'MDL-39092-m' of git://github.com/andrewnicols/moodle
This commit is contained in:
@@ -31,3 +31,5 @@ composer.phar
|
||||
composer.lock
|
||||
/vendor/
|
||||
/behat.yml
|
||||
*/yui/build/*/*-coverage.js
|
||||
/lib/yuilib/*/build/*/*-coverage.js
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"coverage": false,
|
||||
"lint": "config"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
-514
File diff suppressed because one or more lines are too long
-205
@@ -1,205 +0,0 @@
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/moodle-core-formautosubmit/moodle-core-formautosubmit.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"].code=["YUI.add('moodle-core-formautosubmit', function (Y, NAME) {","","var CSS,"," FORMAUTOSUBMITNAME = 'core-formautosubmit',"," FORMAUTOSUBMIT,"," INITIALIZED = false;","","// The CSS selectors we use","CSS = {"," AUTOSUBMIT : 'autosubmit'","};","","FORMAUTOSUBMIT = function() {"," FORMAUTOSUBMIT.superclass.constructor.apply(this, arguments);","};","","Y.extend(FORMAUTOSUBMIT, Y.Base, {",""," /**"," * Initialize the module"," */"," initializer : function() {"," // Set up local variables"," var applyto,"," thisselect;"," // We only apply the delegation once"," if (!INITIALIZED) {"," INITIALIZED = true;"," applyto = Y.one('body');",""," // We don't listen for change events by default as using the keyboard triggers these too."," applyto.delegate('key', this.process_changes, 'press:13', 'select.' + CSS.AUTOSUBMIT, this);"," applyto.delegate('click', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);",""," if (Y.UA.os === 'macintosh' && Y.UA.webkit) {"," // Macintosh webkit browsers like change events, but non-macintosh webkit browsers don't."," applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);"," }"," if (Y.UA.ios) {"," // IOS doesn't trigger click events because it's touch-based."," applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);"," }"," }",""," // Assign this select items 'nothing' value and lastindex (current value)"," if (this.get('selectid')) {"," thisselect = Y.one('select#' + this.get('selectid'));"," if (thisselect) {"," if (this.get('nothing')) {"," thisselect.setData('nothing', this.get('nothing'));"," }"," thisselect.setData('startindex', thisselect.get('selectedIndex'));"," } else {"," }"," }"," },",""," /**"," * Check whether the select element was changed"," */"," check_changed : function(e) {"," var select,"," nothing,"," startindex,"," currentindex,"," previousindex;"," select = e.target.ancestor('select.' + CSS.AUTOSUBMIT, true);"," if (!select) {"," return false;"," }",""," nothing = select.getData('nothing');"," startindex = select.getData('startindex');"," currentindex = select.get('selectedIndex');",""," previousindex = select.getAttribute('data-previousindex');"," select.setAttribute('data-previousindex', currentindex);"," if (!previousindex) {"," previousindex = startindex;"," }",""," // Check whether the field has changed, and is not the 'nothing' value"," if ((nothing===false || select.get('value') !== nothing)"," && startindex !== select.get('selectedIndex') && currentindex !== previousindex) {"," return select;"," }"," return false;"," },",""," /**"," * Process any changes"," */"," process_changes : function(e) {"," var select = this.check_changed(e),"," form;"," if (select) {"," form = select.ancestor('form', true);"," form.submit();"," }"," }","},","{"," NAME : FORMAUTOSUBMITNAME,"," ATTRS : {"," selectid : {"," 'value' : ''"," },"," nothing : {"," 'value' : ''"," },"," ignorechangeevent : {"," 'value' : false"," }"," }","});","","M.core = M.core || {};","M.core.init_formautosubmit = M.core.init_formautosubmit || function(config) {"," return new FORMAUTOSUBMIT(config);","};","","","}, '@VERSION@', {\"requires\": [\"base\", \"event-key\"]});"];
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"].lines = {"1":0,"3":0,"9":0,"13":0,"14":0,"17":0,"24":0,"27":0,"28":0,"29":0,"32":0,"33":0,"35":0,"37":0,"39":0,"41":0,"46":0,"47":0,"48":0,"49":0,"50":0,"52":0,"62":0,"67":0,"68":0,"69":0,"72":0,"73":0,"74":0,"76":0,"77":0,"78":0,"79":0,"83":0,"85":0,"87":0,"94":0,"96":0,"97":0,"98":0,"117":0,"118":0,"119":0};
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"].functions = {"FORMAUTOSUBMIT:13":0,"initializer:22":0,"check_changed:61":0,"process_changes:93":0,"(anonymous 2):118":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"].coveredLines = 43;
|
||||
_yuitest_coverage["build/moodle-core-formautosubmit/moodle-core-formautosubmit.js"].coveredFunctions = 6;
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 1);
|
||||
YUI.add('moodle-core-formautosubmit', function (Y, NAME) {
|
||||
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 3);
|
||||
var CSS,
|
||||
FORMAUTOSUBMITNAME = 'core-formautosubmit',
|
||||
FORMAUTOSUBMIT,
|
||||
INITIALIZED = false;
|
||||
|
||||
// The CSS selectors we use
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 9);
|
||||
CSS = {
|
||||
AUTOSUBMIT : 'autosubmit'
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 13);
|
||||
FORMAUTOSUBMIT = function() {
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "FORMAUTOSUBMIT", 13);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 14);
|
||||
FORMAUTOSUBMIT.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 17);
|
||||
Y.extend(FORMAUTOSUBMIT, Y.Base, {
|
||||
|
||||
/**
|
||||
* Initialize the module
|
||||
*/
|
||||
initializer : function() {
|
||||
// Set up local variables
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "initializer", 22);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 24);
|
||||
var applyto,
|
||||
thisselect;
|
||||
// We only apply the delegation once
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 27);
|
||||
if (!INITIALIZED) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 28);
|
||||
INITIALIZED = true;
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 29);
|
||||
applyto = Y.one('body');
|
||||
|
||||
// We don't listen for change events by default as using the keyboard triggers these too.
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 32);
|
||||
applyto.delegate('key', this.process_changes, 'press:13', 'select.' + CSS.AUTOSUBMIT, this);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 33);
|
||||
applyto.delegate('click', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 35);
|
||||
if (Y.UA.os === 'macintosh' && Y.UA.webkit) {
|
||||
// Macintosh webkit browsers like change events, but non-macintosh webkit browsers don't.
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 37);
|
||||
applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
|
||||
}
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 39);
|
||||
if (Y.UA.ios) {
|
||||
// IOS doesn't trigger click events because it's touch-based.
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 41);
|
||||
applyto.delegate('change', this.process_changes, 'select.' + CSS.AUTOSUBMIT, this);
|
||||
}
|
||||
}
|
||||
|
||||
// Assign this select items 'nothing' value and lastindex (current value)
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 46);
|
||||
if (this.get('selectid')) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 47);
|
||||
thisselect = Y.one('select#' + this.get('selectid'));
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 48);
|
||||
if (thisselect) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 49);
|
||||
if (this.get('nothing')) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 50);
|
||||
thisselect.setData('nothing', this.get('nothing'));
|
||||
}
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 52);
|
||||
thisselect.setData('startindex', thisselect.get('selectedIndex'));
|
||||
} else {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Check whether the select element was changed
|
||||
*/
|
||||
check_changed : function(e) {
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "check_changed", 61);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 62);
|
||||
var select,
|
||||
nothing,
|
||||
startindex,
|
||||
currentindex,
|
||||
previousindex;
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 67);
|
||||
select = e.target.ancestor('select.' + CSS.AUTOSUBMIT, true);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 68);
|
||||
if (!select) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 69);
|
||||
return false;
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 72);
|
||||
nothing = select.getData('nothing');
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 73);
|
||||
startindex = select.getData('startindex');
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 74);
|
||||
currentindex = select.get('selectedIndex');
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 76);
|
||||
previousindex = select.getAttribute('data-previousindex');
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 77);
|
||||
select.setAttribute('data-previousindex', currentindex);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 78);
|
||||
if (!previousindex) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 79);
|
||||
previousindex = startindex;
|
||||
}
|
||||
|
||||
// Check whether the field has changed, and is not the 'nothing' value
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 83);
|
||||
if ((nothing===false || select.get('value') !== nothing)
|
||||
&& startindex !== select.get('selectedIndex') && currentindex !== previousindex) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 85);
|
||||
return select;
|
||||
}
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 87);
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Process any changes
|
||||
*/
|
||||
process_changes : function(e) {
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "process_changes", 93);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 94);
|
||||
var select = this.check_changed(e),
|
||||
form;
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 96);
|
||||
if (select) {
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 97);
|
||||
form = select.ancestor('form', true);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 98);
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
NAME : FORMAUTOSUBMITNAME,
|
||||
ATTRS : {
|
||||
selectid : {
|
||||
'value' : ''
|
||||
},
|
||||
nothing : {
|
||||
'value' : ''
|
||||
},
|
||||
ignorechangeevent : {
|
||||
'value' : false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 117);
|
||||
M.core = M.core || {};
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 118);
|
||||
M.core.init_formautosubmit = M.core.init_formautosubmit || function(config) {
|
||||
_yuitest_coverfunc("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", "(anonymous 2)", 118);
|
||||
_yuitest_coverline("build/moodle-core-formautosubmit/moodle-core-formautosubmit.js", 119);
|
||||
return new FORMAUTOSUBMIT(config);
|
||||
};
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["base", "event-key"]});
|
||||
-287
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,150 +0,0 @@
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/moodle-core-popuphelp/moodle-core-popuphelp.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"].code=["YUI.add('moodle-core-popuphelp', function (Y, NAME) {","","function POPUPHELP() {"," POPUPHELP.superclass.constructor.apply(this, arguments);","}","","var SELECTORS = {"," CLICKABLELINKS: 'span.helptooltip > a',"," FOOTER: 'div.moodle-dialogue-ft'"," },",""," CSS = {"," ICON: 'icon',"," ICONPRE: 'icon-pre'"," },"," ATTRS = {};","","// Set the modules base properties.","POPUPHELP.NAME = 'moodle-core-popuphelp';","POPUPHELP.ATTRS = ATTRS;","","Y.extend(POPUPHELP, Y.Base, {"," panel: null,",""," initializer: function() {"," Y.one('body').delegate('click', this.display_panel, SELECTORS.CLICKABLELINKS, this);"," },",""," display_panel: function(e) {"," if (!this.panel) {"," this.panel = new M.core.tooltip({"," bodyhandler: this.set_body_content,"," footerhandler: this.set_footer,"," initialheadertext: M.util.get_string('loadinghelp', 'moodle'),"," initialfootertext: ''"," });"," }",""," // Call the tooltip setup."," this.panel.display_panel(e);"," },",""," /**"," * Override the footer handler to add a 'More help' link where relevant."," *"," * @param {Object} helpobject The object returned from the AJAX call."," */"," set_footer: function(helpobject) {"," // Check for an optional link to documentation on moodle.org."," if (helpobject.doclink) {"," // Wrap a help icon and the morehelp text in an anchor. The class of the anchor should"," // determine whether it's opened in a new window or not."," doclink = Y.Node.create('<a />')"," .setAttrs({"," 'href': helpobject.doclink.link"," })"," .addClass(helpobject.doclink['class']);"," helpicon = Y.Node.create('<img />')"," .setAttrs({"," 'src': M.util.image_url('docs', 'core')"," })"," .addClass(CSS.ICON)"," .addClass(CSS.ICONPRE);"," doclink.appendChild(helpicon);"," doclink.appendChild(helpobject.doclink.linktext);",""," // Set the footerContent to the contents of the doclink."," this.set('footerContent', doclink);"," this.bb.one(SELECTORS.FOOTER).show();"," } else {"," this.bb.one(SELECTORS.FOOTER).hide();"," }"," }","});","M.core = M.core || {};","M.core.popuphelp = M.core.popuphelp || null;","M.core.init_popuphelp = M.core.init_popuphelp || function(config) {"," // Only set up a single instance of the popuphelp."," if (!M.core.popuphelp) {"," M.core.popuphelp = new POPUPHELP(config);"," }"," return M.core.popuphelp;","};","","","}, '@VERSION@', {\"requires\": [\"moodle-core-tooltip\"]});"];
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"].lines = {"1":0,"3":0,"4":0,"7":0,"19":0,"20":0,"22":0,"26":0,"30":0,"31":0,"40":0,"50":0,"53":0,"58":0,"64":0,"65":0,"68":0,"69":0,"71":0,"75":0,"76":0,"77":0,"79":0,"80":0,"82":0};
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"].functions = {"POPUPHELP:3":0,"initializer:25":0,"display_panel:29":0,"set_footer:48":0,"(anonymous 2):77":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"].coveredLines = 25;
|
||||
_yuitest_coverage["build/moodle-core-popuphelp/moodle-core-popuphelp.js"].coveredFunctions = 6;
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 1);
|
||||
YUI.add('moodle-core-popuphelp', function (Y, NAME) {
|
||||
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 3);
|
||||
function POPUPHELP() {
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "POPUPHELP", 3);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 4);
|
||||
POPUPHELP.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 7);
|
||||
var SELECTORS = {
|
||||
CLICKABLELINKS: 'span.helptooltip > a',
|
||||
FOOTER: 'div.moodle-dialogue-ft'
|
||||
},
|
||||
|
||||
CSS = {
|
||||
ICON: 'icon',
|
||||
ICONPRE: 'icon-pre'
|
||||
},
|
||||
ATTRS = {};
|
||||
|
||||
// Set the modules base properties.
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 19);
|
||||
POPUPHELP.NAME = 'moodle-core-popuphelp';
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 20);
|
||||
POPUPHELP.ATTRS = ATTRS;
|
||||
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 22);
|
||||
Y.extend(POPUPHELP, Y.Base, {
|
||||
panel: null,
|
||||
|
||||
initializer: function() {
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "initializer", 25);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 26);
|
||||
Y.one('body').delegate('click', this.display_panel, SELECTORS.CLICKABLELINKS, this);
|
||||
},
|
||||
|
||||
display_panel: function(e) {
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "display_panel", 29);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 30);
|
||||
if (!this.panel) {
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 31);
|
||||
this.panel = new M.core.tooltip({
|
||||
bodyhandler: this.set_body_content,
|
||||
footerhandler: this.set_footer,
|
||||
initialheadertext: M.util.get_string('loadinghelp', 'moodle'),
|
||||
initialfootertext: ''
|
||||
});
|
||||
}
|
||||
|
||||
// Call the tooltip setup.
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 40);
|
||||
this.panel.display_panel(e);
|
||||
},
|
||||
|
||||
/**
|
||||
* Override the footer handler to add a 'More help' link where relevant.
|
||||
*
|
||||
* @param {Object} helpobject The object returned from the AJAX call.
|
||||
*/
|
||||
set_footer: function(helpobject) {
|
||||
// Check for an optional link to documentation on moodle.org.
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "set_footer", 48);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 50);
|
||||
if (helpobject.doclink) {
|
||||
// Wrap a help icon and the morehelp text in an anchor. The class of the anchor should
|
||||
// determine whether it's opened in a new window or not.
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 53);
|
||||
doclink = Y.Node.create('<a />')
|
||||
.setAttrs({
|
||||
'href': helpobject.doclink.link
|
||||
})
|
||||
.addClass(helpobject.doclink['class']);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 58);
|
||||
helpicon = Y.Node.create('<img />')
|
||||
.setAttrs({
|
||||
'src': M.util.image_url('docs', 'core')
|
||||
})
|
||||
.addClass(CSS.ICON)
|
||||
.addClass(CSS.ICONPRE);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 64);
|
||||
doclink.appendChild(helpicon);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 65);
|
||||
doclink.appendChild(helpobject.doclink.linktext);
|
||||
|
||||
// Set the footerContent to the contents of the doclink.
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 68);
|
||||
this.set('footerContent', doclink);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 69);
|
||||
this.bb.one(SELECTORS.FOOTER).show();
|
||||
} else {
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 71);
|
||||
this.bb.one(SELECTORS.FOOTER).hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 75);
|
||||
M.core = M.core || {};
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 76);
|
||||
M.core.popuphelp = M.core.popuphelp || null;
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 77);
|
||||
M.core.init_popuphelp = M.core.init_popuphelp || function(config) {
|
||||
// Only set up a single instance of the popuphelp.
|
||||
_yuitest_coverfunc("build/moodle-core-popuphelp/moodle-core-popuphelp.js", "(anonymous 2)", 77);
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 79);
|
||||
if (!M.core.popuphelp) {
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 80);
|
||||
M.core.popuphelp = new POPUPHELP(config);
|
||||
}
|
||||
_yuitest_coverline("build/moodle-core-popuphelp/moodle-core-popuphelp.js", 82);
|
||||
return M.core.popuphelp;
|
||||
};
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["moodle-core-tooltip"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,107 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_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;"," }",");","","","}, '3.9.1', {\"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;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["anim-base"]});
|
||||
@@ -1,114 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_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] ];","","};","","","}, '3.9.1', {\"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] ];
|
||||
|
||||
};
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["anim-xy"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,72 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_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;","","","}, '3.9.1', {\"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;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["node-pluginhost", "anim-base"]});
|
||||
@@ -1,85 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_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')];"," }","};","","","","}, '3.9.1', {\"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')];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["anim-base"]});
|
||||
@@ -1,187 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/anim-shape-transform/anim-shape-transform.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"].code=["YUI.add('anim-shape-transform', 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"," */"," var NUM = Number,"," TO,"," TOSTRING;",""," 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,"," toAttr = anim.get(\"to\") || {},"," 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;"," }"," }; ","","","","}, '3.9.1', {\"requires\": [\"anim-base\", \"anim-easing\", \"matrix\"]});"];
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"].lines = {"1":0,"9":0,"13":0,"15":0,"25":0,"26":0,"27":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"37":0,"38":0,"40":0,"43":0,"45":0,"47":0,"49":0,"53":0,"65":0,"67":0,"69":0,"70":0,"71":0,"73":0,"74":0,"76":0,"77":0,"79":0,"81":0,"82":0,"86":0,"87":0,"88":0,"90":0,"91":0,"92":0,"95":0,"96":0,"99":0,"100":0};
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"].functions = {"set:14":0,"get:52":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"].coveredLines = 44;
|
||||
_yuitest_coverage["build/anim-shape-transform/anim-shape-transform.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 1);
|
||||
YUI.add('anim-shape-transform', 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
|
||||
*/
|
||||
_yuitest_coverfunc("build/anim-shape-transform/anim-shape-transform.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 9);
|
||||
var NUM = Number,
|
||||
TO,
|
||||
TOSTRING;
|
||||
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 13);
|
||||
Y.Anim.behaviors.transform = {
|
||||
set: function(anim, att, from, to, elapsed, duration, fn) {
|
||||
_yuitest_coverfunc("build/anim-shape-transform/anim-shape-transform.js", "set", 14);
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 15);
|
||||
var node = anim._node,
|
||||
transform = "",
|
||||
transformTo,
|
||||
transformFrom,
|
||||
toArgs,
|
||||
fromArgs,
|
||||
i = 0,
|
||||
j,
|
||||
argLen,
|
||||
len;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 25);
|
||||
to = TO;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 26);
|
||||
len = TO.length;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 27);
|
||||
for(; i < len; ++i)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 29);
|
||||
toArgs = to[i].concat();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 30);
|
||||
fromArgs = from[i].concat();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 31);
|
||||
transformTo = toArgs.shift();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 32);
|
||||
transformFrom = fromArgs.shift();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 33);
|
||||
argLen = toArgs.length;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 34);
|
||||
transform += transformTo + "(";
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 35);
|
||||
for(j = 0; j < argLen; ++j)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 37);
|
||||
transform += fn(elapsed, NUM(fromArgs[j]), NUM(toArgs[j]) - NUM(fromArgs[j]), duration);
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 38);
|
||||
if(j < argLen - 1)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 40);
|
||||
transform += ", ";
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 43);
|
||||
transform += ");";
|
||||
}
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 45);
|
||||
if(transform)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 47);
|
||||
node.set('transform', transform);
|
||||
}
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 49);
|
||||
node._transform = TOSTRING;
|
||||
},
|
||||
|
||||
get: function(anim) {
|
||||
_yuitest_coverfunc("build/anim-shape-transform/anim-shape-transform.js", "get", 52);
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 53);
|
||||
var node = anim._node,
|
||||
fromMatrix = node.matrix,
|
||||
toAttr = anim.get("to") || {},
|
||||
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-transform/anim-shape-transform.js", 65);
|
||||
if(toArray)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 67);
|
||||
if(!fromArray || fromArray.length < 1)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 69);
|
||||
fromArray = [];
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 70);
|
||||
len = toArray.length;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 71);
|
||||
for(i = 0; i < len; ++i)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 73);
|
||||
transformFunction = toArray[i][0];
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 74);
|
||||
fromArray[i] = Y.MatrixUtil.getTransformFunctionArray(transformFunction);
|
||||
}
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 76);
|
||||
TO = toArray;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 77);
|
||||
from = fromArray;
|
||||
}
|
||||
else {_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 79);
|
||||
if(Y.MatrixUtil.compareTransformSequence(toArray, fromArray))
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 81);
|
||||
TO = toArray;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 82);
|
||||
from = fromArray;
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 86);
|
||||
toMatrix = new Y.Matrix();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 87);
|
||||
len = toArray.length;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 88);
|
||||
for(i = 0; i < len; ++i)
|
||||
{
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 90);
|
||||
transformFunction = toArray[i].shift();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 91);
|
||||
transformFunction = transformFunction == "matrix" ? "multiply" : transformFunction;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 92);
|
||||
toMatrix[transformFunction].apply(toMatrix, toArray[i]);
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 95);
|
||||
TO = toMatrix.decompose();
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 96);
|
||||
from = fromMatrix.decompose();
|
||||
}}
|
||||
}
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 99);
|
||||
TOSTRING = toString;
|
||||
_yuitest_coverline("build/anim-shape-transform/anim-shape-transform.js", 100);
|
||||
return from;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["anim-base", "anim-easing", "matrix"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,68 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/anim-xy/anim-xy.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"].code=["YUI.add('anim-xy', function (Y, NAME) {","","/**"," * Adds support for the <code>xy</code> property in <code>from</code> and"," * <code>to</code> attributes."," * @module anim"," * @submodule anim-xy"," */","","var NUM = Number;","","Y.Anim.behaviors.xy = {"," set: function(anim, att, from, to, elapsed, duration, fn) {"," anim._node.setXY(["," fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),"," fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)"," ]);"," },"," get: function(anim) {"," return anim._node.getXY();"," }","};","","","","}, '3.9.1', {\"requires\": [\"anim-base\", \"node-screen\"]});"];
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"].lines = {"1":0,"10":0,"12":0,"14":0,"20":0};
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"].functions = {"set:13":0,"get:19":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"].coveredLines = 5;
|
||||
_yuitest_coverage["build/anim-xy/anim-xy.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/anim-xy/anim-xy.js", 1);
|
||||
YUI.add('anim-xy', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Adds support for the <code>xy</code> property in <code>from</code> and
|
||||
* <code>to</code> attributes.
|
||||
* @module anim
|
||||
* @submodule anim-xy
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/anim-xy/anim-xy.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/anim-xy/anim-xy.js", 10);
|
||||
var NUM = Number;
|
||||
|
||||
_yuitest_coverline("build/anim-xy/anim-xy.js", 12);
|
||||
Y.Anim.behaviors.xy = {
|
||||
set: function(anim, att, from, to, elapsed, duration, fn) {
|
||||
_yuitest_coverfunc("build/anim-xy/anim-xy.js", "set", 13);
|
||||
_yuitest_coverline("build/anim-xy/anim-xy.js", 14);
|
||||
anim._node.setXY([
|
||||
fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
|
||||
fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
|
||||
]);
|
||||
},
|
||||
get: function(anim) {
|
||||
_yuitest_coverfunc("build/anim-xy/anim-xy.js", "get", 19);
|
||||
_yuitest_coverline("build/anim-xy/anim-xy.js", 20);
|
||||
return anim._node.getXY();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["anim-base", "node-screen"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,84 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/array-invoke/array-invoke.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"].code=["YUI.add('array-invoke', function (Y, NAME) {","","/**","@module collection","@submodule array-invoke","*/","","/**","Executes a named method on each item in an array of objects. Items in the array","that do not have a function by that name will be skipped.","","@example",""," Y.Array.invoke(arrayOfDrags, 'plug', Y.Plugin.DDProxy);","","@method invoke","@param {Array} items Array of objects supporting the named method.","@param {String} name the name of the method to execute on each item.","@param {Any} [args*] Any number of additional args are passed as parameters to"," the execution of the named method.","@return {Array} All return values, indexed according to the item index.","@static","@for Array","**/","Y.Array.invoke = function(items, name) {"," var args = Y.Array(arguments, 2, true),"," isFunction = Y.Lang.isFunction,"," ret = [];",""," Y.Array.each(Y.Array(items), function(item, i) {"," if (item && isFunction(item[name])) {"," ret[i] = item[name].apply(item, args);"," }"," });",""," return ret;","};","","","}, '3.9.1', {\"requires\": [\"yui-base\"]});"];
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"].lines = {"1":0,"25":0,"26":0,"30":0,"31":0,"32":0,"36":0};
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"].functions = {"(anonymous 2):30":0,"invoke:25":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"].coveredLines = 7;
|
||||
_yuitest_coverage["build/array-invoke/array-invoke.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 1);
|
||||
YUI.add('array-invoke', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
@module collection
|
||||
@submodule array-invoke
|
||||
*/
|
||||
|
||||
/**
|
||||
Executes a named method on each item in an array of objects. Items in the array
|
||||
that do not have a function by that name will be skipped.
|
||||
|
||||
@example
|
||||
|
||||
Y.Array.invoke(arrayOfDrags, 'plug', Y.Plugin.DDProxy);
|
||||
|
||||
@method invoke
|
||||
@param {Array} items Array of objects supporting the named method.
|
||||
@param {String} name the name of the method to execute on each item.
|
||||
@param {Any} [args*] Any number of additional args are passed as parameters to
|
||||
the execution of the named method.
|
||||
@return {Array} All return values, indexed according to the item index.
|
||||
@static
|
||||
@for Array
|
||||
**/
|
||||
_yuitest_coverfunc("build/array-invoke/array-invoke.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 25);
|
||||
Y.Array.invoke = function(items, name) {
|
||||
_yuitest_coverfunc("build/array-invoke/array-invoke.js", "invoke", 25);
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 26);
|
||||
var args = Y.Array(arguments, 2, true),
|
||||
isFunction = Y.Lang.isFunction,
|
||||
ret = [];
|
||||
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 30);
|
||||
Y.Array.each(Y.Array(items), function(item, i) {
|
||||
_yuitest_coverfunc("build/array-invoke/array-invoke.js", "(anonymous 2)", 30);
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 31);
|
||||
if (item && isFunction(item[name])) {
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 32);
|
||||
ret[i] = item[name].apply(item, args);
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/array-invoke/array-invoke.js", 36);
|
||||
return ret;
|
||||
};
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["yui-base"]});
|
||||
@@ -1,140 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/arraylist-add/arraylist-add.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"].code=["YUI.add('arraylist-add', function (Y, NAME) {","","/**"," * Collection utilities beyond what is provided in the YUI core"," * @module collection"," * @submodule arraylist-add"," * @deprecated Use ModelList or a custom ArrayList subclass"," */","","/*"," * Adds methods add and remove to Y.ArrayList"," */","Y.mix(Y.ArrayList.prototype, {",""," /**"," * Add a single item to the ArrayList. Does not prevent duplicates."," *"," * @method add"," * @param { mixed } item Item presumably of the same type as others in the"," * ArrayList."," * @param {Number} index (Optional.) Number representing the position at"," * which the item should be inserted."," * @return {ArrayList} the instance."," * @for ArrayList"," * @deprecated Use ModelList or a custom ArrayList subclass"," * @chainable"," */"," add: function(item, index) {"," var items = this._items;",""," if (Y.Lang.isNumber(index)) {"," items.splice(index, 0, item);"," }"," else {"," items.push(item);"," }",""," return this;"," },",""," /**"," * Removes first or all occurrences of an item to the ArrayList. If a"," * comparator is not provided, uses itemsAreEqual method to determine"," * matches."," *"," * @method remove"," * @param { mixed } needle Item to find and remove from the list."," * @param { Boolean } all If true, remove all occurrences."," * @param { Function } comparator optional a/b function to test equivalence."," * @return {ArrayList} the instance."," * @for ArrayList"," * @deprecated Use ModelList or a custom ArrayList subclass"," * @chainable"," */"," remove: function(needle, all, comparator) {"," comparator = comparator || this.itemsAreEqual;",""," for (var i = this._items.length - 1; i >= 0; --i) {"," if (comparator.call(this, needle, this.item(i))) {"," this._items.splice(i, 1);"," if (!all) {"," break;"," }"," }"," }",""," return this;"," },",""," /**"," * Default comparator for items stored in this list. Used by remove()."," *"," * @method itemsAreEqual"," * @param { mixed } a item to test equivalence with."," * @param { mixed } b other item to test equivalance."," * @return { Boolean } true if items are deemed equivalent."," * @for ArrayList"," * @deprecated Use ModelList or a custom ArrayList subclass"," */"," itemsAreEqual: function(a, b) {"," return a === b;"," }","","});","","","}, '3.9.1', {\"requires\": [\"arraylist\"]});"];
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"].lines = {"1":0,"13":0,"29":0,"31":0,"32":0,"35":0,"38":0,"56":0,"58":0,"59":0,"60":0,"61":0,"62":0,"67":0,"81":0};
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"].functions = {"add:28":0,"remove:55":0,"itemsAreEqual:80":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"].coveredLines = 15;
|
||||
_yuitest_coverage["build/arraylist-add/arraylist-add.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 1);
|
||||
YUI.add('arraylist-add', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Collection utilities beyond what is provided in the YUI core
|
||||
* @module collection
|
||||
* @submodule arraylist-add
|
||||
* @deprecated Use ModelList or a custom ArrayList subclass
|
||||
*/
|
||||
|
||||
/*
|
||||
* Adds methods add and remove to Y.ArrayList
|
||||
*/
|
||||
_yuitest_coverfunc("build/arraylist-add/arraylist-add.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 13);
|
||||
Y.mix(Y.ArrayList.prototype, {
|
||||
|
||||
/**
|
||||
* Add a single item to the ArrayList. Does not prevent duplicates.
|
||||
*
|
||||
* @method add
|
||||
* @param { mixed } item Item presumably of the same type as others in the
|
||||
* ArrayList.
|
||||
* @param {Number} index (Optional.) Number representing the position at
|
||||
* which the item should be inserted.
|
||||
* @return {ArrayList} the instance.
|
||||
* @for ArrayList
|
||||
* @deprecated Use ModelList or a custom ArrayList subclass
|
||||
* @chainable
|
||||
*/
|
||||
add: function(item, index) {
|
||||
_yuitest_coverfunc("build/arraylist-add/arraylist-add.js", "add", 28);
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 29);
|
||||
var items = this._items;
|
||||
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 31);
|
||||
if (Y.Lang.isNumber(index)) {
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 32);
|
||||
items.splice(index, 0, item);
|
||||
}
|
||||
else {
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 35);
|
||||
items.push(item);
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 38);
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes first or all occurrences of an item to the ArrayList. If a
|
||||
* comparator is not provided, uses itemsAreEqual method to determine
|
||||
* matches.
|
||||
*
|
||||
* @method remove
|
||||
* @param { mixed } needle Item to find and remove from the list.
|
||||
* @param { Boolean } all If true, remove all occurrences.
|
||||
* @param { Function } comparator optional a/b function to test equivalence.
|
||||
* @return {ArrayList} the instance.
|
||||
* @for ArrayList
|
||||
* @deprecated Use ModelList or a custom ArrayList subclass
|
||||
* @chainable
|
||||
*/
|
||||
remove: function(needle, all, comparator) {
|
||||
_yuitest_coverfunc("build/arraylist-add/arraylist-add.js", "remove", 55);
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 56);
|
||||
comparator = comparator || this.itemsAreEqual;
|
||||
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 58);
|
||||
for (var i = this._items.length - 1; i >= 0; --i) {
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 59);
|
||||
if (comparator.call(this, needle, this.item(i))) {
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 60);
|
||||
this._items.splice(i, 1);
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 61);
|
||||
if (!all) {
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 62);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 67);
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Default comparator for items stored in this list. Used by remove().
|
||||
*
|
||||
* @method itemsAreEqual
|
||||
* @param { mixed } a item to test equivalence with.
|
||||
* @param { mixed } b other item to test equivalance.
|
||||
* @return { Boolean } true if items are deemed equivalent.
|
||||
* @for ArrayList
|
||||
* @deprecated Use ModelList or a custom ArrayList subclass
|
||||
*/
|
||||
itemsAreEqual: function(a, b) {
|
||||
_yuitest_coverfunc("build/arraylist-add/arraylist-add.js", "itemsAreEqual", 80);
|
||||
_yuitest_coverline("build/arraylist-add/arraylist-add.js", 81);
|
||||
return a === b;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["arraylist"]});
|
||||
@@ -1,90 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/arraylist-filter/arraylist-filter.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"].code=["YUI.add('arraylist-filter', function (Y, NAME) {","","/**"," * Collection utilities beyond what is provided in the YUI core"," * @module collection"," * @submodule arraylist-filter"," * @deprecated Use ModelList or a custom subclass implementation"," */","","/*"," * Adds filter method to ArrayList prototype"," */","Y.mix(Y.ArrayList.prototype, {",""," /**"," * <p>Create a new ArrayList (or augmenting class instance) from a subset"," * of items as determined by the boolean function passed as the"," * argument. The original ArrayList is unchanged.</p>"," *"," * <p>The validator signature is <code>validator( item )</code>.</p>"," *"," * @method filter"," * @param { Function } validator Boolean function to determine in or out."," * @return { ArrayList } New instance based on who passed the validator."," * @for ArrayList"," * @deprecated Use ModelList or a custom subclass implementation"," */"," filter: function(validator) {"," var items = [];",""," Y.Array.each(this._items, function(item, i) {"," item = this.item(i);",""," if (validator(item)) {"," items.push(item);"," }"," }, this);",""," return new this.constructor(items);"," }","","});","","","}, '3.9.1', {\"requires\": [\"arraylist\"]});"];
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"].lines = {"1":0,"13":0,"29":0,"31":0,"32":0,"34":0,"35":0,"39":0};
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"].functions = {"(anonymous 2):31":0,"filter:28":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"].coveredLines = 8;
|
||||
_yuitest_coverage["build/arraylist-filter/arraylist-filter.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 1);
|
||||
YUI.add('arraylist-filter', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Collection utilities beyond what is provided in the YUI core
|
||||
* @module collection
|
||||
* @submodule arraylist-filter
|
||||
* @deprecated Use ModelList or a custom subclass implementation
|
||||
*/
|
||||
|
||||
/*
|
||||
* Adds filter method to ArrayList prototype
|
||||
*/
|
||||
_yuitest_coverfunc("build/arraylist-filter/arraylist-filter.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 13);
|
||||
Y.mix(Y.ArrayList.prototype, {
|
||||
|
||||
/**
|
||||
* <p>Create a new ArrayList (or augmenting class instance) from a subset
|
||||
* of items as determined by the boolean function passed as the
|
||||
* argument. The original ArrayList is unchanged.</p>
|
||||
*
|
||||
* <p>The validator signature is <code>validator( item )</code>.</p>
|
||||
*
|
||||
* @method filter
|
||||
* @param { Function } validator Boolean function to determine in or out.
|
||||
* @return { ArrayList } New instance based on who passed the validator.
|
||||
* @for ArrayList
|
||||
* @deprecated Use ModelList or a custom subclass implementation
|
||||
*/
|
||||
filter: function(validator) {
|
||||
_yuitest_coverfunc("build/arraylist-filter/arraylist-filter.js", "filter", 28);
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 29);
|
||||
var items = [];
|
||||
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 31);
|
||||
Y.Array.each(this._items, function(item, i) {
|
||||
_yuitest_coverfunc("build/arraylist-filter/arraylist-filter.js", "(anonymous 2)", 31);
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 32);
|
||||
item = this.item(i);
|
||||
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 34);
|
||||
if (validator(item)) {
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 35);
|
||||
items.push(item);
|
||||
}
|
||||
}, this);
|
||||
|
||||
_yuitest_coverline("build/arraylist-filter/arraylist-filter.js", 39);
|
||||
return new this.constructor(items);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["arraylist"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,119 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/arraysort/arraysort.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"].code=["YUI.add('arraysort', function (Y, NAME) {","","/**","Provides a case-insenstive comparator which can be used for array sorting.","","@module arraysort","*/","","var LANG = Y.Lang,"," ISVALUE = LANG.isValue,"," ISSTRING = LANG.isString;","","/**","Provides a case-insenstive comparator which can be used for array sorting.","","@class ArraySort","*/","","Y.ArraySort = {",""," /**"," Comparator function for simple case-insensitive sorting of an array of"," strings.",""," @method compare"," @param a {Object} First sort argument."," @param b {Object} Second sort argument."," @param desc {Boolean} `true` if sort direction is descending, `false` if"," sort direction is ascending."," @return {Boolean} -1 when a < b. 0 when a == b. 1 when a > b."," */"," compare: function(a, b, desc) {"," if(!ISVALUE(a)) {"," if(!ISVALUE(b)) {"," return 0;"," }"," else {"," return 1;"," }"," }"," else if(!ISVALUE(b)) {"," return -1;"," }",""," if(ISSTRING(a)) {"," a = a.toLowerCase();"," }"," if(ISSTRING(b)) {"," b = b.toLowerCase();"," }"," if(a < b) {"," return (desc) ? 1 : -1;"," }"," else if (a > b) {"," return (desc) ? -1 : 1;"," }"," else {"," return 0;"," }"," }","","};","","","}, '3.9.1', {\"requires\": [\"yui-base\"]});"];
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"].lines = {"1":0,"9":0,"19":0,"33":0,"34":0,"35":0,"38":0,"41":0,"42":0,"45":0,"46":0,"48":0,"49":0,"51":0,"52":0,"54":0,"55":0,"58":0};
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"].functions = {"compare:32":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"].coveredLines = 18;
|
||||
_yuitest_coverage["build/arraysort/arraysort.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 1);
|
||||
YUI.add('arraysort', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Provides a case-insenstive comparator which can be used for array sorting.
|
||||
|
||||
@module arraysort
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/arraysort/arraysort.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 9);
|
||||
var LANG = Y.Lang,
|
||||
ISVALUE = LANG.isValue,
|
||||
ISSTRING = LANG.isString;
|
||||
|
||||
/**
|
||||
Provides a case-insenstive comparator which can be used for array sorting.
|
||||
|
||||
@class ArraySort
|
||||
*/
|
||||
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 19);
|
||||
Y.ArraySort = {
|
||||
|
||||
/**
|
||||
Comparator function for simple case-insensitive sorting of an array of
|
||||
strings.
|
||||
|
||||
@method compare
|
||||
@param a {Object} First sort argument.
|
||||
@param b {Object} Second sort argument.
|
||||
@param desc {Boolean} `true` if sort direction is descending, `false` if
|
||||
sort direction is ascending.
|
||||
@return {Boolean} -1 when a < b. 0 when a == b. 1 when a > b.
|
||||
*/
|
||||
compare: function(a, b, desc) {
|
||||
_yuitest_coverfunc("build/arraysort/arraysort.js", "compare", 32);
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 33);
|
||||
if(!ISVALUE(a)) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 34);
|
||||
if(!ISVALUE(b)) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 35);
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 38);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
else {_yuitest_coverline("build/arraysort/arraysort.js", 41);
|
||||
if(!ISVALUE(b)) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 42);
|
||||
return -1;
|
||||
}}
|
||||
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 45);
|
||||
if(ISSTRING(a)) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 46);
|
||||
a = a.toLowerCase();
|
||||
}
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 48);
|
||||
if(ISSTRING(b)) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 49);
|
||||
b = b.toLowerCase();
|
||||
}
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 51);
|
||||
if(a < b) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 52);
|
||||
return (desc) ? 1 : -1;
|
||||
}
|
||||
else {_yuitest_coverline("build/arraysort/arraysort.js", 54);
|
||||
if (a > b) {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 55);
|
||||
return (desc) ? -1 : 1;
|
||||
}
|
||||
else {
|
||||
_yuitest_coverline("build/arraysort/arraysort.js", 58);
|
||||
return 0;
|
||||
}}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["yui-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,96 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/attribute-complex/attribute-complex.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"].code=["YUI.add('attribute-complex', function (Y, NAME) {",""," /**"," * Adds support for attribute providers to handle complex attributes in the constructor"," *"," * @module attribute"," * @submodule attribute-complex"," * @for Attribute"," * @deprecated AttributeComplex's overrides are now part of AttributeCore."," */",""," var Attribute = Y.Attribute;",""," Attribute.Complex = function() {};"," Attribute.Complex.prototype = {",""," /**"," * Utility method to split out simple attribute name/value pairs (\"x\")"," * from complex attribute name/value pairs (\"x.y.z\"), so that complex"," * attributes can be keyed by the top level attribute name."," *"," * @method _normAttrVals"," * @param {Object} valueHash An object with attribute name/value pairs"," *"," * @return {Object} An object literal with 2 properties - \"simple\" and \"complex\","," * containing simple and complex attribute values respectively keyed"," * by the top level attribute name, or null, if valueHash is falsey."," *"," * @private"," */"," _normAttrVals : Attribute.prototype._normAttrVals,",""," /**"," * Returns the initial value of the given attribute from"," * either the default configuration provided, or the"," * over-ridden value if it exists in the set of initValues"," * provided and the attribute is not read-only."," *"," * @param {String} attr The name of the attribute"," * @param {Object} cfg The attribute configuration object"," * @param {Object} initValues The object with simple and complex attribute name/value pairs returned from _normAttrVals"," *"," * @return {Any} The initial value of the attribute."," *"," * @method _getAttrInitVal"," * @private"," */"," _getAttrInitVal : Attribute.prototype._getAttrInitVal",""," };",""," // Consistency with the rest of the Attribute addons for now."," Y.AttributeComplex = Attribute.Complex;","","","}, '3.9.1', {\"requires\": [\"attribute-base\"]});"];
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"].lines = {"1":0,"12":0,"14":0,"15":0,"53":0};
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"].functions = {"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"].coveredLines = 5;
|
||||
_yuitest_coverage["build/attribute-complex/attribute-complex.js"].coveredFunctions = 1;
|
||||
_yuitest_coverline("build/attribute-complex/attribute-complex.js", 1);
|
||||
YUI.add('attribute-complex', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Adds support for attribute providers to handle complex attributes in the constructor
|
||||
*
|
||||
* @module attribute
|
||||
* @submodule attribute-complex
|
||||
* @for Attribute
|
||||
* @deprecated AttributeComplex's overrides are now part of AttributeCore.
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/attribute-complex/attribute-complex.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/attribute-complex/attribute-complex.js", 12);
|
||||
var Attribute = Y.Attribute;
|
||||
|
||||
_yuitest_coverline("build/attribute-complex/attribute-complex.js", 14);
|
||||
Attribute.Complex = function() {};
|
||||
_yuitest_coverline("build/attribute-complex/attribute-complex.js", 15);
|
||||
Attribute.Complex.prototype = {
|
||||
|
||||
/**
|
||||
* Utility method to split out simple attribute name/value pairs ("x")
|
||||
* from complex attribute name/value pairs ("x.y.z"), so that complex
|
||||
* attributes can be keyed by the top level attribute name.
|
||||
*
|
||||
* @method _normAttrVals
|
||||
* @param {Object} valueHash An object with attribute name/value pairs
|
||||
*
|
||||
* @return {Object} An object literal with 2 properties - "simple" and "complex",
|
||||
* containing simple and complex attribute values respectively keyed
|
||||
* by the top level attribute name, or null, if valueHash is falsey.
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
_normAttrVals : Attribute.prototype._normAttrVals,
|
||||
|
||||
/**
|
||||
* Returns the initial value of the given attribute from
|
||||
* either the default configuration provided, or the
|
||||
* over-ridden value if it exists in the set of initValues
|
||||
* provided and the attribute is not read-only.
|
||||
*
|
||||
* @param {String} attr The name of the attribute
|
||||
* @param {Object} cfg The attribute configuration object
|
||||
* @param {Object} initValues The object with simple and complex attribute name/value pairs returned from _normAttrVals
|
||||
*
|
||||
* @return {Any} The initial value of the attribute.
|
||||
*
|
||||
* @method _getAttrInitVal
|
||||
* @private
|
||||
*/
|
||||
_getAttrInitVal : Attribute.prototype._getAttrInitVal
|
||||
|
||||
};
|
||||
|
||||
// Consistency with the rest of the Attribute addons for now.
|
||||
_yuitest_coverline("build/attribute-complex/attribute-complex.js", 53);
|
||||
Y.AttributeComplex = Attribute.Complex;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["attribute-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-213
@@ -1,213 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"].code=["YUI.add('autocomplete-filters-accentfold', function (Y, NAME) {","","/**","Provides pre-built accent-folding result matching filters for AutoComplete.","","These filters are similar to the ones provided by the `autocomplete-filters`","module, but use accent-aware comparisons. For example, \"resume\" and \"résumé\"","will be considered equal when using the accent-folding filters.","","@module autocomplete","@submodule autocomplete-filters-accentfold","**/","","/**","@class AutoCompleteFilters","@static","**/","","var AccentFold = Y.Text.AccentFold,"," WordBreak = Y.Text.WordBreak,"," YArray = Y.Array,"," YObject = Y.Object;","","Y.mix(Y.namespace('AutoCompleteFilters'), {"," /**"," Accent folding version of `charMatch()`.",""," @method charMatchFold"," @param {String} query Query to match"," @param {Array} results Results to filter"," @return {Array} Filtered results"," @static"," **/"," charMatchFold: function (query, results) {"," if (!query) { return results; }",""," var queryChars = YArray.unique(AccentFold.fold(query).split(''));",""," return YArray.filter(results, function (result) {"," var text = AccentFold.fold(result.text);",""," return YArray.every(queryChars, function (chr) {"," return text.indexOf(chr) !== -1;"," });"," });"," },",""," /**"," Accent folding version of `phraseMatch()`.",""," @method phraseMatchFold"," @param {String} query Query to match"," @param {Array} results Results to filter"," @return {Array} Filtered results"," @static"," **/"," phraseMatchFold: function (query, results) {"," if (!query) { return results; }",""," query = AccentFold.fold(query);",""," return YArray.filter(results, function (result) {"," return AccentFold.fold(result.text).indexOf(query) !== -1;"," });"," },",""," /**"," Accent folding version of `startsWith()`.",""," @method startsWithFold"," @param {String} query Query to match"," @param {Array} results Results to filter"," @return {Array} Filtered results"," @static"," **/"," startsWithFold: function (query, results) {"," if (!query) { return results; }",""," query = AccentFold.fold(query);",""," return YArray.filter(results, function (result) {"," return AccentFold.fold(result.text).indexOf(query) === 0;"," });"," },",""," /**"," Accent folding version of `subWordMatch()`.",""," @method subWordMatchFold"," @param {String} query Query to match"," @param {Array} results Results to filter"," @return {Array} Filtered results"," @static"," **/"," subWordMatchFold: function (query, results) {"," if (!query) { return results; }",""," var queryWords = WordBreak.getUniqueWords(AccentFold.fold(query));",""," return YArray.filter(results, function (result) {"," var resultText = AccentFold.fold(result.text);",""," return YArray.every(queryWords, function (queryWord) {"," return resultText.indexOf(queryWord) !== -1;"," });"," });"," },",""," /**"," Accent folding version of `wordMatch()`.",""," @method wordMatchFold"," @param {String} query Query to match"," @param {Array} results Results to filter"," @return {Array} Filtered results"," @static"," **/"," wordMatchFold: function (query, results) {"," if (!query) { return results; }",""," var queryWords = WordBreak.getUniqueWords(AccentFold.fold(query));",""," return YArray.filter(results, function (result) {"," // Convert resultWords array to a hash for fast lookup."," var resultWords = YArray.hash(WordBreak.getUniqueWords("," AccentFold.fold(result.text)));",""," return YArray.every(queryWords, function (word) {"," return YObject.owns(resultWords, word);"," });"," });"," }","});","","","}, '3.9.1', {\"requires\": [\"array-extras\", \"text-accentfold\", \"text-wordbreak\"]});"];
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"].lines = {"1":0,"19":0,"24":0,"35":0,"37":0,"39":0,"40":0,"42":0,"43":0,"58":0,"60":0,"62":0,"63":0,"77":0,"79":0,"81":0,"82":0,"96":0,"98":0,"100":0,"101":0,"103":0,"104":0,"119":0,"121":0,"123":0,"125":0,"128":0,"129":0};
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"].functions = {"(anonymous 3):42":0,"(anonymous 2):39":0,"charMatchFold:34":0,"(anonymous 4):62":0,"phraseMatchFold:57":0,"(anonymous 5):81":0,"startsWithFold:76":0,"(anonymous 7):103":0,"(anonymous 6):100":0,"subWordMatchFold:95":0,"(anonymous 9):128":0,"(anonymous 8):123":0,"wordMatchFold:118":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"].coveredLines = 29;
|
||||
_yuitest_coverage["build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js"].coveredFunctions = 14;
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 1);
|
||||
YUI.add('autocomplete-filters-accentfold', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Provides pre-built accent-folding result matching filters for AutoComplete.
|
||||
|
||||
These filters are similar to the ones provided by the `autocomplete-filters`
|
||||
module, but use accent-aware comparisons. For example, "resume" and "résumé"
|
||||
will be considered equal when using the accent-folding filters.
|
||||
|
||||
@module autocomplete
|
||||
@submodule autocomplete-filters-accentfold
|
||||
**/
|
||||
|
||||
/**
|
||||
@class AutoCompleteFilters
|
||||
@static
|
||||
**/
|
||||
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 19);
|
||||
var AccentFold = Y.Text.AccentFold,
|
||||
WordBreak = Y.Text.WordBreak,
|
||||
YArray = Y.Array,
|
||||
YObject = Y.Object;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 24);
|
||||
Y.mix(Y.namespace('AutoCompleteFilters'), {
|
||||
/**
|
||||
Accent folding version of `charMatch()`.
|
||||
|
||||
@method charMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to filter
|
||||
@return {Array} Filtered results
|
||||
@static
|
||||
**/
|
||||
charMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "charMatchFold", 34);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 35);
|
||||
if (!query) { return results; }
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 37);
|
||||
var queryChars = YArray.unique(AccentFold.fold(query).split(''));
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 39);
|
||||
return YArray.filter(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 2)", 39);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 40);
|
||||
var text = AccentFold.fold(result.text);
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 42);
|
||||
return YArray.every(queryChars, function (chr) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 3)", 42);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 43);
|
||||
return text.indexOf(chr) !== -1;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent folding version of `phraseMatch()`.
|
||||
|
||||
@method phraseMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to filter
|
||||
@return {Array} Filtered results
|
||||
@static
|
||||
**/
|
||||
phraseMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "phraseMatchFold", 57);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 58);
|
||||
if (!query) { return results; }
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 60);
|
||||
query = AccentFold.fold(query);
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 62);
|
||||
return YArray.filter(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 4)", 62);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 63);
|
||||
return AccentFold.fold(result.text).indexOf(query) !== -1;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent folding version of `startsWith()`.
|
||||
|
||||
@method startsWithFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to filter
|
||||
@return {Array} Filtered results
|
||||
@static
|
||||
**/
|
||||
startsWithFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "startsWithFold", 76);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 77);
|
||||
if (!query) { return results; }
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 79);
|
||||
query = AccentFold.fold(query);
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 81);
|
||||
return YArray.filter(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 5)", 81);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 82);
|
||||
return AccentFold.fold(result.text).indexOf(query) === 0;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent folding version of `subWordMatch()`.
|
||||
|
||||
@method subWordMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to filter
|
||||
@return {Array} Filtered results
|
||||
@static
|
||||
**/
|
||||
subWordMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "subWordMatchFold", 95);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 96);
|
||||
if (!query) { return results; }
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 98);
|
||||
var queryWords = WordBreak.getUniqueWords(AccentFold.fold(query));
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 100);
|
||||
return YArray.filter(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 6)", 100);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 101);
|
||||
var resultText = AccentFold.fold(result.text);
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 103);
|
||||
return YArray.every(queryWords, function (queryWord) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 7)", 103);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 104);
|
||||
return resultText.indexOf(queryWord) !== -1;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent folding version of `wordMatch()`.
|
||||
|
||||
@method wordMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to filter
|
||||
@return {Array} Filtered results
|
||||
@static
|
||||
**/
|
||||
wordMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "wordMatchFold", 118);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 119);
|
||||
if (!query) { return results; }
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 121);
|
||||
var queryWords = WordBreak.getUniqueWords(AccentFold.fold(query));
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 123);
|
||||
return YArray.filter(results, function (result) {
|
||||
// Convert resultWords array to a hash for fast lookup.
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 8)", 123);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 125);
|
||||
var resultWords = YArray.hash(WordBreak.getUniqueWords(
|
||||
AccentFold.fold(result.text)));
|
||||
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 128);
|
||||
return YArray.every(queryWords, function (word) {
|
||||
_yuitest_coverfunc("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", "(anonymous 9)", 128);
|
||||
_yuitest_coverline("build/autocomplete-filters-accentfold/autocomplete-filters-accentfold.js", 129);
|
||||
return YObject.owns(resultWords, word);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["array-extras", "text-accentfold", "text-wordbreak"]});
|
||||
File diff suppressed because one or more lines are too long
-167
@@ -1,167 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"].code=["YUI.add('autocomplete-highlighters-accentfold', function (Y, NAME) {","","/**","Provides pre-built accent-folding result highlighters for AutoComplete.","","These highlighters are similar to the ones provided by the `autocomplete-","highlighters` module, but use accent-aware comparisons. For example, \"resume\"","and \"résumé\" will be considered equal when using the accent-folding","highlighters.","","@module autocomplete","@submodule autocomplete-highlighters-accentfold","**/","","/**","@class AutoCompleteHighlighters","@static","**/","","var Highlight = Y.Highlight,"," YArray = Y.Array;","","Y.mix(Y.namespace('AutoCompleteHighlighters'), {"," /**"," Accent-folding version of `charMatch()`.",""," @method charMatchFold"," @param {String} query Query to match"," @param {Array} results Results to highlight"," @return {Array} Highlighted results"," @static"," **/"," charMatchFold: function (query, results) {"," var queryChars = YArray.unique(query.split(''));",""," return YArray.map(results, function (result) {"," return Highlight.allFold(result.text, queryChars);"," });"," },",""," /**"," Accent-folding version of `phraseMatch()`.",""," @method phraseMatchFold"," @param {String} query Query to match"," @param {Array} results Results to highlight"," @return {Array} Highlighted results"," @static"," **/"," phraseMatchFold: function (query, results) {"," return YArray.map(results, function (result) {"," return Highlight.allFold(result.text, [query]);"," });"," },",""," /**"," Accent-folding version of `startsWith()`.",""," @method startsWithFold"," @param {String} query Query to match"," @param {Array} results Results to highlight"," @return {Array} Highlighted results"," @static"," **/"," startsWithFold: function (query, results) {"," return YArray.map(results, function (result) {"," return Highlight.allFold(result.text, [query], {"," startsWith: true"," });"," });"," },",""," /**"," Accent-folding version of `subWordMatch()`.",""," @method subWordMatchFold"," @param {String} query Query to match"," @param {Array} results Results to highlight"," @return {Array} Highlighted results"," @static"," **/"," subWordMatchFold: function (query, results) {"," var queryWords = Y.Text.WordBreak.getUniqueWords(query);",""," return YArray.map(results, function (result) {"," return Highlight.allFold(result.text, queryWords);"," });"," },",""," /**"," Accent-folding version of `wordMatch()`.",""," @method wordMatchFold"," @param {String} query Query to match"," @param {Array} results Results to highlight"," @return {Array} Highlighted results"," @static"," **/"," wordMatchFold: function (query, results) {"," return YArray.map(results, function (result) {"," return Highlight.wordsFold(result.text, query);"," });"," }","});","","","}, '3.9.1', {\"requires\": [\"array-extras\", \"highlight-accentfold\"]});"];
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"].lines = {"1":0,"20":0,"23":0,"34":0,"36":0,"37":0,"51":0,"52":0,"66":0,"67":0,"83":0,"85":0,"86":0,"100":0,"101":0};
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"].functions = {"(anonymous 2):36":0,"charMatchFold:33":0,"(anonymous 3):51":0,"phraseMatchFold:50":0,"(anonymous 4):66":0,"startsWithFold:65":0,"(anonymous 5):85":0,"subWordMatchFold:82":0,"(anonymous 6):100":0,"wordMatchFold:99":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"].coveredLines = 15;
|
||||
_yuitest_coverage["build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js"].coveredFunctions = 11;
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 1);
|
||||
YUI.add('autocomplete-highlighters-accentfold', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Provides pre-built accent-folding result highlighters for AutoComplete.
|
||||
|
||||
These highlighters are similar to the ones provided by the `autocomplete-
|
||||
highlighters` module, but use accent-aware comparisons. For example, "resume"
|
||||
and "résumé" will be considered equal when using the accent-folding
|
||||
highlighters.
|
||||
|
||||
@module autocomplete
|
||||
@submodule autocomplete-highlighters-accentfold
|
||||
**/
|
||||
|
||||
/**
|
||||
@class AutoCompleteHighlighters
|
||||
@static
|
||||
**/
|
||||
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 20);
|
||||
var Highlight = Y.Highlight,
|
||||
YArray = Y.Array;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 23);
|
||||
Y.mix(Y.namespace('AutoCompleteHighlighters'), {
|
||||
/**
|
||||
Accent-folding version of `charMatch()`.
|
||||
|
||||
@method charMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to highlight
|
||||
@return {Array} Highlighted results
|
||||
@static
|
||||
**/
|
||||
charMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "charMatchFold", 33);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 34);
|
||||
var queryChars = YArray.unique(query.split(''));
|
||||
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 36);
|
||||
return YArray.map(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 2)", 36);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 37);
|
||||
return Highlight.allFold(result.text, queryChars);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent-folding version of `phraseMatch()`.
|
||||
|
||||
@method phraseMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to highlight
|
||||
@return {Array} Highlighted results
|
||||
@static
|
||||
**/
|
||||
phraseMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "phraseMatchFold", 50);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 51);
|
||||
return YArray.map(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 3)", 51);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 52);
|
||||
return Highlight.allFold(result.text, [query]);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent-folding version of `startsWith()`.
|
||||
|
||||
@method startsWithFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to highlight
|
||||
@return {Array} Highlighted results
|
||||
@static
|
||||
**/
|
||||
startsWithFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "startsWithFold", 65);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 66);
|
||||
return YArray.map(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 4)", 66);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 67);
|
||||
return Highlight.allFold(result.text, [query], {
|
||||
startsWith: true
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent-folding version of `subWordMatch()`.
|
||||
|
||||
@method subWordMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to highlight
|
||||
@return {Array} Highlighted results
|
||||
@static
|
||||
**/
|
||||
subWordMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "subWordMatchFold", 82);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 83);
|
||||
var queryWords = Y.Text.WordBreak.getUniqueWords(query);
|
||||
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 85);
|
||||
return YArray.map(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 5)", 85);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 86);
|
||||
return Highlight.allFold(result.text, queryWords);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Accent-folding version of `wordMatch()`.
|
||||
|
||||
@method wordMatchFold
|
||||
@param {String} query Query to match
|
||||
@param {Array} results Results to highlight
|
||||
@return {Array} Highlighted results
|
||||
@static
|
||||
**/
|
||||
wordMatchFold: function (query, results) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "wordMatchFold", 99);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 100);
|
||||
return YArray.map(results, function (result) {
|
||||
_yuitest_coverfunc("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", "(anonymous 6)", 100);
|
||||
_yuitest_coverline("build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js", 101);
|
||||
return Highlight.wordsFold(result.text, query);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["array-extras", "highlight-accentfold"]});
|
||||
-268
File diff suppressed because one or more lines are too long
@@ -1,276 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/autocomplete-list-keys/autocomplete-list-keys.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"].code=["YUI.add('autocomplete-list-keys', function (Y, NAME) {","","/**","Mixes keyboard support into AutoCompleteList. By default, this module is not","loaded for iOS and Android devices.","","@module autocomplete","@submodule autocomplete-list-keys","**/",""," // keyCode constants.","var KEY_DOWN = 40,"," KEY_ENTER = 13,"," KEY_ESC = 27,"," KEY_TAB = 9,"," KEY_UP = 38;","","function ListKeys() {"," Y.before(this._bindKeys, this, 'bindUI');"," this._initKeys();","}","","ListKeys.prototype = {"," // -- Lifecycle Methods ----------------------------------------------------",""," /**"," Initializes keyboard command mappings.",""," @method _initKeys"," @protected"," @for AutoCompleteList"," **/"," _initKeys: function () {"," var keys = {},"," keysVisible = {};",""," // Register keyboard command handlers. _keys contains handlers that will"," // always be called; _keysVisible contains handlers that will only be"," // called when the list is visible."," keys[KEY_DOWN] = this._keyDown;",""," keysVisible[KEY_ENTER] = this._keyEnter;"," keysVisible[KEY_ESC] = this._keyEsc;"," keysVisible[KEY_TAB] = this._keyTab;"," keysVisible[KEY_UP] = this._keyUp;",""," this._keys = keys;"," this._keysVisible = keysVisible;"," },",""," destructor: function () {"," this._unbindKeys();"," },",""," /**"," Binds keyboard events.",""," @method _bindKeys"," @protected"," **/"," _bindKeys: function () {"," this._keyEvents = this._inputNode.on('keydown', this._onInputKey, this);"," },",""," /**"," Unbinds keyboard events.",""," @method _unbindKeys"," @protected"," **/"," _unbindKeys: function () {"," this._keyEvents && this._keyEvents.detach();"," this._keyEvents = null;"," },",""," // -- Protected Methods ----------------------------------------------------",""," /**"," Called when the down arrow key is pressed.",""," @method _keyDown"," @protected"," **/"," _keyDown: function () {"," if (this.get('visible')) {"," this._activateNextItem();"," } else {"," this.show();"," }"," },",""," /**"," Called when the enter key is pressed.",""," @method _keyEnter"," @protected"," **/"," _keyEnter: function (e) {"," var item = this.get('activeItem');",""," if (item) {"," this.selectItem(item, e);"," } else {"," // Don't prevent form submission when there's no active item."," return false;"," }"," },",""," /**"," Called when the escape key is pressed.",""," @method _keyEsc"," @protected"," **/"," _keyEsc: function () {"," this.hide();"," },",""," /**"," Called when the tab key is pressed.",""," @method _keyTab"," @protected"," **/"," _keyTab: function (e) {"," var item;",""," if (this.get('tabSelect')) {"," item = this.get('activeItem');",""," if (item) {"," this.selectItem(item, e);"," return true;"," }"," }",""," return false;"," },",""," /**"," Called when the up arrow key is pressed.",""," @method _keyUp"," @protected"," **/"," _keyUp: function () {"," this._activatePrevItem();"," },",""," // -- Protected Event Handlers ---------------------------------------------",""," /**"," Handles `inputNode` key events.",""," @method _onInputKey"," @param {EventTarget} e"," @protected"," **/"," _onInputKey: function (e) {"," var handler,"," keyCode = e.keyCode;",""," this._lastInputKey = keyCode;",""," if (this.get('results').length) {"," handler = this._keys[keyCode];",""," if (!handler && this.get('visible')) {"," handler = this._keysVisible[keyCode];"," }",""," if (handler) {"," // A handler may return false to indicate that it doesn't wish"," // to prevent the default key behavior."," if (handler.call(this, e) !== false) {"," e.preventDefault();"," }"," }"," }"," }","};","","Y.Base.mix(Y.AutoCompleteList, [ListKeys]);","","","}, '3.9.1', {\"requires\": [\"autocomplete-list\", \"base-build\"]});"];
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"].lines = {"1":0,"12":0,"18":0,"19":0,"20":0,"23":0,"34":0,"40":0,"42":0,"43":0,"44":0,"45":0,"47":0,"48":0,"52":0,"62":0,"72":0,"73":0,"85":0,"86":0,"88":0,"99":0,"101":0,"102":0,"105":0,"116":0,"126":0,"128":0,"129":0,"131":0,"132":0,"133":0,"137":0,"147":0,"160":0,"163":0,"165":0,"166":0,"168":0,"169":0,"172":0,"175":0,"176":0,"183":0};
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"].functions = {"ListKeys:18":0,"_initKeys:33":0,"destructor:51":0,"_bindKeys:61":0,"_unbindKeys:71":0,"_keyDown:84":0,"_keyEnter:98":0,"_keyEsc:115":0,"_keyTab:125":0,"_keyUp:146":0,"_onInputKey:159":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"].coveredLines = 44;
|
||||
_yuitest_coverage["build/autocomplete-list-keys/autocomplete-list-keys.js"].coveredFunctions = 12;
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 1);
|
||||
YUI.add('autocomplete-list-keys', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Mixes keyboard support into AutoCompleteList. By default, this module is not
|
||||
loaded for iOS and Android devices.
|
||||
|
||||
@module autocomplete
|
||||
@submodule autocomplete-list-keys
|
||||
**/
|
||||
|
||||
// keyCode constants.
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 12);
|
||||
var KEY_DOWN = 40,
|
||||
KEY_ENTER = 13,
|
||||
KEY_ESC = 27,
|
||||
KEY_TAB = 9,
|
||||
KEY_UP = 38;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 18);
|
||||
function ListKeys() {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "ListKeys", 18);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 19);
|
||||
Y.before(this._bindKeys, this, 'bindUI');
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 20);
|
||||
this._initKeys();
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 23);
|
||||
ListKeys.prototype = {
|
||||
// -- Lifecycle Methods ----------------------------------------------------
|
||||
|
||||
/**
|
||||
Initializes keyboard command mappings.
|
||||
|
||||
@method _initKeys
|
||||
@protected
|
||||
@for AutoCompleteList
|
||||
**/
|
||||
_initKeys: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_initKeys", 33);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 34);
|
||||
var keys = {},
|
||||
keysVisible = {};
|
||||
|
||||
// Register keyboard command handlers. _keys contains handlers that will
|
||||
// always be called; _keysVisible contains handlers that will only be
|
||||
// called when the list is visible.
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 40);
|
||||
keys[KEY_DOWN] = this._keyDown;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 42);
|
||||
keysVisible[KEY_ENTER] = this._keyEnter;
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 43);
|
||||
keysVisible[KEY_ESC] = this._keyEsc;
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 44);
|
||||
keysVisible[KEY_TAB] = this._keyTab;
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 45);
|
||||
keysVisible[KEY_UP] = this._keyUp;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 47);
|
||||
this._keys = keys;
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 48);
|
||||
this._keysVisible = keysVisible;
|
||||
},
|
||||
|
||||
destructor: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "destructor", 51);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 52);
|
||||
this._unbindKeys();
|
||||
},
|
||||
|
||||
/**
|
||||
Binds keyboard events.
|
||||
|
||||
@method _bindKeys
|
||||
@protected
|
||||
**/
|
||||
_bindKeys: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_bindKeys", 61);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 62);
|
||||
this._keyEvents = this._inputNode.on('keydown', this._onInputKey, this);
|
||||
},
|
||||
|
||||
/**
|
||||
Unbinds keyboard events.
|
||||
|
||||
@method _unbindKeys
|
||||
@protected
|
||||
**/
|
||||
_unbindKeys: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_unbindKeys", 71);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 72);
|
||||
this._keyEvents && this._keyEvents.detach();
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 73);
|
||||
this._keyEvents = null;
|
||||
},
|
||||
|
||||
// -- Protected Methods ----------------------------------------------------
|
||||
|
||||
/**
|
||||
Called when the down arrow key is pressed.
|
||||
|
||||
@method _keyDown
|
||||
@protected
|
||||
**/
|
||||
_keyDown: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_keyDown", 84);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 85);
|
||||
if (this.get('visible')) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 86);
|
||||
this._activateNextItem();
|
||||
} else {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 88);
|
||||
this.show();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
Called when the enter key is pressed.
|
||||
|
||||
@method _keyEnter
|
||||
@protected
|
||||
**/
|
||||
_keyEnter: function (e) {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_keyEnter", 98);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 99);
|
||||
var item = this.get('activeItem');
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 101);
|
||||
if (item) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 102);
|
||||
this.selectItem(item, e);
|
||||
} else {
|
||||
// Don't prevent form submission when there's no active item.
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 105);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
Called when the escape key is pressed.
|
||||
|
||||
@method _keyEsc
|
||||
@protected
|
||||
**/
|
||||
_keyEsc: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_keyEsc", 115);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 116);
|
||||
this.hide();
|
||||
},
|
||||
|
||||
/**
|
||||
Called when the tab key is pressed.
|
||||
|
||||
@method _keyTab
|
||||
@protected
|
||||
**/
|
||||
_keyTab: function (e) {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_keyTab", 125);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 126);
|
||||
var item;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 128);
|
||||
if (this.get('tabSelect')) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 129);
|
||||
item = this.get('activeItem');
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 131);
|
||||
if (item) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 132);
|
||||
this.selectItem(item, e);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 133);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 137);
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
Called when the up arrow key is pressed.
|
||||
|
||||
@method _keyUp
|
||||
@protected
|
||||
**/
|
||||
_keyUp: function () {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_keyUp", 146);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 147);
|
||||
this._activatePrevItem();
|
||||
},
|
||||
|
||||
// -- Protected Event Handlers ---------------------------------------------
|
||||
|
||||
/**
|
||||
Handles `inputNode` key events.
|
||||
|
||||
@method _onInputKey
|
||||
@param {EventTarget} e
|
||||
@protected
|
||||
**/
|
||||
_onInputKey: function (e) {
|
||||
_yuitest_coverfunc("build/autocomplete-list-keys/autocomplete-list-keys.js", "_onInputKey", 159);
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 160);
|
||||
var handler,
|
||||
keyCode = e.keyCode;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 163);
|
||||
this._lastInputKey = keyCode;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 165);
|
||||
if (this.get('results').length) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 166);
|
||||
handler = this._keys[keyCode];
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 168);
|
||||
if (!handler && this.get('visible')) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 169);
|
||||
handler = this._keysVisible[keyCode];
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 172);
|
||||
if (handler) {
|
||||
// A handler may return false to indicate that it doesn't wish
|
||||
// to prevent the default key behavior.
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 175);
|
||||
if (handler.call(this, e) !== false) {
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 176);
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/autocomplete-list-keys/autocomplete-list-keys.js", 183);
|
||||
Y.Base.mix(Y.AutoCompleteList, [ListKeys]);
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["autocomplete-list", "base-build"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,94 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/autocomplete-plugin/autocomplete-plugin.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"].code=["YUI.add('autocomplete-plugin', function (Y, NAME) {","","/**","Binds an AutoCompleteList instance to a Node instance.","","@module autocomplete","@submodule autocomplete-plugin","**/","","/**","Binds an AutoCompleteList instance to a Node instance.","","@example",""," Y.one('#my-input').plug(Y.Plugin.AutoComplete, {"," source: 'select * from search.suggest where query=\"{query}\"'"," });",""," // You can now access the AutoCompleteList instance at Y.one('#my-input').ac","","@class Plugin.AutoComplete","@extends AutoCompleteList","**/","","var Plugin = Y.Plugin;","","function ACListPlugin(config) {"," config.inputNode = config.host;",""," // Render by default."," if (!config.render && config.render !== false) {"," config.render = true;"," }",""," ACListPlugin.superclass.constructor.apply(this, arguments);","}","","Y.extend(ACListPlugin, Y.AutoCompleteList, {}, {"," NAME : 'autocompleteListPlugin',"," NS : 'ac',"," CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')","});","","Plugin.AutoComplete = ACListPlugin;","Plugin.AutoCompleteList = ACListPlugin;","","","}, '3.9.1', {\"requires\": [\"autocomplete-list\", \"node-pluginhost\"]});"];
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"].lines = {"1":0,"25":0,"27":0,"28":0,"31":0,"32":0,"35":0,"38":0,"44":0,"45":0};
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"].functions = {"ACListPlugin:27":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"].coveredLines = 10;
|
||||
_yuitest_coverage["build/autocomplete-plugin/autocomplete-plugin.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 1);
|
||||
YUI.add('autocomplete-plugin', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Binds an AutoCompleteList instance to a Node instance.
|
||||
|
||||
@module autocomplete
|
||||
@submodule autocomplete-plugin
|
||||
**/
|
||||
|
||||
/**
|
||||
Binds an AutoCompleteList instance to a Node instance.
|
||||
|
||||
@example
|
||||
|
||||
Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
|
||||
source: 'select * from search.suggest where query="{query}"'
|
||||
});
|
||||
|
||||
// You can now access the AutoCompleteList instance at Y.one('#my-input').ac
|
||||
|
||||
@class Plugin.AutoComplete
|
||||
@extends AutoCompleteList
|
||||
**/
|
||||
|
||||
_yuitest_coverfunc("build/autocomplete-plugin/autocomplete-plugin.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 25);
|
||||
var Plugin = Y.Plugin;
|
||||
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 27);
|
||||
function ACListPlugin(config) {
|
||||
_yuitest_coverfunc("build/autocomplete-plugin/autocomplete-plugin.js", "ACListPlugin", 27);
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 28);
|
||||
config.inputNode = config.host;
|
||||
|
||||
// Render by default.
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 31);
|
||||
if (!config.render && config.render !== false) {
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 32);
|
||||
config.render = true;
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 35);
|
||||
ACListPlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 38);
|
||||
Y.extend(ACListPlugin, Y.AutoCompleteList, {}, {
|
||||
NAME : 'autocompleteListPlugin',
|
||||
NS : 'ac',
|
||||
CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 44);
|
||||
Plugin.AutoComplete = ACListPlugin;
|
||||
_yuitest_coverline("build/autocomplete-plugin/autocomplete-plugin.js", 45);
|
||||
Plugin.AutoCompleteList = ACListPlugin;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["autocomplete-list", "node-pluginhost"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,127 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/axis-category/axis-category.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"].code=["YUI.add('axis-category', function (Y, NAME) {","","/**"," * Provides functionality for drawing a category axis for use with a chart."," *"," * @module charts"," * @submodule axis-category"," */","/**"," * CategoryAxis draws a category axis for a chart."," *"," * @class CategoryAxis"," * @constructor"," * @extends Axis"," * @uses CategoryImpl"," * @param {Object} config (optional) Configuration parameters."," * @submodule axis-category"," */","Y.CategoryAxis = Y.Base.create(\"categoryAxis\", Y.Axis, [Y.CategoryImpl], {"," /**"," * Returns a string corresponding to the first label on an"," * axis."," *"," * @method getMinimumValue"," * @return String"," */"," getMinimumValue: function()"," {"," var data = this.get(\"data\"),"," label = data[0];"," return label;"," },",""," /**"," * Returns a string corresponding to the last label on an"," * axis."," *"," * @method getMaximumValue"," * @return String"," */"," getMaximumValue: function()"," {"," var data = this.get(\"data\"),"," len = data.length - 1,"," label = data[len];"," return label;"," },",""," /**"," * Calculates and returns a value based on the number of labels and the index of"," * the current label."," *"," * @method _getLabelByIndex"," * @param {Number} i Index of the label."," * @param {Number} l Total number of labels."," * @param {String} direction The direction of the axis. (vertical or horizontal)"," * @return String"," * @private"," */"," _getLabelByIndex: function(i, l, direction)"," {"," var label,"," data = this.get(\"data\");"," if(direction && direction === \"vertical\")"," {"," label = data[l - (i + 1)];"," }"," else"," {"," label = data[i];"," }"," return label;"," }","});","","","","}, '3.9.1', {\"requires\": [\"axis\", \"axis-category-base\"]});"];
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"].lines = {"1":0,"19":0,"29":0,"31":0,"43":0,"46":0,"62":0,"64":0,"66":0,"70":0,"72":0};
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"].functions = {"getMinimumValue:27":0,"getMaximumValue:41":0,"_getLabelByIndex:60":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"].coveredLines = 11;
|
||||
_yuitest_coverage["build/axis-category/axis-category.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 1);
|
||||
YUI.add('axis-category', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides functionality for drawing a category axis for use with a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @submodule axis-category
|
||||
*/
|
||||
/**
|
||||
* CategoryAxis draws a category axis for a chart.
|
||||
*
|
||||
* @class CategoryAxis
|
||||
* @constructor
|
||||
* @extends Axis
|
||||
* @uses CategoryImpl
|
||||
* @param {Object} config (optional) Configuration parameters.
|
||||
* @submodule axis-category
|
||||
*/
|
||||
_yuitest_coverfunc("build/axis-category/axis-category.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 19);
|
||||
Y.CategoryAxis = Y.Base.create("categoryAxis", Y.Axis, [Y.CategoryImpl], {
|
||||
/**
|
||||
* Returns a string corresponding to the first label on an
|
||||
* axis.
|
||||
*
|
||||
* @method getMinimumValue
|
||||
* @return String
|
||||
*/
|
||||
getMinimumValue: function()
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-category/axis-category.js", "getMinimumValue", 27);
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 29);
|
||||
var data = this.get("data"),
|
||||
label = data[0];
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 31);
|
||||
return label;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a string corresponding to the last label on an
|
||||
* axis.
|
||||
*
|
||||
* @method getMaximumValue
|
||||
* @return String
|
||||
*/
|
||||
getMaximumValue: function()
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-category/axis-category.js", "getMaximumValue", 41);
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 43);
|
||||
var data = this.get("data"),
|
||||
len = data.length - 1,
|
||||
label = data[len];
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 46);
|
||||
return label;
|
||||
},
|
||||
|
||||
/**
|
||||
* Calculates and returns a value based on the number of labels and the index of
|
||||
* the current label.
|
||||
*
|
||||
* @method _getLabelByIndex
|
||||
* @param {Number} i Index of the label.
|
||||
* @param {Number} l Total number of labels.
|
||||
* @param {String} direction The direction of the axis. (vertical or horizontal)
|
||||
* @return String
|
||||
* @private
|
||||
*/
|
||||
_getLabelByIndex: function(i, l, direction)
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-category/axis-category.js", "_getLabelByIndex", 60);
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 62);
|
||||
var label,
|
||||
data = this.get("data");
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 64);
|
||||
if(direction && direction === "vertical")
|
||||
{
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 66);
|
||||
label = data[l - (i + 1)];
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 70);
|
||||
label = data[i];
|
||||
}
|
||||
_yuitest_coverline("build/axis-category/axis-category.js", 72);
|
||||
return label;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["axis", "axis-category-base"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,154 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/axis-numeric/axis-numeric.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"].code=["YUI.add('axis-numeric', function (Y, NAME) {","","/**"," * Provides functionality for drawing a numeric axis for use with a chart."," *"," * @module charts"," * @submodule axis-numeric"," */","Y_Lang = Y.Lang;","/**"," * NumericAxis draws a numeric axis."," *"," * @class NumericAxis"," * @constructor"," * @extends Axis"," * @uses NumericImpl"," * @param {Object} config (optional) Configuration parameters."," * @submodule axis-numeric"," */","Y.NumericAxis = Y.Base.create(\"numericAxis\", Y.Axis, [Y.NumericImpl], {"," /**"," * Calculates and returns a value based on the number of labels and the index of"," * the current label."," *"," * @method getLabelByIndex"," * @param {Number} i Index of the label."," * @param {Number} l Total number of labels."," * @return String"," * @private"," */"," _getLabelByIndex: function()"," {"," var i = arguments[0],"," l = arguments[1],"," min = this.get(\"minimum\"),"," max = this.get(\"maximum\"),"," increm = (max - min)/(l-1),"," label,"," roundingMethod = this.get(\"roundingMethod\");"," l -= 1;"," //respect the min and max. calculate all other labels."," if(i === 0)"," {"," label = min;"," }"," else if(i === l)"," {"," label = max;"," }"," else"," {"," label = (i * increm);"," if(roundingMethod === \"niceNumber\")"," {"," label = this._roundToNearest(label, increm);"," }"," label += min;"," }"," return parseFloat(label);"," },",""," /**"," * Checks to see if data extends beyond the range of the axis. If so,"," * that data will need to be hidden. This method is internal, temporary and subject"," * to removal in the future."," *"," * @method _hasDataOverflow"," * @protected"," * @return Boolean"," */"," _hasDataOverflow: function()"," {"," var roundingMethod,"," min,"," max;"," if(this.get(\"setMin\") || this.get(\"setMax\"))"," {"," return true;"," }"," roundingMethod = this.get(\"roundingMethod\");"," min = this._actualMinimum;"," max = this._actualMaximum;"," if(Y_Lang.isNumber(roundingMethod) &&"," ((Y_Lang.isNumber(max) && max > this._dataMaximum) || (Y_Lang.isNumber(min) && min < this._dataMinimum)))"," {"," return true;"," }"," return false;"," }","});","","","","}, '3.9.1', {\"requires\": [\"axis\", \"axis-numeric-base\"]});"];
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"].lines = {"1":0,"9":0,"20":0,"33":0,"40":0,"42":0,"44":0,"46":0,"48":0,"52":0,"53":0,"55":0,"57":0,"59":0,"73":0,"76":0,"78":0,"80":0,"81":0,"82":0,"83":0,"86":0,"88":0};
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"].functions = {"_getLabelByIndex:31":0,"_hasDataOverflow:71":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"].coveredLines = 23;
|
||||
_yuitest_coverage["build/axis-numeric/axis-numeric.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 1);
|
||||
YUI.add('axis-numeric', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides functionality for drawing a numeric axis for use with a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @submodule axis-numeric
|
||||
*/
|
||||
_yuitest_coverfunc("build/axis-numeric/axis-numeric.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 9);
|
||||
Y_Lang = Y.Lang;
|
||||
/**
|
||||
* NumericAxis draws a numeric axis.
|
||||
*
|
||||
* @class NumericAxis
|
||||
* @constructor
|
||||
* @extends Axis
|
||||
* @uses NumericImpl
|
||||
* @param {Object} config (optional) Configuration parameters.
|
||||
* @submodule axis-numeric
|
||||
*/
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 20);
|
||||
Y.NumericAxis = Y.Base.create("numericAxis", Y.Axis, [Y.NumericImpl], {
|
||||
/**
|
||||
* Calculates and returns a value based on the number of labels and the index of
|
||||
* the current label.
|
||||
*
|
||||
* @method getLabelByIndex
|
||||
* @param {Number} i Index of the label.
|
||||
* @param {Number} l Total number of labels.
|
||||
* @return String
|
||||
* @private
|
||||
*/
|
||||
_getLabelByIndex: function()
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-numeric/axis-numeric.js", "_getLabelByIndex", 31);
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 33);
|
||||
var i = arguments[0],
|
||||
l = arguments[1],
|
||||
min = this.get("minimum"),
|
||||
max = this.get("maximum"),
|
||||
increm = (max - min)/(l-1),
|
||||
label,
|
||||
roundingMethod = this.get("roundingMethod");
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 40);
|
||||
l -= 1;
|
||||
//respect the min and max. calculate all other labels.
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 42);
|
||||
if(i === 0)
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 44);
|
||||
label = min;
|
||||
}
|
||||
else {_yuitest_coverline("build/axis-numeric/axis-numeric.js", 46);
|
||||
if(i === l)
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 48);
|
||||
label = max;
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 52);
|
||||
label = (i * increm);
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 53);
|
||||
if(roundingMethod === "niceNumber")
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 55);
|
||||
label = this._roundToNearest(label, increm);
|
||||
}
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 57);
|
||||
label += min;
|
||||
}}
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 59);
|
||||
return parseFloat(label);
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks to see if data extends beyond the range of the axis. If so,
|
||||
* that data will need to be hidden. This method is internal, temporary and subject
|
||||
* to removal in the future.
|
||||
*
|
||||
* @method _hasDataOverflow
|
||||
* @protected
|
||||
* @return Boolean
|
||||
*/
|
||||
_hasDataOverflow: function()
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-numeric/axis-numeric.js", "_hasDataOverflow", 71);
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 73);
|
||||
var roundingMethod,
|
||||
min,
|
||||
max;
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 76);
|
||||
if(this.get("setMin") || this.get("setMax"))
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 78);
|
||||
return true;
|
||||
}
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 80);
|
||||
roundingMethod = this.get("roundingMethod");
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 81);
|
||||
min = this._actualMinimum;
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 82);
|
||||
max = this._actualMaximum;
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 83);
|
||||
if(Y_Lang.isNumber(roundingMethod) &&
|
||||
((Y_Lang.isNumber(max) && max > this._dataMaximum) || (Y_Lang.isNumber(min) && min < this._dataMinimum)))
|
||||
{
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 86);
|
||||
return true;
|
||||
}
|
||||
_yuitest_coverline("build/axis-numeric/axis-numeric.js", 88);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["axis", "axis-numeric-base"]});
|
||||
@@ -1,203 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/axis-stacked-base/axis-stacked-base.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"].code=["YUI.add('axis-stacked-base', function (Y, NAME) {","","/**"," * Provides core functionality for the handling of stacked numeric axis data for a chart."," *"," * @module charts"," * @submodule axis-stacked-base"," */","","/**"," * StackedImpl contains logic for managing stacked numeric data. StackedImpl is used by the following classes:"," * <ul>"," * <li>{{#crossLink \"StackedAxisBase\"}}{{/crossLink}}</li>"," * <li>{{#crossLink \"StackedAxis\"}}{{/crossLink}}</li>"," * </ul>"," *"," * @submodule axis-stacked-base"," * @class StackedImpl"," * @constructor"," */","function StackedImpl()","{","}","","StackedImpl.NAME = \"stackedImpl\";","","StackedImpl.prototype = {"," /**"," * Type of data used in `Data`."," *"," * @property _type"," * @readOnly"," * @private"," */"," _type: \"stacked\",",""," /**"," * Calculates the maximum and minimum values for the `Data`."," *"," * @method _updateMinAndMax"," * @private"," */"," _updateMinAndMax: function()"," {"," var max = 0,"," min = 0,"," pos = 0,"," neg = 0,"," len = 0,"," i = 0,"," key,"," num,"," keys = this.get(\"keys\"),"," setMin = this.get(\"setMin\"),"," setMax = this.get(\"setMax\");",""," for(key in keys)"," {"," if(keys.hasOwnProperty(key))"," {"," len = Math.max(len, keys[key].length);"," }"," }"," for(; i < len; ++i)"," {"," pos = 0;"," neg = 0;"," for(key in keys)"," {"," if(keys.hasOwnProperty(key))"," {"," num = keys[key][i];"," if(isNaN(num))"," {"," continue;"," }"," if(num >= 0)"," {"," pos += num;"," }"," else"," {"," neg += num;"," }"," }"," }"," if(pos > 0)"," {"," max = Math.max(max, pos);"," }"," else"," {"," max = Math.max(max, neg);"," }"," if(neg < 0)"," {"," min = Math.min(min, neg);"," }"," else"," {"," min = Math.min(min, pos);"," }"," }"," this._actualMaximum = max;"," this._actualMinimum = min;"," if(setMax)"," {"," max = this._setMaximum;"," }"," if(setMin)"," {"," min = this._setMinimum;"," }"," this._roundMinAndMax(min, max, setMin, setMax);"," }","};","","Y.StackedImpl = StackedImpl;","","/**"," * StackedAxisBase manages stacked numeric data for an axis."," *"," * @class StackedAxisBase"," * @constructor"," * @extends AxisBase"," * @uses StackedImpl"," * @param {Object} config (optional) Configuration parameters."," * @submodule axis-stacked-base"," */","Y.StackedAxisBase = Y.Base.create(\"stackedAxisBase\", Y.NumericAxisBase, [Y.StackedImpl]);","","","}, '3.9.1', {\"requires\": [\"axis-numeric-base\"]});"];
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"].lines = {"1":0,"21":0,"25":0,"27":0,"45":0,"57":0,"59":0,"61":0,"64":0,"66":0,"67":0,"68":0,"70":0,"72":0,"73":0,"75":0,"77":0,"79":0,"83":0,"87":0,"89":0,"93":0,"95":0,"97":0,"101":0,"104":0,"105":0,"106":0,"108":0,"110":0,"112":0,"114":0,"118":0,"130":0};
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"].functions = {"StackedImpl:21":0,"_updateMinAndMax:43":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"].coveredLines = 34;
|
||||
_yuitest_coverage["build/axis-stacked-base/axis-stacked-base.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 1);
|
||||
YUI.add('axis-stacked-base', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides core functionality for the handling of stacked numeric axis data for a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @submodule axis-stacked-base
|
||||
*/
|
||||
|
||||
/**
|
||||
* StackedImpl contains logic for managing stacked numeric data. StackedImpl is used by the following classes:
|
||||
* <ul>
|
||||
* <li>{{#crossLink "StackedAxisBase"}}{{/crossLink}}</li>
|
||||
* <li>{{#crossLink "StackedAxis"}}{{/crossLink}}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @submodule axis-stacked-base
|
||||
* @class StackedImpl
|
||||
* @constructor
|
||||
*/
|
||||
_yuitest_coverfunc("build/axis-stacked-base/axis-stacked-base.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 21);
|
||||
function StackedImpl()
|
||||
{
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 25);
|
||||
StackedImpl.NAME = "stackedImpl";
|
||||
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 27);
|
||||
StackedImpl.prototype = {
|
||||
/**
|
||||
* Type of data used in `Data`.
|
||||
*
|
||||
* @property _type
|
||||
* @readOnly
|
||||
* @private
|
||||
*/
|
||||
_type: "stacked",
|
||||
|
||||
/**
|
||||
* Calculates the maximum and minimum values for the `Data`.
|
||||
*
|
||||
* @method _updateMinAndMax
|
||||
* @private
|
||||
*/
|
||||
_updateMinAndMax: function()
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-stacked-base/axis-stacked-base.js", "_updateMinAndMax", 43);
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 45);
|
||||
var max = 0,
|
||||
min = 0,
|
||||
pos = 0,
|
||||
neg = 0,
|
||||
len = 0,
|
||||
i = 0,
|
||||
key,
|
||||
num,
|
||||
keys = this.get("keys"),
|
||||
setMin = this.get("setMin"),
|
||||
setMax = this.get("setMax");
|
||||
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 57);
|
||||
for(key in keys)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 59);
|
||||
if(keys.hasOwnProperty(key))
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 61);
|
||||
len = Math.max(len, keys[key].length);
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 64);
|
||||
for(; i < len; ++i)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 66);
|
||||
pos = 0;
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 67);
|
||||
neg = 0;
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 68);
|
||||
for(key in keys)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 70);
|
||||
if(keys.hasOwnProperty(key))
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 72);
|
||||
num = keys[key][i];
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 73);
|
||||
if(isNaN(num))
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 75);
|
||||
continue;
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 77);
|
||||
if(num >= 0)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 79);
|
||||
pos += num;
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 83);
|
||||
neg += num;
|
||||
}
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 87);
|
||||
if(pos > 0)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 89);
|
||||
max = Math.max(max, pos);
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 93);
|
||||
max = Math.max(max, neg);
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 95);
|
||||
if(neg < 0)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 97);
|
||||
min = Math.min(min, neg);
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 101);
|
||||
min = Math.min(min, pos);
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 104);
|
||||
this._actualMaximum = max;
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 105);
|
||||
this._actualMinimum = min;
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 106);
|
||||
if(setMax)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 108);
|
||||
max = this._setMaximum;
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 110);
|
||||
if(setMin)
|
||||
{
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 112);
|
||||
min = this._setMinimum;
|
||||
}
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 114);
|
||||
this._roundMinAndMax(min, max, setMin, setMax);
|
||||
}
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 118);
|
||||
Y.StackedImpl = StackedImpl;
|
||||
|
||||
/**
|
||||
* StackedAxisBase manages stacked numeric data for an axis.
|
||||
*
|
||||
* @class StackedAxisBase
|
||||
* @constructor
|
||||
* @extends AxisBase
|
||||
* @uses StackedImpl
|
||||
* @param {Object} config (optional) Configuration parameters.
|
||||
* @submodule axis-stacked-base
|
||||
*/
|
||||
_yuitest_coverline("build/axis-stacked-base/axis-stacked-base.js", 130);
|
||||
Y.StackedAxisBase = Y.Base.create("stackedAxisBase", Y.NumericAxisBase, [Y.StackedImpl]);
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["axis-numeric-base"]});
|
||||
@@ -1,60 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/axis-stacked/axis-stacked.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"].code=["YUI.add('axis-stacked', function (Y, NAME) {","","/**"," * Provides functionality for drawing a stacked numeric axis for use with a chart."," *"," * @module charts"," * @submodule axis-stacked"," */","/**"," * StackedAxis draws a stacked numeric axis for a chart."," *"," * @class StackedAxis"," * @constructor"," * @param {Object} config (optional) Configuration parameters."," * @extends NumericAxis"," * @uses StackedImpl"," * @submodule axis-stacked"," */","Y.StackedAxis = Y.Base.create(\"stackedAxis\", Y.NumericAxis, [Y.StackedImpl]);","","","","}, '3.9.1', {\"requires\": [\"axis-numeric\", \"axis-stacked-base\"]});"];
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"].lines = {"1":0,"19":0};
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"].functions = {"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"].coveredLines = 2;
|
||||
_yuitest_coverage["build/axis-stacked/axis-stacked.js"].coveredFunctions = 1;
|
||||
_yuitest_coverline("build/axis-stacked/axis-stacked.js", 1);
|
||||
YUI.add('axis-stacked', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides functionality for drawing a stacked numeric axis for use with a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @submodule axis-stacked
|
||||
*/
|
||||
/**
|
||||
* StackedAxis draws a stacked numeric axis for a chart.
|
||||
*
|
||||
* @class StackedAxis
|
||||
* @constructor
|
||||
* @param {Object} config (optional) Configuration parameters.
|
||||
* @extends NumericAxis
|
||||
* @uses StackedImpl
|
||||
* @submodule axis-stacked
|
||||
*/
|
||||
_yuitest_coverfunc("build/axis-stacked/axis-stacked.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/axis-stacked/axis-stacked.js", 19);
|
||||
Y.StackedAxis = Y.Base.create("stackedAxis", Y.NumericAxis, [Y.StackedImpl]);
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["axis-numeric", "axis-stacked-base"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,98 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/axis-time/axis-time.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"].code=["YUI.add('axis-time', function (Y, NAME) {","","/**"," * Provides functionality for drawing a time axis for use with a chart."," *"," * @module charts"," * @submodule axis-time"," */","/**"," * TimeAxis draws a time-based axis for a chart."," *"," * @class TimeAxis"," * @constructor"," * @extends Axis"," * @uses TimeImpl"," * @param {Object} config (optional) Configuration parameters."," * @submodule axis-time"," */","Y.TimeAxis = Y.Base.create(\"timeAxis\", Y.Axis, [Y.TimeImpl], {"," /**"," * Calculates and returns a value based on the number of labels and the index of"," * the current label."," *"," * @method _getLabelByIndex"," * @param {Number} i Index of the label."," * @param {Number} l Total number of labels."," * @param {String} direction The direction of the axis. (vertical or horizontal)"," * @return String"," * @private"," */"," _getLabelByIndex: function(i, l, direction)"," {"," var min = this.get(\"minimum\"),"," max = this.get(\"maximum\"),"," increm,"," label;"," l -= 1;"," increm = ((max - min)/l) * i;"," if(direction && direction === \"vertical\")"," {"," label = max - increm;"," }"," else"," {"," label = min + increm;"," }"," return label;"," }","});","","","","}, '3.9.1', {\"requires\": [\"axis\", \"axis-time-base\"]});"];
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"].lines = {"1":0,"19":0,"33":0,"37":0,"38":0,"39":0,"41":0,"45":0,"47":0};
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"].functions = {"_getLabelByIndex:31":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"].coveredLines = 9;
|
||||
_yuitest_coverage["build/axis-time/axis-time.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 1);
|
||||
YUI.add('axis-time', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides functionality for drawing a time axis for use with a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @submodule axis-time
|
||||
*/
|
||||
/**
|
||||
* TimeAxis draws a time-based axis for a chart.
|
||||
*
|
||||
* @class TimeAxis
|
||||
* @constructor
|
||||
* @extends Axis
|
||||
* @uses TimeImpl
|
||||
* @param {Object} config (optional) Configuration parameters.
|
||||
* @submodule axis-time
|
||||
*/
|
||||
_yuitest_coverfunc("build/axis-time/axis-time.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 19);
|
||||
Y.TimeAxis = Y.Base.create("timeAxis", Y.Axis, [Y.TimeImpl], {
|
||||
/**
|
||||
* Calculates and returns a value based on the number of labels and the index of
|
||||
* the current label.
|
||||
*
|
||||
* @method _getLabelByIndex
|
||||
* @param {Number} i Index of the label.
|
||||
* @param {Number} l Total number of labels.
|
||||
* @param {String} direction The direction of the axis. (vertical or horizontal)
|
||||
* @return String
|
||||
* @private
|
||||
*/
|
||||
_getLabelByIndex: function(i, l, direction)
|
||||
{
|
||||
_yuitest_coverfunc("build/axis-time/axis-time.js", "_getLabelByIndex", 31);
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 33);
|
||||
var min = this.get("minimum"),
|
||||
max = this.get("maximum"),
|
||||
increm,
|
||||
label;
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 37);
|
||||
l -= 1;
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 38);
|
||||
increm = ((max - min)/l) * i;
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 39);
|
||||
if(direction && direction === "vertical")
|
||||
{
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 41);
|
||||
label = max - increm;
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 45);
|
||||
label = min + increm;
|
||||
}
|
||||
_yuitest_coverline("build/axis-time/axis-time.js", 47);
|
||||
return label;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["axis", "axis-time-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,76 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/base-pluginhost/base-pluginhost.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"].code=["YUI.add('base-pluginhost', function (Y, NAME) {",""," /**"," * The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with"," * Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods."," *"," * @module base"," * @submodule base-pluginhost"," * @for Base"," */",""," var Base = Y.Base,"," PluginHost = Y.Plugin.Host;",""," Y.mix(Base, PluginHost, false, null, 1);",""," /**"," * Alias for <a href=\"Plugin.Host.html#method_Plugin.Host.plug\">Plugin.Host.plug</a>. See aliased"," * method for argument and return value details."," *"," * @method plug"," * @static"," */"," Base.plug = PluginHost.plug;",""," /**"," * Alias for <a href=\"Plugin.Host.html#method_Plugin.Host.unplug\">Plugin.Host.unplug</a>. See the"," * aliased method for argument and return value details."," *"," * @method unplug"," * @static"," */"," Base.unplug = PluginHost.unplug;","","","}, '3.9.1', {\"requires\": [\"base-base\", \"pluginhost\"]});"];
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"].lines = {"1":0,"12":0,"15":0,"24":0,"33":0};
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"].functions = {"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"].coveredLines = 5;
|
||||
_yuitest_coverage["build/base-pluginhost/base-pluginhost.js"].coveredFunctions = 1;
|
||||
_yuitest_coverline("build/base-pluginhost/base-pluginhost.js", 1);
|
||||
YUI.add('base-pluginhost', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with
|
||||
* Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods.
|
||||
*
|
||||
* @module base
|
||||
* @submodule base-pluginhost
|
||||
* @for Base
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/base-pluginhost/base-pluginhost.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/base-pluginhost/base-pluginhost.js", 12);
|
||||
var Base = Y.Base,
|
||||
PluginHost = Y.Plugin.Host;
|
||||
|
||||
_yuitest_coverline("build/base-pluginhost/base-pluginhost.js", 15);
|
||||
Y.mix(Base, PluginHost, false, null, 1);
|
||||
|
||||
/**
|
||||
* Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased
|
||||
* method for argument and return value details.
|
||||
*
|
||||
* @method plug
|
||||
* @static
|
||||
*/
|
||||
_yuitest_coverline("build/base-pluginhost/base-pluginhost.js", 24);
|
||||
Base.plug = PluginHost.plug;
|
||||
|
||||
/**
|
||||
* Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the
|
||||
* aliased method for argument and return value details.
|
||||
*
|
||||
* @method unplug
|
||||
* @static
|
||||
*/
|
||||
_yuitest_coverline("build/base-pluginhost/base-pluginhost.js", 33);
|
||||
Base.unplug = PluginHost.unplug;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["base-base", "pluginhost"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,199 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/button-plugin/button-plugin.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"].code=["YUI.add('button-plugin', function (Y, NAME) {","","/**","* A Button Plugin","*","* @module button-plugin","* @since 3.5.0","*/","","/**","* @class Button","* @param config {Object} Configuration object","* @extends ButtonCore","* @constructor","* @namespace Plugin","*/","function ButtonPlugin() {"," ButtonPlugin.superclass.constructor.apply(this, arguments);","}","","Y.extend(ButtonPlugin, Y.ButtonCore, {"," "," /**"," * @method _afterNodeGet"," * @param name {string}"," * @private"," */"," _afterNodeGet: function (name) {"," // TODO: point to method (_uiSetLabel, etc) instead of getter/setter"," var ATTRS = this.constructor.ATTRS,"," fn = ATTRS[name] && ATTRS[name].getter && this[ATTRS[name].getter];"," "," if (fn) {"," return new Y.Do.AlterReturn('get ' + name, fn.call(this));"," }"," },",""," /**"," * @method _afterNodeSet"," * @param name {String}"," * @param val {String}"," * @private"," */"," _afterNodeSet: function (name, val) {"," var ATTRS = this.constructor.ATTRS,"," fn = ATTRS[name] && ATTRS[name].setter && this[ATTRS[name].setter];"," "," if (fn) {"," fn.call(this, val);"," }"," },",""," /**"," * @method _initNode"," * @param config {Object}"," * @private"," */"," _initNode: function(config) {"," var node = config.host;"," this._host = node;"," "," Y.Do.after(this._afterNodeGet, node, 'get', this);"," Y.Do.after(this._afterNodeSet, node, 'set', this);"," },",""," /**"," * @method destroy"," * @private"," */"," destroy: function(){"," // Nothing to do, but things are happier with it here"," }"," ","}, {"," "," /**"," * Attribute configuration."," *"," * @property ATTRS"," * @type {Object}"," * @private"," * @static"," */"," ATTRS: Y.merge(Y.ButtonCore.ATTRS),"," "," /**"," * Name of this component."," *"," * @property NAME"," * @type String"," * @static"," */"," NAME: 'buttonPlugin',"," "," /**"," * Namespace of this component."," *"," * @property NS"," * @type String"," * @static"," */"," NS: 'button'"," ","});","","/**","* @method createNode","* @description A factory that plugs a Y.Node instance with Y.Plugin.Button","* @param node {Object}","* @param config {Object}","* @return {Object} A plugged Y.Node instance","* @public","*/","ButtonPlugin.createNode = function(node, config) {"," var template;",""," if (node && !config) {"," if (! (node.nodeType || node.getDOMNode || typeof node === 'string')) {"," config = node;"," node = config.srcNode;"," }"," }",""," config = config || {};"," template = config.template || Y.Plugin.Button.prototype.TEMPLATE;"," node = node || config.srcNode || Y.DOM.create(template);",""," return Y.one(node).plug(Y.Plugin.Button, config);","};","","Y.namespace('Plugin').Button = ButtonPlugin;","","","}, '3.9.1', {\"requires\": [\"button-core\", \"cssbutton\", \"node-pluginhost\"]});"];
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"].lines = {"1":0,"17":0,"18":0,"21":0,"30":0,"33":0,"34":0,"45":0,"48":0,"49":0,"59":0,"60":0,"62":0,"63":0,"114":0,"115":0,"117":0,"118":0,"119":0,"120":0,"124":0,"125":0,"126":0,"128":0,"131":0};
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"].functions = {"ButtonPlugin:17":0,"_afterNodeGet:28":0,"_afterNodeSet:44":0,"_initNode:58":0,"createNode:114":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"].coveredLines = 25;
|
||||
_yuitest_coverage["build/button-plugin/button-plugin.js"].coveredFunctions = 6;
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 1);
|
||||
YUI.add('button-plugin', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* A Button Plugin
|
||||
*
|
||||
* @module button-plugin
|
||||
* @since 3.5.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @class Button
|
||||
* @param config {Object} Configuration object
|
||||
* @extends ButtonCore
|
||||
* @constructor
|
||||
* @namespace Plugin
|
||||
*/
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 17);
|
||||
function ButtonPlugin() {
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "ButtonPlugin", 17);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 18);
|
||||
ButtonPlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 21);
|
||||
Y.extend(ButtonPlugin, Y.ButtonCore, {
|
||||
|
||||
/**
|
||||
* @method _afterNodeGet
|
||||
* @param name {string}
|
||||
* @private
|
||||
*/
|
||||
_afterNodeGet: function (name) {
|
||||
// TODO: point to method (_uiSetLabel, etc) instead of getter/setter
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "_afterNodeGet", 28);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 30);
|
||||
var ATTRS = this.constructor.ATTRS,
|
||||
fn = ATTRS[name] && ATTRS[name].getter && this[ATTRS[name].getter];
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 33);
|
||||
if (fn) {
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 34);
|
||||
return new Y.Do.AlterReturn('get ' + name, fn.call(this));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method _afterNodeSet
|
||||
* @param name {String}
|
||||
* @param val {String}
|
||||
* @private
|
||||
*/
|
||||
_afterNodeSet: function (name, val) {
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "_afterNodeSet", 44);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 45);
|
||||
var ATTRS = this.constructor.ATTRS,
|
||||
fn = ATTRS[name] && ATTRS[name].setter && this[ATTRS[name].setter];
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 48);
|
||||
if (fn) {
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 49);
|
||||
fn.call(this, val);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method _initNode
|
||||
* @param config {Object}
|
||||
* @private
|
||||
*/
|
||||
_initNode: function(config) {
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "_initNode", 58);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 59);
|
||||
var node = config.host;
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 60);
|
||||
this._host = node;
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 62);
|
||||
Y.Do.after(this._afterNodeGet, node, 'get', this);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 63);
|
||||
Y.Do.after(this._afterNodeSet, node, 'set', this);
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroy
|
||||
* @private
|
||||
*/
|
||||
destroy: function(){
|
||||
// Nothing to do, but things are happier with it here
|
||||
}
|
||||
|
||||
}, {
|
||||
|
||||
/**
|
||||
* Attribute configuration.
|
||||
*
|
||||
* @property ATTRS
|
||||
* @type {Object}
|
||||
* @private
|
||||
* @static
|
||||
*/
|
||||
ATTRS: Y.merge(Y.ButtonCore.ATTRS),
|
||||
|
||||
/**
|
||||
* Name of this component.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
*/
|
||||
NAME: 'buttonPlugin',
|
||||
|
||||
/**
|
||||
* Namespace of this component.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
*/
|
||||
NS: 'button'
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* @method createNode
|
||||
* @description A factory that plugs a Y.Node instance with Y.Plugin.Button
|
||||
* @param node {Object}
|
||||
* @param config {Object}
|
||||
* @return {Object} A plugged Y.Node instance
|
||||
* @public
|
||||
*/
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 114);
|
||||
ButtonPlugin.createNode = function(node, config) {
|
||||
_yuitest_coverfunc("build/button-plugin/button-plugin.js", "createNode", 114);
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 115);
|
||||
var template;
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 117);
|
||||
if (node && !config) {
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 118);
|
||||
if (! (node.nodeType || node.getDOMNode || typeof node === 'string')) {
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 119);
|
||||
config = node;
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 120);
|
||||
node = config.srcNode;
|
||||
}
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 124);
|
||||
config = config || {};
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 125);
|
||||
template = config.template || Y.Plugin.Button.prototype.TEMPLATE;
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 126);
|
||||
node = node || config.srcNode || Y.DOM.create(template);
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 128);
|
||||
return Y.one(node).plug(Y.Plugin.Button, config);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/button-plugin/button-plugin.js", 131);
|
||||
Y.namespace('Plugin').Button = ButtonPlugin;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["button-core", "cssbutton", "node-pluginhost"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,96 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/cache-plugin/cache-plugin.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"].code=["YUI.add('cache-plugin', function (Y, NAME) {","","/**"," * Provides support to use Cache as a Plugin to a Base-based class."," *"," * @module cache"," * @submodule cache-plugin"," */","","/**"," * Plugin.Cache adds pluginizability to Cache."," * @class Plugin.Cache"," * @extends Cache"," * @uses Plugin.Base"," */","function CachePlugin(config) {"," var cache = config && config.cache ? config.cache : Y.Cache,"," tmpclass = Y.Base.create(\"dataSourceCache\", cache, [Y.Plugin.Base]),"," tmpinstance = new tmpclass(config);"," tmpclass.NS = \"tmpClass\";"," return tmpinstance;","}","","Y.mix(CachePlugin, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"cache\""," */"," NS: \"cache\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceCache\""," */"," NAME: \"cachePlugin\"","});","","","Y.namespace(\"Plugin\").Cache = CachePlugin;","","","}, '3.9.1', {\"requires\": [\"plugin\", \"cache-base\"]});"];
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"].lines = {"1":0,"16":0,"17":0,"20":0,"21":0,"24":0,"50":0};
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"].functions = {"CachePlugin:16":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"].coveredLines = 7;
|
||||
_yuitest_coverage["build/cache-plugin/cache-plugin.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 1);
|
||||
YUI.add('cache-plugin', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides support to use Cache as a Plugin to a Base-based class.
|
||||
*
|
||||
* @module cache
|
||||
* @submodule cache-plugin
|
||||
*/
|
||||
|
||||
/**
|
||||
* Plugin.Cache adds pluginizability to Cache.
|
||||
* @class Plugin.Cache
|
||||
* @extends Cache
|
||||
* @uses Plugin.Base
|
||||
*/
|
||||
_yuitest_coverfunc("build/cache-plugin/cache-plugin.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 16);
|
||||
function CachePlugin(config) {
|
||||
_yuitest_coverfunc("build/cache-plugin/cache-plugin.js", "CachePlugin", 16);
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 17);
|
||||
var cache = config && config.cache ? config.cache : Y.Cache,
|
||||
tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]),
|
||||
tmpinstance = new tmpclass(config);
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 20);
|
||||
tmpclass.NS = "tmpClass";
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 21);
|
||||
return tmpinstance;
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 24);
|
||||
Y.mix(CachePlugin, {
|
||||
/**
|
||||
* The namespace for the plugin. This will be the property on the host which
|
||||
* references the plugin instance.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "cache"
|
||||
*/
|
||||
NS: "cache",
|
||||
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceCache"
|
||||
*/
|
||||
NAME: "cachePlugin"
|
||||
});
|
||||
|
||||
|
||||
_yuitest_coverline("build/cache-plugin/cache-plugin.js", 50);
|
||||
Y.namespace("Plugin").Cache = CachePlugin;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["plugin", "cache-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,66 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/charts/charts.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/charts/charts.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/charts/charts.js"].code=["YUI.add('charts', function (Y, NAME) {","","/**"," * The Chart class is the basic application used to create a chart."," *"," * @module charts"," * @class Chart"," * @constructor"," */","function Chart(cfg)","{"," if(cfg.type != \"pie\")"," {"," return new Y.CartesianChart(cfg);"," }"," else"," {"," return new Y.PieChart(cfg);"," }","}","Y.Chart = Chart;","","","}, '3.9.1', {\"requires\": [\"charts-base\"]});"];
|
||||
_yuitest_coverage["build/charts/charts.js"].lines = {"1":0,"10":0,"12":0,"14":0,"18":0,"21":0};
|
||||
_yuitest_coverage["build/charts/charts.js"].functions = {"Chart:10":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/charts/charts.js"].coveredLines = 6;
|
||||
_yuitest_coverage["build/charts/charts.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/charts/charts.js", 1);
|
||||
YUI.add('charts', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* The Chart class is the basic application used to create a chart.
|
||||
*
|
||||
* @module charts
|
||||
* @class Chart
|
||||
* @constructor
|
||||
*/
|
||||
_yuitest_coverfunc("build/charts/charts.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/charts/charts.js", 10);
|
||||
function Chart(cfg)
|
||||
{
|
||||
_yuitest_coverfunc("build/charts/charts.js", "Chart", 10);
|
||||
_yuitest_coverline("build/charts/charts.js", 12);
|
||||
if(cfg.type != "pie")
|
||||
{
|
||||
_yuitest_coverline("build/charts/charts.js", 14);
|
||||
return new Y.CartesianChart(cfg);
|
||||
}
|
||||
else
|
||||
{
|
||||
_yuitest_coverline("build/charts/charts.js", 18);
|
||||
return new Y.PieChart(cfg);
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/charts/charts.js", 21);
|
||||
Y.Chart = Chart;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["charts-base"]});
|
||||
@@ -1,133 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/classnamemanager/classnamemanager.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"].code=["YUI.add('classnamemanager', function (Y, NAME) {","","/**","* Contains a singleton (ClassNameManager) that enables easy creation and caching of ","* prefixed class names.","* @module classnamemanager","*/","","/**"," * A singleton class providing: "," * "," * <ul>"," * <li>Easy creation of prefixed class names</li>"," * <li>Caching of previously created class names for improved performance.</li>"," * </ul>"," * "," * @class ClassNameManager"," * @static "," */","","// String constants","var CLASS_NAME_PREFIX = 'classNamePrefix',"," CLASS_NAME_DELIMITER = 'classNameDelimiter',"," CONFIG = Y.config;","","// Global config","","/**"," * Configuration property indicating the prefix for all CSS class names in this YUI instance."," *"," * @property classNamePrefix"," * @type {String}"," * @default \"yui\""," * @static"," */","CONFIG[CLASS_NAME_PREFIX] = CONFIG[CLASS_NAME_PREFIX] || 'yui3';","","/**"," * Configuration property indicating the delimiter used to compose all CSS class names in"," * this YUI instance."," *"," * @property classNameDelimiter"," * @type {String}"," * @default \"-\""," * @static"," */","CONFIG[CLASS_NAME_DELIMITER] = CONFIG[CLASS_NAME_DELIMITER] || '-';","","Y.ClassNameManager = function () {",""," var sPrefix = CONFIG[CLASS_NAME_PREFIX],"," sDelimiter = CONFIG[CLASS_NAME_DELIMITER];",""," return {",""," /**"," * Returns a class name prefixed with the the value of the "," * <code>Y.config.classNamePrefix</code> attribute + the provided strings."," * Uses the <code>Y.config.classNameDelimiter</code> attribute to delimit the "," * provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar"," *"," * @method getClassName"," * @param {String}+ classnameSection one or more classname sections to be joined"," * @param {Boolean} skipPrefix If set to true, the classname will not be prefixed with the default Y.config.classNameDelimiter value. "," */"," getClassName: Y.cached(function () {",""," var args = Y.Array(arguments);",""," if (args[args.length-1] !== true) {"," args.unshift(sPrefix);"," } else {"," args.pop();"," }",""," return args.join(sDelimiter);"," })",""," };","","}();","","","}, '3.9.1', {\"requires\": [\"yui-base\"]});"];
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"].lines = {"1":0,"22":0,"36":0,"47":0,"49":0,"51":0,"54":0,"68":0,"70":0,"71":0,"73":0,"76":0};
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"].functions = {"(anonymous 2):66":0,"ClassNameManager:49":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"].coveredLines = 12;
|
||||
_yuitest_coverage["build/classnamemanager/classnamemanager.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 1);
|
||||
YUI.add('classnamemanager', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Contains a singleton (ClassNameManager) that enables easy creation and caching of
|
||||
* prefixed class names.
|
||||
* @module classnamemanager
|
||||
*/
|
||||
|
||||
/**
|
||||
* A singleton class providing:
|
||||
*
|
||||
* <ul>
|
||||
* <li>Easy creation of prefixed class names</li>
|
||||
* <li>Caching of previously created class names for improved performance.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @class ClassNameManager
|
||||
* @static
|
||||
*/
|
||||
|
||||
// String constants
|
||||
_yuitest_coverfunc("build/classnamemanager/classnamemanager.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 22);
|
||||
var CLASS_NAME_PREFIX = 'classNamePrefix',
|
||||
CLASS_NAME_DELIMITER = 'classNameDelimiter',
|
||||
CONFIG = Y.config;
|
||||
|
||||
// Global config
|
||||
|
||||
/**
|
||||
* Configuration property indicating the prefix for all CSS class names in this YUI instance.
|
||||
*
|
||||
* @property classNamePrefix
|
||||
* @type {String}
|
||||
* @default "yui"
|
||||
* @static
|
||||
*/
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 36);
|
||||
CONFIG[CLASS_NAME_PREFIX] = CONFIG[CLASS_NAME_PREFIX] || 'yui3';
|
||||
|
||||
/**
|
||||
* Configuration property indicating the delimiter used to compose all CSS class names in
|
||||
* this YUI instance.
|
||||
*
|
||||
* @property classNameDelimiter
|
||||
* @type {String}
|
||||
* @default "-"
|
||||
* @static
|
||||
*/
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 47);
|
||||
CONFIG[CLASS_NAME_DELIMITER] = CONFIG[CLASS_NAME_DELIMITER] || '-';
|
||||
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 49);
|
||||
Y.ClassNameManager = function () {
|
||||
|
||||
_yuitest_coverfunc("build/classnamemanager/classnamemanager.js", "ClassNameManager", 49);
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 51);
|
||||
var sPrefix = CONFIG[CLASS_NAME_PREFIX],
|
||||
sDelimiter = CONFIG[CLASS_NAME_DELIMITER];
|
||||
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 54);
|
||||
return {
|
||||
|
||||
/**
|
||||
* Returns a class name prefixed with the the value of the
|
||||
* <code>Y.config.classNamePrefix</code> attribute + the provided strings.
|
||||
* Uses the <code>Y.config.classNameDelimiter</code> attribute to delimit the
|
||||
* provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar
|
||||
*
|
||||
* @method getClassName
|
||||
* @param {String}+ classnameSection one or more classname sections to be joined
|
||||
* @param {Boolean} skipPrefix If set to true, the classname will not be prefixed with the default Y.config.classNameDelimiter value.
|
||||
*/
|
||||
getClassName: Y.cached(function () {
|
||||
|
||||
_yuitest_coverfunc("build/classnamemanager/classnamemanager.js", "(anonymous 2)", 66);
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 68);
|
||||
var args = Y.Array(arguments);
|
||||
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 70);
|
||||
if (args[args.length-1] !== true) {
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 71);
|
||||
args.unshift(sPrefix);
|
||||
} else {
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 73);
|
||||
args.pop();
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/classnamemanager/classnamemanager.js", 76);
|
||||
return args.join(sDelimiter);
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["yui-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,266 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/color-hsv/color-hsv.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"].code=["YUI.add('color-hsv', function (Y, NAME) {","","/**","Color provides static methods for color conversion hsv values.",""," Y.Color.toHSV('f00'); // hsv(0, 100%, 100%)",""," Y.Color.toHSVA('rgb(255, 255, 0'); // hsva(60, 100%, 100%, 1)","","","@module color","@submodule color-hsv","@class HSV","@namespace Color","@since 3.8.0","**/","Color = {",""," /**"," @static"," @property REGEX_HSV"," @type RegExp"," @default /hsva?\\(([.\\d]*), ?([.\\d]*)%, ?([.\\d]*)%,? ?([.\\d]*)?\\)/"," @since 3.8.0"," **/"," REGEX_HSV: /hsva?\\(([.\\d]*), ?([.\\d]*)%, ?([.\\d]*)%,? ?([.\\d]*)?\\)/,",""," /**"," @static"," @property STR_HSV"," @type String"," @default hsv({*}, {*}%, {*}%)"," @since 3.8.0"," **/"," STR_HSV: 'hsv({*}, {*}%, {*}%)',",""," /**"," @static"," @property STR_HSVA"," @type String"," @default hsva({*}, {*}%, {*}%, {*})"," @since 3.8.0"," **/"," STR_HSVA: 'hsva({*}, {*}%, {*}%, {*})',",""," /**"," Converts provided color value to an HSV string."," @public"," @method toHSV"," @param {String} str"," @return {String}"," @since 3.8.0"," **/"," toHSV: function (str) {"," var clr = Y.Color._convertTo(str, 'hsv');"," return clr.toLowerCase();"," },",""," /**"," Converts provided color value to an HSVA string."," @public"," @method toHSVA"," @param {String} str"," @return {String}"," @since 3.8.0"," **/"," toHSVA: function (str) {"," var clr = Y.Color._convertTo(str, 'hsva');"," return clr.toLowerCase();"," },",""," /**"," Parses the RGB string into h, s, v values. Will return an Array"," of values or an HSV string."," @protected"," @method _rgbToHsv"," @param {String} str"," @param {Boolean} [toArray]"," @return {String|Array}"," @since 3.8.0"," **/"," _rgbToHsv: function (str, toArray) {"," var h, s, v,"," rgb = Y.Color.REGEX_RGB.exec(str),"," r = rgb[1] / 255,"," g = rgb[2] / 255,"," b = rgb[3] / 255,"," max = Math.max(r, g, b),"," min = Math.min(r, g, b),"," delta = max - min;",""," if (max === min) {"," h = 0;"," } else if (max === r) {"," h = 60 * (g - b) / delta;"," } else if (max === g) {"," h = (60 * (b - r) / delta) + 120;"," } else { // max === b"," h = (60 * (r - g) / delta) + 240;"," }",""," s = (max === 0) ? 0 : 1 - (min / max);",""," // ensure h is between 0 and 360"," while (h < 0) {"," h += 360;"," }"," h %= 360;"," h = Math.round(h);",""," // saturation is percentage"," s = Math.round(s * 100);",""," // value is percentage"," v = Math.round(max * 100);",""," if (toArray) {"," return [h, s, v];"," }",""," return Y.Color.fromArray([h, s, v], Y.Color.TYPES.HSV);"," },",""," /**"," Parses the HSV string into r, b, g values. Will return an Array"," of values or an RGB string."," @protected"," @method _hsvToRgb"," @param {String} str"," @param {Boolean} [toArray]"," @return {String|Array}"," @since 3.8.0"," **/"," _hsvToRgb: function (str, toArray) {"," var hsv = Y.Color.REGEX_HSV.exec(str),"," h = parseInt(hsv[1], 10),"," s = parseInt(hsv[2], 10) / 100, // 0 - 1"," v = parseInt(hsv[3], 10) / 100, // 0 - 1"," r,"," g,"," b,"," i = Math.floor(h / 60) % 6,"," f = (h / 60) - i,"," p = v * (1 - s),"," q = v * (1 - (s * f)),"," t = v * (1 - (s * (1 - f)));",""," if (s === 0) {"," r = v;"," g = v;"," b = v;"," } else {"," switch (i) {"," case 0: r = v; g = t; b = p; break;"," case 1: r = q; g = v; b = p; break;"," case 2: r = p; g = v; b = t; break;"," case 3: r = p; g = q; b = v; break;"," case 4: r = t; g = p; b = v; break;"," case 5: r = v; g = p; b = q; break;"," }"," }",""," r = Math.min(255, Math.round(r * 256));"," g = Math.min(255, Math.round(g * 256));"," b = Math.min(255, Math.round(b * 256));",""," if (toArray) {"," return [r, g, b];"," }",""," return Y.Color.fromArray([r, g, b], Y.Color.TYPES.RGB);"," }","","};","","Y.Color = Y.mix(Color, Y.Color);","","Y.Color.TYPES = Y.mix(Y.Color.TYPES, {'HSV':'hsv', 'HSVA':'hsva'});","Y.Color.CONVERTS = Y.mix(Y.Color.CONVERTS, {'hsv': 'toHSV', 'hsva': 'toHSVA'});","","","}, '3.9.1', {\"requires\": [\"color-base\"]});"];
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"].lines = {"1":0,"17":0,"55":0,"56":0,"68":0,"69":0,"83":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"99":0,"102":0,"105":0,"106":0,"108":0,"109":0,"112":0,"115":0,"117":0,"118":0,"121":0,"135":0,"148":0,"149":0,"150":0,"151":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"163":0,"164":0,"165":0,"167":0,"168":0,"171":0,"176":0,"178":0,"179":0};
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"].functions = {"toHSV:54":0,"toHSVA:67":0,"_rgbToHsv:82":0,"_hsvToRgb:134":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"].coveredLines = 45;
|
||||
_yuitest_coverage["build/color-hsv/color-hsv.js"].coveredFunctions = 5;
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 1);
|
||||
YUI.add('color-hsv', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
Color provides static methods for color conversion hsv values.
|
||||
|
||||
Y.Color.toHSV('f00'); // hsv(0, 100%, 100%)
|
||||
|
||||
Y.Color.toHSVA('rgb(255, 255, 0'); // hsva(60, 100%, 100%, 1)
|
||||
|
||||
|
||||
@module color
|
||||
@submodule color-hsv
|
||||
@class HSV
|
||||
@namespace Color
|
||||
@since 3.8.0
|
||||
**/
|
||||
_yuitest_coverfunc("build/color-hsv/color-hsv.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 17);
|
||||
Color = {
|
||||
|
||||
/**
|
||||
@static
|
||||
@property REGEX_HSV
|
||||
@type RegExp
|
||||
@default /hsva?\(([.\d]*), ?([.\d]*)%, ?([.\d]*)%,? ?([.\d]*)?\)/
|
||||
@since 3.8.0
|
||||
**/
|
||||
REGEX_HSV: /hsva?\(([.\d]*), ?([.\d]*)%, ?([.\d]*)%,? ?([.\d]*)?\)/,
|
||||
|
||||
/**
|
||||
@static
|
||||
@property STR_HSV
|
||||
@type String
|
||||
@default hsv({*}, {*}%, {*}%)
|
||||
@since 3.8.0
|
||||
**/
|
||||
STR_HSV: 'hsv({*}, {*}%, {*}%)',
|
||||
|
||||
/**
|
||||
@static
|
||||
@property STR_HSVA
|
||||
@type String
|
||||
@default hsva({*}, {*}%, {*}%, {*})
|
||||
@since 3.8.0
|
||||
**/
|
||||
STR_HSVA: 'hsva({*}, {*}%, {*}%, {*})',
|
||||
|
||||
/**
|
||||
Converts provided color value to an HSV string.
|
||||
@public
|
||||
@method toHSV
|
||||
@param {String} str
|
||||
@return {String}
|
||||
@since 3.8.0
|
||||
**/
|
||||
toHSV: function (str) {
|
||||
_yuitest_coverfunc("build/color-hsv/color-hsv.js", "toHSV", 54);
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 55);
|
||||
var clr = Y.Color._convertTo(str, 'hsv');
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 56);
|
||||
return clr.toLowerCase();
|
||||
},
|
||||
|
||||
/**
|
||||
Converts provided color value to an HSVA string.
|
||||
@public
|
||||
@method toHSVA
|
||||
@param {String} str
|
||||
@return {String}
|
||||
@since 3.8.0
|
||||
**/
|
||||
toHSVA: function (str) {
|
||||
_yuitest_coverfunc("build/color-hsv/color-hsv.js", "toHSVA", 67);
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 68);
|
||||
var clr = Y.Color._convertTo(str, 'hsva');
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 69);
|
||||
return clr.toLowerCase();
|
||||
},
|
||||
|
||||
/**
|
||||
Parses the RGB string into h, s, v values. Will return an Array
|
||||
of values or an HSV string.
|
||||
@protected
|
||||
@method _rgbToHsv
|
||||
@param {String} str
|
||||
@param {Boolean} [toArray]
|
||||
@return {String|Array}
|
||||
@since 3.8.0
|
||||
**/
|
||||
_rgbToHsv: function (str, toArray) {
|
||||
_yuitest_coverfunc("build/color-hsv/color-hsv.js", "_rgbToHsv", 82);
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 83);
|
||||
var h, s, v,
|
||||
rgb = Y.Color.REGEX_RGB.exec(str),
|
||||
r = rgb[1] / 255,
|
||||
g = rgb[2] / 255,
|
||||
b = rgb[3] / 255,
|
||||
max = Math.max(r, g, b),
|
||||
min = Math.min(r, g, b),
|
||||
delta = max - min;
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 92);
|
||||
if (max === min) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 93);
|
||||
h = 0;
|
||||
} else {_yuitest_coverline("build/color-hsv/color-hsv.js", 94);
|
||||
if (max === r) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 95);
|
||||
h = 60 * (g - b) / delta;
|
||||
} else {_yuitest_coverline("build/color-hsv/color-hsv.js", 96);
|
||||
if (max === g) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 97);
|
||||
h = (60 * (b - r) / delta) + 120;
|
||||
} else { // max === b
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 99);
|
||||
h = (60 * (r - g) / delta) + 240;
|
||||
}}}
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 102);
|
||||
s = (max === 0) ? 0 : 1 - (min / max);
|
||||
|
||||
// ensure h is between 0 and 360
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 105);
|
||||
while (h < 0) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 106);
|
||||
h += 360;
|
||||
}
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 108);
|
||||
h %= 360;
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 109);
|
||||
h = Math.round(h);
|
||||
|
||||
// saturation is percentage
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 112);
|
||||
s = Math.round(s * 100);
|
||||
|
||||
// value is percentage
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 115);
|
||||
v = Math.round(max * 100);
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 117);
|
||||
if (toArray) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 118);
|
||||
return [h, s, v];
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 121);
|
||||
return Y.Color.fromArray([h, s, v], Y.Color.TYPES.HSV);
|
||||
},
|
||||
|
||||
/**
|
||||
Parses the HSV string into r, b, g values. Will return an Array
|
||||
of values or an RGB string.
|
||||
@protected
|
||||
@method _hsvToRgb
|
||||
@param {String} str
|
||||
@param {Boolean} [toArray]
|
||||
@return {String|Array}
|
||||
@since 3.8.0
|
||||
**/
|
||||
_hsvToRgb: function (str, toArray) {
|
||||
_yuitest_coverfunc("build/color-hsv/color-hsv.js", "_hsvToRgb", 134);
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 135);
|
||||
var hsv = Y.Color.REGEX_HSV.exec(str),
|
||||
h = parseInt(hsv[1], 10),
|
||||
s = parseInt(hsv[2], 10) / 100, // 0 - 1
|
||||
v = parseInt(hsv[3], 10) / 100, // 0 - 1
|
||||
r,
|
||||
g,
|
||||
b,
|
||||
i = Math.floor(h / 60) % 6,
|
||||
f = (h / 60) - i,
|
||||
p = v * (1 - s),
|
||||
q = v * (1 - (s * f)),
|
||||
t = v * (1 - (s * (1 - f)));
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 148);
|
||||
if (s === 0) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 149);
|
||||
r = v;
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 150);
|
||||
g = v;
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 151);
|
||||
b = v;
|
||||
} else {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 153);
|
||||
switch (i) {
|
||||
case 0: _yuitest_coverline("build/color-hsv/color-hsv.js", 154);
|
||||
r = v; g = t; b = p; break;
|
||||
case 1: _yuitest_coverline("build/color-hsv/color-hsv.js", 155);
|
||||
r = q; g = v; b = p; break;
|
||||
case 2: _yuitest_coverline("build/color-hsv/color-hsv.js", 156);
|
||||
r = p; g = v; b = t; break;
|
||||
case 3: _yuitest_coverline("build/color-hsv/color-hsv.js", 157);
|
||||
r = p; g = q; b = v; break;
|
||||
case 4: _yuitest_coverline("build/color-hsv/color-hsv.js", 158);
|
||||
r = t; g = p; b = v; break;
|
||||
case 5: _yuitest_coverline("build/color-hsv/color-hsv.js", 159);
|
||||
r = v; g = p; b = q; break;
|
||||
}
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 163);
|
||||
r = Math.min(255, Math.round(r * 256));
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 164);
|
||||
g = Math.min(255, Math.round(g * 256));
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 165);
|
||||
b = Math.min(255, Math.round(b * 256));
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 167);
|
||||
if (toArray) {
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 168);
|
||||
return [r, g, b];
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 171);
|
||||
return Y.Color.fromArray([r, g, b], Y.Color.TYPES.RGB);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 176);
|
||||
Y.Color = Y.mix(Color, Y.Color);
|
||||
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 178);
|
||||
Y.Color.TYPES = Y.mix(Y.Color.TYPES, {'HSV':'hsv', 'HSVA':'hsva'});
|
||||
_yuitest_coverline("build/color-hsv/color-hsv.js", 179);
|
||||
Y.Color.CONVERTS = Y.mix(Y.Color.CONVERTS, {'hsv': 'toHSV', 'hsva': 'toHSVA'});
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["color-base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,147 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/createlink-base/createlink-base.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"].code=["YUI.add('createlink-base', function (Y, NAME) {","",""," /**"," * Adds prompt style link creation. Adds an override for the"," * <a href=\"Plugin.ExecCommand.html#method_COMMANDS.createlink\">createlink execCommand</a>."," * @class Plugin.CreateLinkBase"," * @static"," * @submodule createlink-base"," * @module editor"," */",""," var CreateLinkBase = {};"," /**"," * Strings used by the plugin"," * @property STRINGS"," * @static"," */"," CreateLinkBase.STRINGS = {"," /**"," * String used for the Prompt"," * @property PROMPT"," * @static"," */"," PROMPT: 'Please enter the URL for the link to point to:',"," /**"," * String used as the default value of the Prompt"," * @property DEFAULT"," * @static"," */"," DEFAULT: 'http://'"," };",""," Y.namespace('Plugin');"," Y.Plugin.CreateLinkBase = CreateLinkBase;",""," Y.mix(Y.Plugin.ExecCommand.COMMANDS, {"," /**"," * Override for the createlink method from the <a href=\"Plugin.CreateLinkBase.html\">CreateLinkBase</a> plugin."," * @for ExecCommand"," * @method COMMANDS.createlink"," * @static"," * @param {String} cmd The command executed: createlink"," * @return {Node} Node instance of the item touched by this command."," */"," createlink: function(cmd) {"," var inst = this.get('host').getInstance(), out, a, sel, holder,"," url = prompt(CreateLinkBase.STRINGS.PROMPT, CreateLinkBase.STRINGS.DEFAULT);",""," if (url) {"," holder = inst.config.doc.createElement('div');"," url = url.replace(/\"/g, '').replace(/'/g, ''); //Remove single & double quotes"," url = inst.config.doc.createTextNode(url);"," holder.appendChild(url);"," url = holder.innerHTML;","",""," this.get('host')._execCommand(cmd, url);"," sel = new inst.EditorSelection();"," out = sel.getSelected();"," if (!sel.isCollapsed && out.size()) {"," //We have a selection"," a = out.item(0).one('a');"," if (a) {"," out.item(0).replace(a);"," }"," if (Y.UA.gecko) {"," if (a.get('parentNode').test('span')) {"," if (a.get('parentNode').one('br.yui-cursor')) {"," a.get('parentNode').insert(a, 'before');"," }"," }"," }"," } else {"," //No selection, insert a new node.."," this.get('host').execCommand('inserthtml', '<a href=\"' + url + '\">' + url + '</a>');"," }"," }"," return a;"," }"," });","","","","}, '3.9.1', {\"requires\": [\"editor-base\"]});"];
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"].lines = {"1":0,"13":0,"19":0,"34":0,"35":0,"37":0,"47":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"58":0,"59":0,"60":0,"61":0,"63":0,"64":0,"65":0,"67":0,"68":0,"69":0,"70":0,"76":0,"79":0};
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"].functions = {"createlink:46":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"].coveredLines = 26;
|
||||
_yuitest_coverage["build/createlink-base/createlink-base.js"].coveredFunctions = 2;
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 1);
|
||||
YUI.add('createlink-base', function (Y, NAME) {
|
||||
|
||||
|
||||
/**
|
||||
* Adds prompt style link creation. Adds an override for the
|
||||
* <a href="Plugin.ExecCommand.html#method_COMMANDS.createlink">createlink execCommand</a>.
|
||||
* @class Plugin.CreateLinkBase
|
||||
* @static
|
||||
* @submodule createlink-base
|
||||
* @module editor
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/createlink-base/createlink-base.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 13);
|
||||
var CreateLinkBase = {};
|
||||
/**
|
||||
* Strings used by the plugin
|
||||
* @property STRINGS
|
||||
* @static
|
||||
*/
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 19);
|
||||
CreateLinkBase.STRINGS = {
|
||||
/**
|
||||
* String used for the Prompt
|
||||
* @property PROMPT
|
||||
* @static
|
||||
*/
|
||||
PROMPT: 'Please enter the URL for the link to point to:',
|
||||
/**
|
||||
* String used as the default value of the Prompt
|
||||
* @property DEFAULT
|
||||
* @static
|
||||
*/
|
||||
DEFAULT: 'http://'
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 34);
|
||||
Y.namespace('Plugin');
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 35);
|
||||
Y.Plugin.CreateLinkBase = CreateLinkBase;
|
||||
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 37);
|
||||
Y.mix(Y.Plugin.ExecCommand.COMMANDS, {
|
||||
/**
|
||||
* Override for the createlink method from the <a href="Plugin.CreateLinkBase.html">CreateLinkBase</a> plugin.
|
||||
* @for ExecCommand
|
||||
* @method COMMANDS.createlink
|
||||
* @static
|
||||
* @param {String} cmd The command executed: createlink
|
||||
* @return {Node} Node instance of the item touched by this command.
|
||||
*/
|
||||
createlink: function(cmd) {
|
||||
_yuitest_coverfunc("build/createlink-base/createlink-base.js", "createlink", 46);
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 47);
|
||||
var inst = this.get('host').getInstance(), out, a, sel, holder,
|
||||
url = prompt(CreateLinkBase.STRINGS.PROMPT, CreateLinkBase.STRINGS.DEFAULT);
|
||||
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 50);
|
||||
if (url) {
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 51);
|
||||
holder = inst.config.doc.createElement('div');
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 52);
|
||||
url = url.replace(/"/g, '').replace(/'/g, ''); //Remove single & double quotes
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 53);
|
||||
url = inst.config.doc.createTextNode(url);
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 54);
|
||||
holder.appendChild(url);
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 55);
|
||||
url = holder.innerHTML;
|
||||
|
||||
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 58);
|
||||
this.get('host')._execCommand(cmd, url);
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 59);
|
||||
sel = new inst.EditorSelection();
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 60);
|
||||
out = sel.getSelected();
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 61);
|
||||
if (!sel.isCollapsed && out.size()) {
|
||||
//We have a selection
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 63);
|
||||
a = out.item(0).one('a');
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 64);
|
||||
if (a) {
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 65);
|
||||
out.item(0).replace(a);
|
||||
}
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 67);
|
||||
if (Y.UA.gecko) {
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 68);
|
||||
if (a.get('parentNode').test('span')) {
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 69);
|
||||
if (a.get('parentNode').one('br.yui-cursor')) {
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 70);
|
||||
a.get('parentNode').insert(a, 'before');
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//No selection, insert a new node..
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 76);
|
||||
this.get('host').execCommand('inserthtml', '<a href="' + url + '">' + url + '</a>');
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/createlink-base/createlink-base.js", 79);
|
||||
return a;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["editor-base"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,113 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/dataschema-base/dataschema-base.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"].code=["YUI.add('dataschema-base', function (Y, NAME) {","","/**"," * The DataSchema utility provides a common configurable interface for widgets to"," * apply a given schema to a variety of data."," *"," * @module dataschema"," * @main dataschema"," */","","/**"," * Provides the base DataSchema implementation, which can be extended to "," * create DataSchemas for specific data formats, such XML, JSON, text and"," * arrays."," *"," * @module dataschema"," * @submodule dataschema-base"," */","","var LANG = Y.Lang,","/**"," * Base class for the YUI DataSchema Utility."," * @class DataSchema.Base"," * @static"," */"," SchemaBase = {"," /**"," * Overridable method returns data as-is."," *"," * @method apply"," * @param schema {Object} Schema to apply."," * @param data {Object} Data."," * @return {Object} Schema-parsed data."," * @static"," */"," apply: function(schema, data) {"," return data;"," },"," "," /**"," * Applies field parser, if defined"," *"," * @method parse"," * @param value {Object} Original value."," * @param field {Object} Field."," * @return {Object} Type-converted value."," */"," parse: function(value, field) {"," if(field.parser) {"," var parser = (LANG.isFunction(field.parser)) ?"," field.parser : Y.Parsers[field.parser+''];"," if(parser) {"," value = parser.call(this, value);"," }"," else {"," }"," }"," return value;"," }","};","","Y.namespace(\"DataSchema\").Base = SchemaBase;","Y.namespace(\"Parsers\");","","","}, '3.9.1', {\"requires\": [\"base\"]});"];
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"].lines = {"1":0,"20":0,"37":0,"49":0,"50":0,"52":0,"53":0,"58":0,"62":0,"63":0};
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"].functions = {"apply:36":0,"parse:48":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"].coveredLines = 10;
|
||||
_yuitest_coverage["build/dataschema-base/dataschema-base.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 1);
|
||||
YUI.add('dataschema-base', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* The DataSchema utility provides a common configurable interface for widgets to
|
||||
* apply a given schema to a variety of data.
|
||||
*
|
||||
* @module dataschema
|
||||
* @main dataschema
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides the base DataSchema implementation, which can be extended to
|
||||
* create DataSchemas for specific data formats, such XML, JSON, text and
|
||||
* arrays.
|
||||
*
|
||||
* @module dataschema
|
||||
* @submodule dataschema-base
|
||||
*/
|
||||
|
||||
_yuitest_coverfunc("build/dataschema-base/dataschema-base.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 20);
|
||||
var LANG = Y.Lang,
|
||||
/**
|
||||
* Base class for the YUI DataSchema Utility.
|
||||
* @class DataSchema.Base
|
||||
* @static
|
||||
*/
|
||||
SchemaBase = {
|
||||
/**
|
||||
* Overridable method returns data as-is.
|
||||
*
|
||||
* @method apply
|
||||
* @param schema {Object} Schema to apply.
|
||||
* @param data {Object} Data.
|
||||
* @return {Object} Schema-parsed data.
|
||||
* @static
|
||||
*/
|
||||
apply: function(schema, data) {
|
||||
_yuitest_coverfunc("build/dataschema-base/dataschema-base.js", "apply", 36);
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 37);
|
||||
return data;
|
||||
},
|
||||
|
||||
/**
|
||||
* Applies field parser, if defined
|
||||
*
|
||||
* @method parse
|
||||
* @param value {Object} Original value.
|
||||
* @param field {Object} Field.
|
||||
* @return {Object} Type-converted value.
|
||||
*/
|
||||
parse: function(value, field) {
|
||||
_yuitest_coverfunc("build/dataschema-base/dataschema-base.js", "parse", 48);
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 49);
|
||||
if(field.parser) {
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 50);
|
||||
var parser = (LANG.isFunction(field.parser)) ?
|
||||
field.parser : Y.Parsers[field.parser+''];
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 52);
|
||||
if(parser) {
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 53);
|
||||
value = parser.call(this, value);
|
||||
}
|
||||
else {
|
||||
}
|
||||
}
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 58);
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 62);
|
||||
Y.namespace("DataSchema").Base = SchemaBase;
|
||||
_yuitest_coverline("build/dataschema-base/dataschema-base.js", 63);
|
||||
Y.namespace("Parsers");
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["base"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,157 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-arrayschema/datasource-arrayschema.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"].code=["YUI.add('datasource-arrayschema', function (Y, NAME) {","","/**"," * Extends DataSource with schema-parsing on array data."," *"," * @module datasource"," * @submodule datasource-arrayschema"," */","","/**"," * Adds schema-parsing to the DataSource Utility."," * @class DataSourceArraySchema"," * @extends Plugin.Base"," */ ","var DataSourceArraySchema = function() {"," DataSourceArraySchema.superclass.constructor.apply(this, arguments);","};","","Y.mix(DataSourceArraySchema, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"schema\""," */"," NS: \"schema\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceArraySchema\""," */"," NAME: \"dataSourceArraySchema\",",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSourceArraySchema Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," schema: {"," //value: {}"," }"," }","});","","Y.extend(DataSourceArraySchema, Y.Plugin.Base, {"," /**"," * Internal init() handler."," *"," * @method initializer"," * @param config {Object} Config object."," * @private"," */"," initializer: function(config) {"," this.doBefore(\"_defDataFn\", this._beforeDefDataFn);"," },",""," /**"," * Parses raw data into a normalized response."," *"," * @method _beforeDefDataFn"," * @param tId {Number} Unique transaction ID."," * @param request {Object} The request."," * @param callback {Object} The callback object with the following properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * @param data {Object} Raw data."," * @protected"," */"," _beforeDefDataFn: function(e) {"," var data = (Y.DataSource.IO && (this.get(\"host\") instanceof Y.DataSource.IO) && Y.Lang.isString(e.data.responseText)) ? e.data.responseText : e.data,"," response = Y.DataSchema.Array.apply.call(this, this.get(\"schema\"), data),"," payload = e.details[0];"," "," // Default"," if (!response) {"," response = {"," meta: {},"," results: data"," };"," }"," "," payload.response = response;",""," this.get(\"host\").fire(\"response\", payload);",""," return new Y.Do.Halt(\"DataSourceArraySchema plugin halted _defDataFn\");"," }","});"," ","Y.namespace('Plugin').DataSourceArraySchema = DataSourceArraySchema;","","","}, '3.9.1', {\"requires\": [\"datasource-local\", \"plugin\", \"dataschema-array\"]});"];
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"].lines = {"1":0,"15":0,"16":0,"19":0,"56":0,"65":0,"83":0,"88":0,"89":0,"95":0,"97":0,"99":0,"103":0};
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"].functions = {"DataSourceArraySchema:15":0,"initializer:64":0,"_beforeDefDataFn:82":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"].coveredLines = 13;
|
||||
_yuitest_coverage["build/datasource-arrayschema/datasource-arrayschema.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 1);
|
||||
YUI.add('datasource-arrayschema', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Extends DataSource with schema-parsing on array data.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-arrayschema
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds schema-parsing to the DataSource Utility.
|
||||
* @class DataSourceArraySchema
|
||||
* @extends Plugin.Base
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-arrayschema/datasource-arrayschema.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 15);
|
||||
var DataSourceArraySchema = function() {
|
||||
_yuitest_coverfunc("build/datasource-arrayschema/datasource-arrayschema.js", "DataSourceArraySchema", 15);
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 16);
|
||||
DataSourceArraySchema.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 19);
|
||||
Y.mix(DataSourceArraySchema, {
|
||||
/**
|
||||
* The namespace for the plugin. This will be the property on the host which
|
||||
* references the plugin instance.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "schema"
|
||||
*/
|
||||
NS: "schema",
|
||||
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceArraySchema"
|
||||
*/
|
||||
NAME: "dataSourceArraySchema",
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceArraySchema Attributes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ATTRS: {
|
||||
schema: {
|
||||
//value: {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 56);
|
||||
Y.extend(DataSourceArraySchema, Y.Plugin.Base, {
|
||||
/**
|
||||
* Internal init() handler.
|
||||
*
|
||||
* @method initializer
|
||||
* @param config {Object} Config object.
|
||||
* @private
|
||||
*/
|
||||
initializer: function(config) {
|
||||
_yuitest_coverfunc("build/datasource-arrayschema/datasource-arrayschema.js", "initializer", 64);
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 65);
|
||||
this.doBefore("_defDataFn", this._beforeDefDataFn);
|
||||
},
|
||||
|
||||
/**
|
||||
* Parses raw data into a normalized response.
|
||||
*
|
||||
* @method _beforeDefDataFn
|
||||
* @param tId {Number} Unique transaction ID.
|
||||
* @param request {Object} The request.
|
||||
* @param callback {Object} The callback object with the following properties:
|
||||
* <dl>
|
||||
* <dt>success (Function)</dt> <dd>Success handler.</dd>
|
||||
* <dt>failure (Function)</dt> <dd>Failure handler.</dd>
|
||||
* </dl>
|
||||
* @param data {Object} Raw data.
|
||||
* @protected
|
||||
*/
|
||||
_beforeDefDataFn: function(e) {
|
||||
_yuitest_coverfunc("build/datasource-arrayschema/datasource-arrayschema.js", "_beforeDefDataFn", 82);
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 83);
|
||||
var data = (Y.DataSource.IO && (this.get("host") instanceof Y.DataSource.IO) && Y.Lang.isString(e.data.responseText)) ? e.data.responseText : e.data,
|
||||
response = Y.DataSchema.Array.apply.call(this, this.get("schema"), data),
|
||||
payload = e.details[0];
|
||||
|
||||
// Default
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 88);
|
||||
if (!response) {
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 89);
|
||||
response = {
|
||||
meta: {},
|
||||
results: data
|
||||
};
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 95);
|
||||
payload.response = response;
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 97);
|
||||
this.get("host").fire("response", payload);
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 99);
|
||||
return new Y.Do.Halt("DataSourceArraySchema plugin halted _defDataFn");
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-arrayschema/datasource-arrayschema.js", 103);
|
||||
Y.namespace('Plugin').DataSourceArraySchema = DataSourceArraySchema;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local", "plugin", "dataschema-array"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,157 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-function/datasource-function.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"].code=["YUI.add('datasource-function', function (Y, NAME) {","","/**"," * Provides a DataSource implementation which can be used to retrieve data from"," * a custom function."," *"," * @module datasource"," * @submodule datasource-function"," */","","/**"," * Function subclass for the DataSource Utility."," * @class DataSource.Function"," * @extends DataSource.Local"," * @constructor"," */ ","var LANG = Y.Lang,",""," DSFn = function() {"," DSFn.superclass.constructor.apply(this, arguments);"," };"," ",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSource.Function static properties"," //"," /////////////////////////////////////////////////////////////////////////////","Y.mix(DSFn, {"," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static "," * @final"," * @value \"dataSourceFunction\""," */"," NAME: \"dataSourceFunction\",","",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSource.Function Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," /**"," * Stores the function that will serve the response data."," *"," * @attribute source"," * @type {Any}"," * @default null"," */"," source: {"," validator: LANG.isFunction"," }"," }","});"," ","Y.extend(DSFn, Y.DataSource.Local, {"," /**"," * Passes query data to the source function. Fires <code>response</code>"," * event with the function results (synchronously)."," *"," * @method _defRequestFn"," * @param e {Event.Facade} Event Facade with the following properties:"," * <dl>"," * <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>"," * <dt>request (Object)</dt> <dd>The request.</dd>"," * <dt>callback (Object)</dt> <dd>The callback object with the following"," * properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * </dd>"," * <dt>cfg (Object)</dt> <dd>Configuration object.</dd>"," * </dl>"," * @protected"," */"," _defRequestFn: function(e) {"," var fn = this.get(\"source\"),"," payload = e.details[0];"," "," if (fn) {"," try {"," payload.data = fn(e.request, this, e);"," } catch (ex) {"," payload.error = ex;"," }"," } else {"," payload.error = new Error(\"Function data failure\");"," }",""," this.fire(\"data\", payload);"," "," return e.tId;"," }","});"," ","Y.DataSource.Function = DSFn;","","","}, '3.9.1', {\"requires\": [\"datasource-local\"]});"];
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"].lines = {"1":0,"17":0,"20":0,"29":0,"62":0,"84":0,"87":0,"88":0,"89":0,"91":0,"94":0,"97":0,"99":0,"103":0};
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"].functions = {"DSFn:19":0,"_defRequestFn:83":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"].coveredLines = 14;
|
||||
_yuitest_coverage["build/datasource-function/datasource-function.js"].coveredFunctions = 3;
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 1);
|
||||
YUI.add('datasource-function', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Provides a DataSource implementation which can be used to retrieve data from
|
||||
* a custom function.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-function
|
||||
*/
|
||||
|
||||
/**
|
||||
* Function subclass for the DataSource Utility.
|
||||
* @class DataSource.Function
|
||||
* @extends DataSource.Local
|
||||
* @constructor
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-function/datasource-function.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 17);
|
||||
var LANG = Y.Lang,
|
||||
|
||||
DSFn = function() {
|
||||
_yuitest_coverfunc("build/datasource-function/datasource-function.js", "DSFn", 19);
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 20);
|
||||
DSFn.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSource.Function static properties
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 29);
|
||||
Y.mix(DSFn, {
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceFunction"
|
||||
*/
|
||||
NAME: "dataSourceFunction",
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSource.Function Attributes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ATTRS: {
|
||||
/**
|
||||
* Stores the function that will serve the response data.
|
||||
*
|
||||
* @attribute source
|
||||
* @type {Any}
|
||||
* @default null
|
||||
*/
|
||||
source: {
|
||||
validator: LANG.isFunction
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 62);
|
||||
Y.extend(DSFn, Y.DataSource.Local, {
|
||||
/**
|
||||
* Passes query data to the source function. Fires <code>response</code>
|
||||
* event with the function results (synchronously).
|
||||
*
|
||||
* @method _defRequestFn
|
||||
* @param e {Event.Facade} Event Facade with the following properties:
|
||||
* <dl>
|
||||
* <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>
|
||||
* <dt>request (Object)</dt> <dd>The request.</dd>
|
||||
* <dt>callback (Object)</dt> <dd>The callback object with the following
|
||||
* properties:
|
||||
* <dl>
|
||||
* <dt>success (Function)</dt> <dd>Success handler.</dd>
|
||||
* <dt>failure (Function)</dt> <dd>Failure handler.</dd>
|
||||
* </dl>
|
||||
* </dd>
|
||||
* <dt>cfg (Object)</dt> <dd>Configuration object.</dd>
|
||||
* </dl>
|
||||
* @protected
|
||||
*/
|
||||
_defRequestFn: function(e) {
|
||||
_yuitest_coverfunc("build/datasource-function/datasource-function.js", "_defRequestFn", 83);
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 84);
|
||||
var fn = this.get("source"),
|
||||
payload = e.details[0];
|
||||
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 87);
|
||||
if (fn) {
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 88);
|
||||
try {
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 89);
|
||||
payload.data = fn(e.request, this, e);
|
||||
} catch (ex) {
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 91);
|
||||
payload.error = ex;
|
||||
}
|
||||
} else {
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 94);
|
||||
payload.error = new Error("Function data failure");
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 97);
|
||||
this.fire("data", payload);
|
||||
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 99);
|
||||
return e.tId;
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-function/datasource-function.js", 103);
|
||||
Y.DataSource.Function = DSFn;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,152 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-jsonschema/datasource-jsonschema.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"].code=["YUI.add('datasource-jsonschema', function (Y, NAME) {","","/**"," * Extends DataSource with schema-parsing on JSON data."," *"," * @module datasource"," * @submodule datasource-jsonschema"," */","","/**"," * Adds schema-parsing to the DataSource Utility."," * @class DataSourceJSONSchema"," * @extends Plugin.Base"," */ ","var DataSourceJSONSchema = function() {"," DataSourceJSONSchema.superclass.constructor.apply(this, arguments);","};","","Y.mix(DataSourceJSONSchema, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"schema\""," */"," NS: \"schema\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceJSONSchema\""," */"," NAME: \"dataSourceJSONSchema\",",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSourceJSONSchema Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," schema: {"," //value: {}"," }"," }","});","","Y.extend(DataSourceJSONSchema, Y.Plugin.Base, {"," /**"," * Internal init() handler."," *"," * @method initializer"," * @param config {Object} Config object."," * @private"," */"," initializer: function(config) {"," this.doBefore(\"_defDataFn\", this._beforeDefDataFn);"," },",""," /**"," * Parses raw data into a normalized response. To accommodate XHR responses,"," * will first look for data in data.responseText. Otherwise will just work"," * with data."," *"," * @method _beforeDefDataFn"," * @param tId {Number} Unique transaction ID."," * @param request {Object} The request."," * @param callback {Object} The callback object with the following properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * @param data {Object} Raw data."," * @protected"," */"," _beforeDefDataFn: function(e) {"," var data = e.data && (e.data.responseText || e.data),"," schema = this.get('schema'),"," payload = e.details[0];"," "," payload.response = Y.DataSchema.JSON.apply.call(this, schema, data) || {"," meta: {},"," results: data"," };",""," this.get(\"host\").fire(\"response\", payload);",""," return new Y.Do.Halt(\"DataSourceJSONSchema plugin halted _defDataFn\");"," }","});"," ","Y.namespace('Plugin').DataSourceJSONSchema = DataSourceJSONSchema;","","","}, '3.9.1', {\"requires\": [\"datasource-local\", \"plugin\", \"dataschema-json\"]});"];
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"].lines = {"1":0,"15":0,"16":0,"19":0,"56":0,"65":0,"85":0,"89":0,"94":0,"96":0,"100":0};
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"].functions = {"DataSourceJSONSchema:15":0,"initializer:64":0,"_beforeDefDataFn:84":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"].coveredLines = 11;
|
||||
_yuitest_coverage["build/datasource-jsonschema/datasource-jsonschema.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 1);
|
||||
YUI.add('datasource-jsonschema', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Extends DataSource with schema-parsing on JSON data.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-jsonschema
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds schema-parsing to the DataSource Utility.
|
||||
* @class DataSourceJSONSchema
|
||||
* @extends Plugin.Base
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-jsonschema/datasource-jsonschema.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 15);
|
||||
var DataSourceJSONSchema = function() {
|
||||
_yuitest_coverfunc("build/datasource-jsonschema/datasource-jsonschema.js", "DataSourceJSONSchema", 15);
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 16);
|
||||
DataSourceJSONSchema.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 19);
|
||||
Y.mix(DataSourceJSONSchema, {
|
||||
/**
|
||||
* The namespace for the plugin. This will be the property on the host which
|
||||
* references the plugin instance.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "schema"
|
||||
*/
|
||||
NS: "schema",
|
||||
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceJSONSchema"
|
||||
*/
|
||||
NAME: "dataSourceJSONSchema",
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceJSONSchema Attributes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ATTRS: {
|
||||
schema: {
|
||||
//value: {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 56);
|
||||
Y.extend(DataSourceJSONSchema, Y.Plugin.Base, {
|
||||
/**
|
||||
* Internal init() handler.
|
||||
*
|
||||
* @method initializer
|
||||
* @param config {Object} Config object.
|
||||
* @private
|
||||
*/
|
||||
initializer: function(config) {
|
||||
_yuitest_coverfunc("build/datasource-jsonschema/datasource-jsonschema.js", "initializer", 64);
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 65);
|
||||
this.doBefore("_defDataFn", this._beforeDefDataFn);
|
||||
},
|
||||
|
||||
/**
|
||||
* Parses raw data into a normalized response. To accommodate XHR responses,
|
||||
* will first look for data in data.responseText. Otherwise will just work
|
||||
* with data.
|
||||
*
|
||||
* @method _beforeDefDataFn
|
||||
* @param tId {Number} Unique transaction ID.
|
||||
* @param request {Object} The request.
|
||||
* @param callback {Object} The callback object with the following properties:
|
||||
* <dl>
|
||||
* <dt>success (Function)</dt> <dd>Success handler.</dd>
|
||||
* <dt>failure (Function)</dt> <dd>Failure handler.</dd>
|
||||
* </dl>
|
||||
* @param data {Object} Raw data.
|
||||
* @protected
|
||||
*/
|
||||
_beforeDefDataFn: function(e) {
|
||||
_yuitest_coverfunc("build/datasource-jsonschema/datasource-jsonschema.js", "_beforeDefDataFn", 84);
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 85);
|
||||
var data = e.data && (e.data.responseText || e.data),
|
||||
schema = this.get('schema'),
|
||||
payload = e.details[0];
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 89);
|
||||
payload.response = Y.DataSchema.JSON.apply.call(this, schema, data) || {
|
||||
meta: {},
|
||||
results: data
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 94);
|
||||
this.get("host").fire("response", payload);
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 96);
|
||||
return new Y.Do.Halt("DataSourceJSONSchema plugin halted _defDataFn");
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-jsonschema/datasource-jsonschema.js", 100);
|
||||
Y.namespace('Plugin').DataSourceJSONSchema = DataSourceJSONSchema;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local", "plugin", "dataschema-json"]});
|
||||
File diff suppressed because one or more lines are too long
@@ -1,146 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-polling/datasource-polling.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"].code=["YUI.add('datasource-polling', function (Y, NAME) {","","/**"," * Extends DataSource with polling functionality."," *"," * @module datasource"," * @submodule datasource-polling"," */"," ","/**"," * Adds polling to the DataSource Utility."," * @class Pollable"," * @extends DataSource.Local"," */ ","function Pollable() {"," this._intervals = {};","}","","Pollable.prototype = {",""," /**"," * @property _intervals"," * @description Hash of polling interval IDs that have been enabled,"," * stored here to be able to clear all intervals."," * @private"," */"," _intervals: null,",""," /**"," * Sets up a polling mechanism to send requests at set intervals and"," * forward responses to given callback."," *"," * @method setInterval"," * @param msec {Number} Length of interval in milliseconds."," * @param [request] {Object} An object literal with the following properties:"," * <dl>"," * <dt><code>request</code></dt>"," * <dd>The request to send to the live data source, if any.</dd>"," * <dt><code>callback</code></dt>"," * <dd>An object literal with the following properties:"," * <dl>"," * <dt><code>success</code></dt>"," * <dd>The function to call when the data is ready.</dd>"," * <dt><code>failure</code></dt>"," * <dd>The function to call upon a response failure condition.</dd>"," * <dt><code>argument</code></dt>"," * <dd>Arbitrary data payload that will be passed back to the success and failure handlers.</dd>"," * </dl>"," * </dd>"," * <dt><code>cfg</code></dt>"," * <dd>Configuration object, if any.</dd>"," * </dl>"," * @return {Number} Interval ID."," */"," setInterval: function(msec, request) {"," var x = Y.later(msec, this, this.sendRequest, [ request ], true);"," this._intervals[x.id] = x;"," // First call happens immediately, but async"," Y.later(0, this, this.sendRequest, [request]);"," return x.id;"," },",""," /**"," * Disables polling mechanism associated with the given interval ID."," *"," * @method clearInterval"," * @param id {Number} Interval ID."," */"," clearInterval: function(id, key) {"," // In case of being called by clearAllIntervals()"," id = key || id;"," if(this._intervals[id]) {"," // Clear the interval"," this._intervals[id].cancel();"," // Clear from tracker"," delete this._intervals[id];"," }"," },",""," /**"," * Clears all intervals."," *"," * @method clearAllIntervals"," */"," clearAllIntervals: function() {"," Y.each(this._intervals, this.clearInterval, this);"," }","};"," ","Y.augment(Y.DataSource.Local, Pollable);","","","}, '3.9.1', {\"requires\": [\"datasource-local\"]});"];
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"].lines = {"1":0,"15":0,"16":0,"19":0,"56":0,"57":0,"59":0,"60":0,"71":0,"72":0,"74":0,"76":0,"86":0,"90":0};
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"].functions = {"Pollable:15":0,"setInterval:55":0,"clearInterval:69":0,"clearAllIntervals:85":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"].coveredLines = 14;
|
||||
_yuitest_coverage["build/datasource-polling/datasource-polling.js"].coveredFunctions = 5;
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 1);
|
||||
YUI.add('datasource-polling', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Extends DataSource with polling functionality.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-polling
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds polling to the DataSource Utility.
|
||||
* @class Pollable
|
||||
* @extends DataSource.Local
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-polling/datasource-polling.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 15);
|
||||
function Pollable() {
|
||||
_yuitest_coverfunc("build/datasource-polling/datasource-polling.js", "Pollable", 15);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 16);
|
||||
this._intervals = {};
|
||||
}
|
||||
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 19);
|
||||
Pollable.prototype = {
|
||||
|
||||
/**
|
||||
* @property _intervals
|
||||
* @description Hash of polling interval IDs that have been enabled,
|
||||
* stored here to be able to clear all intervals.
|
||||
* @private
|
||||
*/
|
||||
_intervals: null,
|
||||
|
||||
/**
|
||||
* Sets up a polling mechanism to send requests at set intervals and
|
||||
* forward responses to given callback.
|
||||
*
|
||||
* @method setInterval
|
||||
* @param msec {Number} Length of interval in milliseconds.
|
||||
* @param [request] {Object} An object literal with the following properties:
|
||||
* <dl>
|
||||
* <dt><code>request</code></dt>
|
||||
* <dd>The request to send to the live data source, if any.</dd>
|
||||
* <dt><code>callback</code></dt>
|
||||
* <dd>An object literal with the following properties:
|
||||
* <dl>
|
||||
* <dt><code>success</code></dt>
|
||||
* <dd>The function to call when the data is ready.</dd>
|
||||
* <dt><code>failure</code></dt>
|
||||
* <dd>The function to call upon a response failure condition.</dd>
|
||||
* <dt><code>argument</code></dt>
|
||||
* <dd>Arbitrary data payload that will be passed back to the success and failure handlers.</dd>
|
||||
* </dl>
|
||||
* </dd>
|
||||
* <dt><code>cfg</code></dt>
|
||||
* <dd>Configuration object, if any.</dd>
|
||||
* </dl>
|
||||
* @return {Number} Interval ID.
|
||||
*/
|
||||
setInterval: function(msec, request) {
|
||||
_yuitest_coverfunc("build/datasource-polling/datasource-polling.js", "setInterval", 55);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 56);
|
||||
var x = Y.later(msec, this, this.sendRequest, [ request ], true);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 57);
|
||||
this._intervals[x.id] = x;
|
||||
// First call happens immediately, but async
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 59);
|
||||
Y.later(0, this, this.sendRequest, [request]);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 60);
|
||||
return x.id;
|
||||
},
|
||||
|
||||
/**
|
||||
* Disables polling mechanism associated with the given interval ID.
|
||||
*
|
||||
* @method clearInterval
|
||||
* @param id {Number} Interval ID.
|
||||
*/
|
||||
clearInterval: function(id, key) {
|
||||
// In case of being called by clearAllIntervals()
|
||||
_yuitest_coverfunc("build/datasource-polling/datasource-polling.js", "clearInterval", 69);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 71);
|
||||
id = key || id;
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 72);
|
||||
if(this._intervals[id]) {
|
||||
// Clear the interval
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 74);
|
||||
this._intervals[id].cancel();
|
||||
// Clear from tracker
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 76);
|
||||
delete this._intervals[id];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Clears all intervals.
|
||||
*
|
||||
* @method clearAllIntervals
|
||||
*/
|
||||
clearAllIntervals: function() {
|
||||
_yuitest_coverfunc("build/datasource-polling/datasource-polling.js", "clearAllIntervals", 85);
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 86);
|
||||
Y.each(this._intervals, this.clearInterval, this);
|
||||
}
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-polling/datasource-polling.js", 90);
|
||||
Y.augment(Y.DataSource.Local, Pollable);
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local"]});
|
||||
@@ -1,151 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-textschema/datasource-textschema.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"].code=["YUI.add('datasource-textschema', function (Y, NAME) {","","/**"," * Extends DataSource with schema-parsing on text data."," *"," * @module datasource"," * @submodule datasource-textschema"," */","","/**"," * Adds schema-parsing to the DataSource Utility."," * @class DataSourceTextSchema"," * @extends Plugin.Base"," */ ","var DataSourceTextSchema = function() {"," DataSourceTextSchema.superclass.constructor.apply(this, arguments);","};","","Y.mix(DataSourceTextSchema, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"schema\""," */"," NS: \"schema\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceTextSchema\""," */"," NAME: \"dataSourceTextSchema\",",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSourceTextSchema Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," schema: {"," //value: {}"," }"," }","});","","Y.extend(DataSourceTextSchema, Y.Plugin.Base, {"," /**"," * Internal init() handler."," *"," * @method initializer"," * @param config {Object} Config object."," * @private"," */"," initializer: function(config) {"," this.doBefore(\"_defDataFn\", this._beforeDefDataFn);"," },",""," /**"," * Parses raw data into a normalized response."," *"," * @method _beforeDefDataFn"," * @param tId {Number} Unique transaction ID."," * @param request {Object} The request."," * @param callback {Object} The callback object with the following properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * @param data {Object} Raw data."," * @protected"," */"," _beforeDefDataFn: function(e) {"," var schema = this.get('schema'),"," payload = e.details[0],"," // TODO: Do I need to sniff for DS.IO + isString(responseText)?"," data = e.data.responseText || e.data;",""," payload.response = Y.DataSchema.Text.apply.call(this, schema, data) || {"," meta: {},"," results: data"," };",""," this.get(\"host\").fire(\"response\", payload);",""," return new Y.Do.Halt(\"DataSourceTextSchema plugin halted _defDataFn\");"," }","});"," ","Y.namespace('Plugin').DataSourceTextSchema = DataSourceTextSchema;","","","}, '3.9.1', {\"requires\": [\"datasource-local\", \"plugin\", \"dataschema-text\"]});"];
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"].lines = {"1":0,"15":0,"16":0,"19":0,"56":0,"65":0,"83":0,"88":0,"93":0,"95":0,"99":0};
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"].functions = {"DataSourceTextSchema:15":0,"initializer:64":0,"_beforeDefDataFn:82":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"].coveredLines = 11;
|
||||
_yuitest_coverage["build/datasource-textschema/datasource-textschema.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 1);
|
||||
YUI.add('datasource-textschema', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Extends DataSource with schema-parsing on text data.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-textschema
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds schema-parsing to the DataSource Utility.
|
||||
* @class DataSourceTextSchema
|
||||
* @extends Plugin.Base
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-textschema/datasource-textschema.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 15);
|
||||
var DataSourceTextSchema = function() {
|
||||
_yuitest_coverfunc("build/datasource-textschema/datasource-textschema.js", "DataSourceTextSchema", 15);
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 16);
|
||||
DataSourceTextSchema.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 19);
|
||||
Y.mix(DataSourceTextSchema, {
|
||||
/**
|
||||
* The namespace for the plugin. This will be the property on the host which
|
||||
* references the plugin instance.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "schema"
|
||||
*/
|
||||
NS: "schema",
|
||||
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceTextSchema"
|
||||
*/
|
||||
NAME: "dataSourceTextSchema",
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceTextSchema Attributes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ATTRS: {
|
||||
schema: {
|
||||
//value: {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 56);
|
||||
Y.extend(DataSourceTextSchema, Y.Plugin.Base, {
|
||||
/**
|
||||
* Internal init() handler.
|
||||
*
|
||||
* @method initializer
|
||||
* @param config {Object} Config object.
|
||||
* @private
|
||||
*/
|
||||
initializer: function(config) {
|
||||
_yuitest_coverfunc("build/datasource-textschema/datasource-textschema.js", "initializer", 64);
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 65);
|
||||
this.doBefore("_defDataFn", this._beforeDefDataFn);
|
||||
},
|
||||
|
||||
/**
|
||||
* Parses raw data into a normalized response.
|
||||
*
|
||||
* @method _beforeDefDataFn
|
||||
* @param tId {Number} Unique transaction ID.
|
||||
* @param request {Object} The request.
|
||||
* @param callback {Object} The callback object with the following properties:
|
||||
* <dl>
|
||||
* <dt>success (Function)</dt> <dd>Success handler.</dd>
|
||||
* <dt>failure (Function)</dt> <dd>Failure handler.</dd>
|
||||
* </dl>
|
||||
* @param data {Object} Raw data.
|
||||
* @protected
|
||||
*/
|
||||
_beforeDefDataFn: function(e) {
|
||||
_yuitest_coverfunc("build/datasource-textschema/datasource-textschema.js", "_beforeDefDataFn", 82);
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 83);
|
||||
var schema = this.get('schema'),
|
||||
payload = e.details[0],
|
||||
// TODO: Do I need to sniff for DS.IO + isString(responseText)?
|
||||
data = e.data.responseText || e.data;
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 88);
|
||||
payload.response = Y.DataSchema.Text.apply.call(this, schema, data) || {
|
||||
meta: {},
|
||||
results: data
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 93);
|
||||
this.get("host").fire("response", payload);
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 95);
|
||||
return new Y.Do.Halt("DataSourceTextSchema plugin halted _defDataFn");
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-textschema/datasource-textschema.js", 99);
|
||||
Y.namespace('Plugin').DataSourceTextSchema = DataSourceTextSchema;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local", "plugin", "dataschema-text"]});
|
||||
@@ -1,151 +0,0 @@
|
||||
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
|
||||
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]++;
|
||||
};
|
||||
}
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"] = {
|
||||
lines: {},
|
||||
functions: {},
|
||||
coveredLines: 0,
|
||||
calledLines: 0,
|
||||
coveredFunctions: 0,
|
||||
calledFunctions: 0,
|
||||
path: "build/datasource-xmlschema/datasource-xmlschema.js",
|
||||
code: []
|
||||
};
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"].code=["YUI.add('datasource-xmlschema', function (Y, NAME) {","","/**"," * Extends DataSource with schema-parsing on XML data."," *"," * @module datasource"," * @submodule datasource-xmlschema"," */","","/**"," * Adds schema-parsing to the DataSource Utility."," * @class DataSourceXMLSchema"," * @extends Plugin.Base"," */ ","var DataSourceXMLSchema = function() {"," DataSourceXMLSchema.superclass.constructor.apply(this, arguments);","};","","Y.mix(DataSourceXMLSchema, {"," /**"," * The namespace for the plugin. This will be the property on the host which"," * references the plugin instance."," *"," * @property NS"," * @type String"," * @static"," * @final"," * @value \"schema\""," */"," NS: \"schema\",",""," /**"," * Class name."," *"," * @property NAME"," * @type String"," * @static"," * @final"," * @value \"dataSourceXMLSchema\""," */"," NAME: \"dataSourceXMLSchema\",",""," /////////////////////////////////////////////////////////////////////////////"," //"," // DataSourceXMLSchema Attributes"," //"," /////////////////////////////////////////////////////////////////////////////",""," ATTRS: {"," schema: {"," //value: {}"," }"," }","});","","Y.extend(DataSourceXMLSchema, Y.Plugin.Base, {"," /**"," * Internal init() handler."," *"," * @method initializer"," * @param config {Object} Config object."," * @private"," */"," initializer: function(config) {"," this.doBefore(\"_defDataFn\", this._beforeDefDataFn);"," },",""," /**"," * Parses raw data into a normalized response."," *"," * @method _beforeDefDataFn"," * @param tId {Number} Unique transaction ID."," * @param request {Object} The request."," * @param callback {Object} The callback object with the following properties:"," * <dl>"," * <dt>success (Function)</dt> <dd>Success handler.</dd>"," * <dt>failure (Function)</dt> <dd>Failure handler.</dd>"," * </dl>"," * @param data {Object} Raw data."," * @protected"," */"," _beforeDefDataFn: function(e) {"," var schema = this.get('schema'),"," payload = e.details[0],"," // TODO: Do I need to sniff for DS.IO + responseXML.nodeType 9?"," data = Y.XML.parse(e.data.responseText) || e.data;",""," payload.response = Y.DataSchema.XML.apply.call(this, schema, data) || {"," meta: {},"," results: data"," };",""," this.get(\"host\").fire(\"response\", payload);",""," return new Y.Do.Halt(\"DataSourceXMLSchema plugin halted _defDataFn\");"," }","});"," ","Y.namespace('Plugin').DataSourceXMLSchema = DataSourceXMLSchema;","","","}, '3.9.1', {\"requires\": [\"datasource-local\", \"plugin\", \"datatype-xml\", \"dataschema-xml\"]});"];
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"].lines = {"1":0,"15":0,"16":0,"19":0,"56":0,"65":0,"83":0,"88":0,"93":0,"95":0,"99":0};
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"].functions = {"DataSourceXMLSchema:15":0,"initializer:64":0,"_beforeDefDataFn:82":0,"(anonymous 1):1":0};
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"].coveredLines = 11;
|
||||
_yuitest_coverage["build/datasource-xmlschema/datasource-xmlschema.js"].coveredFunctions = 4;
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 1);
|
||||
YUI.add('datasource-xmlschema', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Extends DataSource with schema-parsing on XML data.
|
||||
*
|
||||
* @module datasource
|
||||
* @submodule datasource-xmlschema
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds schema-parsing to the DataSource Utility.
|
||||
* @class DataSourceXMLSchema
|
||||
* @extends Plugin.Base
|
||||
*/
|
||||
_yuitest_coverfunc("build/datasource-xmlschema/datasource-xmlschema.js", "(anonymous 1)", 1);
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 15);
|
||||
var DataSourceXMLSchema = function() {
|
||||
_yuitest_coverfunc("build/datasource-xmlschema/datasource-xmlschema.js", "DataSourceXMLSchema", 15);
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 16);
|
||||
DataSourceXMLSchema.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 19);
|
||||
Y.mix(DataSourceXMLSchema, {
|
||||
/**
|
||||
* The namespace for the plugin. This will be the property on the host which
|
||||
* references the plugin instance.
|
||||
*
|
||||
* @property NS
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "schema"
|
||||
*/
|
||||
NS: "schema",
|
||||
|
||||
/**
|
||||
* Class name.
|
||||
*
|
||||
* @property NAME
|
||||
* @type String
|
||||
* @static
|
||||
* @final
|
||||
* @value "dataSourceXMLSchema"
|
||||
*/
|
||||
NAME: "dataSourceXMLSchema",
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DataSourceXMLSchema Attributes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ATTRS: {
|
||||
schema: {
|
||||
//value: {}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 56);
|
||||
Y.extend(DataSourceXMLSchema, Y.Plugin.Base, {
|
||||
/**
|
||||
* Internal init() handler.
|
||||
*
|
||||
* @method initializer
|
||||
* @param config {Object} Config object.
|
||||
* @private
|
||||
*/
|
||||
initializer: function(config) {
|
||||
_yuitest_coverfunc("build/datasource-xmlschema/datasource-xmlschema.js", "initializer", 64);
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 65);
|
||||
this.doBefore("_defDataFn", this._beforeDefDataFn);
|
||||
},
|
||||
|
||||
/**
|
||||
* Parses raw data into a normalized response.
|
||||
*
|
||||
* @method _beforeDefDataFn
|
||||
* @param tId {Number} Unique transaction ID.
|
||||
* @param request {Object} The request.
|
||||
* @param callback {Object} The callback object with the following properties:
|
||||
* <dl>
|
||||
* <dt>success (Function)</dt> <dd>Success handler.</dd>
|
||||
* <dt>failure (Function)</dt> <dd>Failure handler.</dd>
|
||||
* </dl>
|
||||
* @param data {Object} Raw data.
|
||||
* @protected
|
||||
*/
|
||||
_beforeDefDataFn: function(e) {
|
||||
_yuitest_coverfunc("build/datasource-xmlschema/datasource-xmlschema.js", "_beforeDefDataFn", 82);
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 83);
|
||||
var schema = this.get('schema'),
|
||||
payload = e.details[0],
|
||||
// TODO: Do I need to sniff for DS.IO + responseXML.nodeType 9?
|
||||
data = Y.XML.parse(e.data.responseText) || e.data;
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 88);
|
||||
payload.response = Y.DataSchema.XML.apply.call(this, schema, data) || {
|
||||
meta: {},
|
||||
results: data
|
||||
};
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 93);
|
||||
this.get("host").fire("response", payload);
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 95);
|
||||
return new Y.Do.Halt("DataSourceXMLSchema plugin halted _defDataFn");
|
||||
}
|
||||
});
|
||||
|
||||
_yuitest_coverline("build/datasource-xmlschema/datasource-xmlschema.js", 99);
|
||||
Y.namespace('Plugin').DataSourceXMLSchema = DataSourceXMLSchema;
|
||||
|
||||
|
||||
}, '3.9.1', {"requires": ["datasource-local", "plugin", "datatype-xml", "dataschema-xml"]});
|
||||
-2099
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user