Permalink
Browse files

Merge branch 'dev-master' into bug-template-zero

  • Loading branch information...
2 parents 38d37f7 + 2274a81 commit cacd10fc6ee379171abc800f272365aca95318ae @rgrove rgrove committed Jan 4, 2013
Showing with 1,494 additions and 939 deletions.
  1. +20 −18 build/attribute-base/attribute-base-coverage.js
  2. +5 −3 build/attribute-base/attribute-base-debug.js
  3. +5 −3 build/attribute-base/attribute-base.js
  4. +218 −214 build/attribute-core/attribute-core-coverage.js
  5. +42 −39 build/attribute-core/attribute-core-debug.js
  6. +1 −1 build/attribute-core/attribute-core-min.js
  7. +42 −39 build/attribute-core/attribute-core.js
  8. +27 −26 build/attribute-extras/attribute-extras-coverage.js
  9. +2 −1 build/attribute-extras/attribute-extras-debug.js
  10. +2 −1 build/attribute-extras/attribute-extras.js
  11. +10 −8 build/attribute-observable/attribute-observable-coverage.js
  12. +3 −1 build/attribute-observable/attribute-observable-debug.js
  13. +1 −1 build/attribute-observable/attribute-observable-min.js
  14. +3 −1 build/attribute-observable/attribute-observable.js
  15. +2 −2 build/features/features-coverage.js
  16. +1 −1 build/features/features-debug.js
  17. +1 −1 build/features/features.js
  18. +84 −41 build/io-form/io-form-coverage.js
  19. +43 −9 build/io-form/io-form-debug.js
  20. +1 −1 build/io-form/io-form-min.js
  21. +43 −9 build/io-form/io-form.js
  22. +108 −101 build/io-xdr/io-xdr-coverage.js
  23. +14 −8 build/io-xdr/io-xdr-debug.js
  24. +1 −1 build/io-xdr/io-xdr-min.js
  25. +14 −8 build/io-xdr/io-xdr.js
  26. +2 −2 build/loader-base/loader-base-coverage.js
  27. +1 −1 build/loader-base/loader-base-debug.js
  28. +1 −1 build/loader-base/loader-base-min.js
  29. +1 −1 build/loader-base/loader-base.js
  30. +60 −58 build/loader-yui3/loader-yui3-coverage.js
  31. +5 −4 build/loader-yui3/loader-yui3-debug.js
  32. +1 −1 build/loader-yui3/loader-yui3-min.js
  33. +5 −4 build/loader-yui3/loader-yui3.js
  34. +6 −5 build/loader/loader-debug.js
  35. +1 −1 build/loader/loader-min.js
  36. +6 −5 build/loader/loader.js
  37. +11 −12 build/simpleyui/simpleyui-debug.js
  38. +1 −1 build/simpleyui/simpleyui-min.js
  39. +11 −12 build/simpleyui/simpleyui.js
  40. +1 −1 build/yui-base/yui-base-debug.js
  41. +1 −1 build/yui-base/yui-base.js
  42. +15 −2 build/yui-nodejs/yui-nodejs-coverage.js
  43. +34 −8 build/yui-nodejs/yui-nodejs-debug.js
  44. +1 −1 build/yui-nodejs/yui-nodejs-min.js
  45. +34 −8 build/yui-nodejs/yui-nodejs.js
  46. +14 −2 build/yui/yui-coverage.js
  47. +33 −8 build/yui/yui-debug.js
  48. +1 −1 build/yui/yui-min.js
  49. +33 −8 build/yui/yui.js
  50. +6 −0 src/attribute/HISTORY.md
  51. +153 −68 src/attribute/docs/index.mustache
  52. +5 −3 src/attribute/js/Attribute.js
  53. +42 −39 src/attribute/js/AttributeCore.js
  54. +2 −1 src/attribute/js/AttributeExtras.js
  55. +3 −1 src/attribute/js/AttributeObservable.js
  56. +35 −0 src/attribute/tests/unit/assets/attribute-core-tests.js
  57. +2 −4 src/common/travis/before.sh
  58. +0 −79 src/common/travis/get_pull_files.js
  59. +0 −15 src/common/travis/gettests.js
  60. +9 −1 src/io/HISTORY.md
  61. +43 −9 src/io/js/io-form.js
  62. +14 −8 src/io/js/io-xdr.js
  63. +15 −0 src/io/tests/unit/index.html
  64. +61 −0 src/io/tests/unit/js/serialize-tests.js
  65. +95 −0 src/io/tests/unit/js/xdr-tests.js
  66. +13 −1 src/io/tests/unit/modules.js
  67. +5 −5 src/io/tests/unit/urls.js
  68. +2 −2 src/loader/build.json
  69. +5 −4 src/loader/js/yui3.js
  70. +11 −12 src/simpleyui/js/concat.js
  71. +1 −1 src/yui/js/load-tests.js
@@ -26,9 +26,9 @@ _yuitest_coverage["build/attribute-base/attribute-base.js"] = {
path: "build/attribute-base/attribute-base.js",
code: []
};
-_yuitest_coverage["build/attribute-base/attribute-base.js"].code=["YUI.add('attribute-base', function (Y, NAME) {",""," /**"," * The attribute module provides an augmentable Attribute implementation, which"," * adds configurable attributes and attribute change events to the class being"," * augmented. It also provides a State class, which is used internally by Attribute,"," * but can also be used independently to provide a name/property/value data structure to"," * store state."," *"," * @module attribute"," */",""," /**"," * The attribute-base submodule provides core attribute handling support, with everything"," * aside from complex attribute handling in the provider's constructor."," *"," * @module attribute"," * @submodule attribute-base"," */",""," /**"," * <p>"," * Attribute provides configurable attribute support along with attribute change events. It is designed to be"," * augmented on to a host class, and provides the host with the ability to configure attributes to store and retrieve state,"," * along with attribute change events."," * </p>"," * <p>For example, attributes added to the host can be configured:</p>"," * <ul>"," * <li>As read only.</li>"," * <li>As write once.</li>"," * <li>With a setter function, which can be used to manipulate"," * values passed to Attribute's <a href=\"#method_set\">set</a> method, before they are stored.</li>"," * <li>With a getter function, which can be used to manipulate stored values,"," * before they are returned by Attribute's <a href=\"#method_get\">get</a> method.</li>"," * <li>With a validator function, to validate values before they are stored.</li>"," * </ul>"," *"," * <p>See the <a href=\"#method_addAttr\">addAttr</a> method, for the complete set of configuration"," * options available for attributes.</p>"," *"," * <p><strong>NOTE:</strong> Most implementations will be better off extending the <a href=\"Base.html\">Base</a> class,"," * instead of augmenting Attribute directly. Base augments Attribute and will handle the initial configuration"," * of attributes for derived classes, accounting for values passed into the constructor.</p>"," *"," * @class Attribute"," * @param attrs {Object} The attributes to add during construction (passed through to <a href=\"#method_addAttrs\">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor."," * @param values {Object} The initial attribute values to apply (passed through to <a href=\"#method_addAttrs\">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required."," * @param lazy {boolean} Whether or not to add attributes lazily (passed through to <a href=\"#method_addAttrs\">addAttrs</a>)."," * @uses AttributeCore"," * @uses AttributeObservable"," * @uses EventTarget"," * @uses AttributeExtras"," */"," function Attribute() {"," Y.AttributeCore.apply(this, arguments);"," Y.AttributeObservable.apply(this, arguments);"," Y.AttributeExtras.apply(this, arguments);"," }",""," Y.mix(Attribute, Y.AttributeCore, false, null, 1);"," Y.mix(Attribute, Y.AttributeExtras, false, null, 1);",""," // Needs to be \"true\", to overwrite methods from AttributeCore"," Y.mix(Attribute, Y.AttributeObservable, true, null, 1);",""," /**"," * <p>The value to return from an attribute setter in order to prevent the set from going through.</p>"," *"," * <p>You can return this value from your setter if you wish to combine validator and setter"," * functionality into a single setter function, which either returns the massaged value to be stored or"," * AttributeCore.INVALID_VALUE to prevent invalid values from being stored.</p>"," *"," * @property INVALID_VALUE"," * @type Object"," * @static"," * @final"," */"," Attribute.INVALID_VALUE = Y.AttributeCore.INVALID_VALUE;",""," /**"," * The list of properties which can be configured for"," * each attribute (e.g. setter, getter, writeOnce etc.)."," *"," * This property is used internally as a whitelist for faster"," * Y.mix operations."," *"," * @property _ATTR_CFG"," * @type Array"," * @static"," * @protected"," */"," Attribute._ATTR_CFG = Y.AttributeCore._ATTR_CFG.concat(Y.AttributeObservable._ATTR_CFG);",""," /**"," * Utility method to protect an attribute configuration hash, by merging the"," * entire object and the individual attr config objects."," *"," * @method protectAttrs"," * @static"," * @param {Object} attrs A hash of attribute to configuration object pairs."," * @return {Object} A protected version of the `attrs` argument."," */"," Attribute.protectAttrs = Y.AttributeCore.protectAttrs;",""," Y.Attribute = Attribute;","","","}, '@VERSION@', {\"requires\": [\"attribute-core\", \"attribute-observable\", \"attribute-extras\"]});"];
-_yuitest_coverage["build/attribute-base/attribute-base.js"].lines = {"1":0,"54":0,"55":0,"56":0,"57":0,"60":0,"61":0,"64":0,"78":0,"92":0,"103":0,"105":0};
-_yuitest_coverage["build/attribute-base/attribute-base.js"].functions = {"Attribute:54":0,"(anonymous 1):1":0};
+_yuitest_coverage["build/attribute-base/attribute-base.js"].code=["YUI.add('attribute-base', function (Y, NAME) {",""," /**"," * The attribute module provides an augmentable Attribute implementation, which"," * adds configurable attributes and attribute change events to the class being"," * augmented. It also provides a State class, which is used internally by Attribute,"," * but can also be used independently to provide a name/property/value data structure to"," * store state."," *"," * @module attribute"," */",""," /**"," * The attribute-base submodule provides core attribute handling support, with everything"," * aside from complex attribute handling in the provider's constructor."," *"," * @module attribute"," * @submodule attribute-base"," */",""," /**"," * <p>"," * Attribute provides configurable attribute support along with attribute change events. It is designed to be"," * augmented on to a host class, and provides the host with the ability to configure attributes to store and retrieve state,"," * along with attribute change events."," * </p>"," * <p>For example, attributes added to the host can be configured:</p>"," * <ul>"," * <li>As read only.</li>"," * <li>As write once.</li>"," * <li>With a setter function, which can be used to manipulate"," * values passed to Attribute's <a href=\"#method_set\">set</a> method, before they are stored.</li>"," * <li>With a getter function, which can be used to manipulate stored values,"," * before they are returned by Attribute's <a href=\"#method_get\">get</a> method.</li>"," * <li>With a validator function, to validate values before they are stored.</li>"," * </ul>"," *"," * <p>See the <a href=\"#method_addAttr\">addAttr</a> method, for the complete set of configuration"," * options available for attributes.</p>"," *"," * <p><strong>NOTE:</strong> Most implementations will be better off extending the <a href=\"Base.html\">Base</a> class,"," * instead of augmenting Attribute directly. Base augments Attribute and will handle the initial configuration"," * of attributes for derived classes, accounting for values passed into the constructor.</p>"," *"," * @class Attribute"," * @param attrs {Object} The attributes to add during construction (passed through to <a href=\"#method_addAttrs\">addAttrs</a>)."," * These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor."," * @param values {Object} The initial attribute values to apply (passed through to <a href=\"#method_addAttrs\">addAttrs</a>)."," * These are not merged/cloned. The caller is responsible for isolating user provided values if required."," * @param lazy {boolean} Whether or not to add attributes lazily (passed through to <a href=\"#method_addAttrs\">addAttrs</a>)."," * @uses AttributeCore"," * @uses AttributeObservable"," * @uses EventTarget"," * @uses AttributeExtras"," */"," function Attribute() {"," Y.AttributeCore.apply(this, arguments);"," Y.AttributeObservable.apply(this, arguments);"," Y.AttributeExtras.apply(this, arguments);"," }",""," Y.mix(Attribute, Y.AttributeCore, false, null, 1);"," Y.mix(Attribute, Y.AttributeExtras, false, null, 1);",""," // Needs to be `true`, to overwrite methods from AttributeCore"," Y.mix(Attribute, Y.AttributeObservable, true, null, 1);",""," /**"," * <p>The value to return from an attribute setter in order to prevent the set from going through.</p>"," *"," * <p>You can return this value from your setter if you wish to combine validator and setter"," * functionality into a single setter function, which either returns the massaged value to be stored or"," * AttributeCore.INVALID_VALUE to prevent invalid values from being stored.</p>"," *"," * @property INVALID_VALUE"," * @type Object"," * @static"," * @final"," */"," Attribute.INVALID_VALUE = Y.AttributeCore.INVALID_VALUE;",""," /**"," * The list of properties which can be configured for"," * each attribute (e.g. setter, getter, writeOnce etc.)."," *"," * This property is used internally as a whitelist for faster"," * Y.mix operations."," *"," * @property _ATTR_CFG"," * @type Array"," * @static"," * @protected"," */"," Attribute._ATTR_CFG = Y.AttributeCore._ATTR_CFG.concat(Y.AttributeObservable._ATTR_CFG);",""," /**"," * Utility method to protect an attribute configuration hash, by merging the"," * entire object and the individual attr config objects."," *"," * @method protectAttrs"," * @static"," * @param {Object} attrs A hash of attribute to configuration object pairs."," * @return {Object} A protected version of the `attrs` argument."," */"," Attribute.protectAttrs = Y.AttributeCore.protectAttrs;",""," Y.Attribute = Attribute;","","","}, '@VERSION@', {\"requires\": [\"attribute-core\", \"attribute-observable\", \"attribute-extras\"]});"];
+_yuitest_coverage["build/attribute-base/attribute-base.js"].lines = {"1":0,"56":0,"57":0,"58":0,"59":0,"62":0,"63":0,"66":0,"80":0,"94":0,"105":0,"107":0};
+_yuitest_coverage["build/attribute-base/attribute-base.js"].functions = {"Attribute:56":0,"(anonymous 1):1":0};
_yuitest_coverage["build/attribute-base/attribute-base.js"].coveredLines = 12;
_yuitest_coverage["build/attribute-base/attribute-base.js"].coveredFunctions = 2;
_yuitest_coverline("build/attribute-base/attribute-base.js", 1);
@@ -77,33 +77,35 @@ YUI.add('attribute-base', function (Y, NAME) {
* of attributes for derived classes, accounting for values passed into the constructor.</p>
*
* @class Attribute
- * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
- * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.
+ * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
+ * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These are not merged/cloned. The caller is responsible for isolating user provided values if required.
* @param lazy {boolean} Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).
* @uses AttributeCore
* @uses AttributeObservable
* @uses EventTarget
* @uses AttributeExtras
*/
_yuitest_coverfunc("build/attribute-base/attribute-base.js", "(anonymous 1)", 1);
-_yuitest_coverline("build/attribute-base/attribute-base.js", 54);
+_yuitest_coverline("build/attribute-base/attribute-base.js", 56);
function Attribute() {
- _yuitest_coverfunc("build/attribute-base/attribute-base.js", "Attribute", 54);
-_yuitest_coverline("build/attribute-base/attribute-base.js", 55);
+ _yuitest_coverfunc("build/attribute-base/attribute-base.js", "Attribute", 56);
+_yuitest_coverline("build/attribute-base/attribute-base.js", 57);
Y.AttributeCore.apply(this, arguments);
- _yuitest_coverline("build/attribute-base/attribute-base.js", 56);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 58);
Y.AttributeObservable.apply(this, arguments);
- _yuitest_coverline("build/attribute-base/attribute-base.js", 57);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 59);
Y.AttributeExtras.apply(this, arguments);
}
- _yuitest_coverline("build/attribute-base/attribute-base.js", 60);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 62);
Y.mix(Attribute, Y.AttributeCore, false, null, 1);
- _yuitest_coverline("build/attribute-base/attribute-base.js", 61);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 63);
Y.mix(Attribute, Y.AttributeExtras, false, null, 1);
- // Needs to be "true", to overwrite methods from AttributeCore
- _yuitest_coverline("build/attribute-base/attribute-base.js", 64);
+ // Needs to be `true`, to overwrite methods from AttributeCore
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 66);
Y.mix(Attribute, Y.AttributeObservable, true, null, 1);
/**
@@ -118,7 +120,7 @@ Y.mix(Attribute, Y.AttributeObservable, true, null, 1);
* @static
* @final
*/
- _yuitest_coverline("build/attribute-base/attribute-base.js", 78);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 80);
Attribute.INVALID_VALUE = Y.AttributeCore.INVALID_VALUE;
/**
@@ -133,7 +135,7 @@ Attribute.INVALID_VALUE = Y.AttributeCore.INVALID_VALUE;
* @static
* @protected
*/
- _yuitest_coverline("build/attribute-base/attribute-base.js", 92);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 94);
Attribute._ATTR_CFG = Y.AttributeCore._ATTR_CFG.concat(Y.AttributeObservable._ATTR_CFG);
/**
@@ -145,10 +147,10 @@ Attribute._ATTR_CFG = Y.AttributeCore._ATTR_CFG.concat(Y.AttributeObservable._AT
* @param {Object} attrs A hash of attribute to configuration object pairs.
* @return {Object} A protected version of the `attrs` argument.
*/
- _yuitest_coverline("build/attribute-base/attribute-base.js", 103);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 105);
Attribute.protectAttrs = Y.AttributeCore.protectAttrs;
- _yuitest_coverline("build/attribute-base/attribute-base.js", 105);
+ _yuitest_coverline("build/attribute-base/attribute-base.js", 107);
Y.Attribute = Attribute;
@@ -43,8 +43,10 @@ YUI.add('attribute-base', function (Y, NAME) {
* of attributes for derived classes, accounting for values passed into the constructor.</p>
*
* @class Attribute
- * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
- * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.
+ * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
+ * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These are not merged/cloned. The caller is responsible for isolating user provided values if required.
* @param lazy {boolean} Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).
* @uses AttributeCore
* @uses AttributeObservable
@@ -60,7 +62,7 @@ YUI.add('attribute-base', function (Y, NAME) {
Y.mix(Attribute, Y.AttributeCore, false, null, 1);
Y.mix(Attribute, Y.AttributeExtras, false, null, 1);
- // Needs to be "true", to overwrite methods from AttributeCore
+ // Needs to be `true`, to overwrite methods from AttributeCore
Y.mix(Attribute, Y.AttributeObservable, true, null, 1);
/**
@@ -43,8 +43,10 @@ YUI.add('attribute-base', function (Y, NAME) {
* of attributes for derived classes, accounting for values passed into the constructor.</p>
*
* @class Attribute
- * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
- * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.
+ * @param attrs {Object} The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.
+ * @param values {Object} The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>).
+ * These are not merged/cloned. The caller is responsible for isolating user provided values if required.
* @param lazy {boolean} Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).
* @uses AttributeCore
* @uses AttributeObservable
@@ -60,7 +62,7 @@ YUI.add('attribute-base', function (Y, NAME) {
Y.mix(Attribute, Y.AttributeCore, false, null, 1);
Y.mix(Attribute, Y.AttributeExtras, false, null, 1);
- // Needs to be "true", to overwrite methods from AttributeCore
+ // Needs to be `true`, to overwrite methods from AttributeCore
Y.mix(Attribute, Y.AttributeObservable, true, null, 1);
/**
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit cacd10f

Please sign in to comment.