Permalink
Browse files

Seed and Loader build for #2532797 (Y.UA updates)

  • Loading branch information...
davglass committed Sep 27, 2012
1 parent 500cd5a commit e38e757a38366bd85cad933f89b30ce9ebf7f680
@@ -123,4 +123,28 @@ return result;
index = language.lastIndexOf('-');
_yuitest_coverline("build/intl-base/intl-base.js", 68);
if (index >= 0) {
-
+ _yuitest_coverline("build/intl-base/intl-base.js", 69);
+language = language.substring(0, index);
+ // one-character subtags get cut along with the
+ // following subtag
+ _yuitest_coverline("build/intl-base/intl-base.js", 72);
+if (index >= 2 && language.charAt(index - 2) === '-') {
+ _yuitest_coverline("build/intl-base/intl-base.js", 73);
+language = language.substring(0, index - 2);
+ }
+ } else {
+ // nothing available for this language
+ _yuitest_coverline("build/intl-base/intl-base.js", 77);
+break;
+ }
+ }
+ }
+ }
+
+ _yuitest_coverline("build/intl-base/intl-base.js", 83);
+return '';
+ }
+});
+
+
+}, '@VERSION@', {"requires": ["yui-base"]});
@@ -112,4 +112,60 @@ continue;
c = 0;
// check the threshold
- _yuitest_coverline("build/loader-rollup/loader-rollup.js"
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 59);
+for (j = 0; j < s.length; j++) {
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 60);
+smod = info[s[j]];
+
+ // if the superseded module is loaded, we can't
+ // load the rollup unless it has been forced.
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 64);
+if (this.loaded[s[j]] && !this.forceMap[s[j]]) {
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 65);
+roll = false;
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 66);
+break;
+ // increment the counter if this module is required.
+ // if we are beyond the rollup threshold, we will
+ // use the rollup module
+ } else {_yuitest_coverline("build/loader-rollup/loader-rollup.js", 70);
+if (r[s[j]] && m.type == smod.type) {
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 71);
+c++;
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 72);
+roll = (c >= m.rollup);
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 73);
+if (roll) {
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 74);
+break;
+ }
+ }}
+ }
+
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 79);
+if (roll) {
+ // add the rollup
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 81);
+r[i] = true;
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 82);
+rolled = true;
+
+ // expand the rollup's dependencies
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 85);
+this.getRequires(m);
+ }
+ }
+ }
+ }
+
+ // if we made it here w/o rolling up something, we are done
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 92);
+if (!rolled) {
+ _yuitest_coverline("build/loader-rollup/loader-rollup.js", 93);
+break;
+ }
+ }
+};
+
+
+}, '@VERSION@', {"requires": ["loader-base"]});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2488,7 +2488,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2488,7 +2488,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});
@@ -5410,7 +5410,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -5366,7 +5366,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});
@@ -3555,7 +3555,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3536,7 +3536,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3555,7 +3555,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3536,7 +3536,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3555,7 +3555,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3536,7 +3536,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,
@@ -96,4 +96,83 @@ incl = c.logInclude;
if (incl && !(src in incl)) {
_yuitest_coverline("build/yui-log/yui-log.js", 52);
bail = 1;
- } else {_yuitest_coverline("build/yui-log/yui-log.js", 53
+ } else {_yuitest_coverline("build/yui-log/yui-log.js", 53);
+if (incl && (src in incl)) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 54);
+bail = !incl[src];
+ } else {_yuitest_coverline("build/yui-log/yui-log.js", 55);
+if (excl && (src in excl)) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 56);
+bail = excl[src];
+ }}}
+ }
+ _yuitest_coverline("build/yui-log/yui-log.js", 59);
+if (!bail) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 60);
+if (c.useBrowserConsole) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 61);
+m = (src) ? src + ': ' + msg : msg;
+ _yuitest_coverline("build/yui-log/yui-log.js", 62);
+if (Y.Lang.isFunction(c.logFn)) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 63);
+c.logFn.call(Y, msg, cat, src);
+ } else {_yuitest_coverline("build/yui-log/yui-log.js", 64);
+if (typeof console != UNDEFINED && console.log) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 65);
+f = (cat && console[cat] && (cat in LEVELS)) ? cat : 'log';
+ _yuitest_coverline("build/yui-log/yui-log.js", 66);
+console[f](m);
+ } else {_yuitest_coverline("build/yui-log/yui-log.js", 67);
+if (typeof opera != UNDEFINED) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 68);
+opera.postError(m);
+ }}}
+ }
+
+ _yuitest_coverline("build/yui-log/yui-log.js", 72);
+if (publisher && !silent) {
+
+ _yuitest_coverline("build/yui-log/yui-log.js", 74);
+if (publisher == Y && (!publisher.getEvent(LOGEVENT))) {
+ _yuitest_coverline("build/yui-log/yui-log.js", 75);
+publisher.publish(LOGEVENT, {
+ broadcast: 2
+ });
+ }
+
+ _yuitest_coverline("build/yui-log/yui-log.js", 80);
+publisher.fire(LOGEVENT, {
+ msg: msg,
+ cat: cat,
+ src: src
+ });
+ }
+ }
+ }
+
+ _yuitest_coverline("build/yui-log/yui-log.js", 89);
+return Y;
+};
+
+/**
+ * Write a system message. This message will be preserved in the
+ * minified and raw versions of the YUI files, unlike log statements.
+ * @method message
+ * @for YUI
+ * @param {String} msg The message to log.
+ * @param {String} cat The log category for the message. Default
+ * categories are "info", "warn", "error", time".
+ * Custom categories can be used as well. (opt).
+ * @param {String} src The source of the the message (opt).
+ * @param {boolean} silent If true, the log event won't fire.
+ * @return {YUI} YUI instance.
+ */
+_yuitest_coverline("build/yui-log/yui-log.js", 105);
+INSTANCE.message = function() {
+ _yuitest_coverfunc("build/yui-log/yui-log.js", "message", 105);
+_yuitest_coverline("build/yui-log/yui-log.js", 106);
+return INSTANCE.log.apply(INSTANCE, arguments);
+};
+
+
+}, '@VERSION@', {"requires": ["yui-base"]});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3555,7 +3555,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,
@@ -10143,7 +10150,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3536,7 +3536,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,
@@ -10069,7 +10076,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -3555,7 +3555,14 @@ YUI.Env.parseUA = function(subUA) {
* @default 0
* @static
*/
- nodejs: 0
+ nodejs: 0,
+ /*
+ * Window8/IE10 Application host environment
+ * @property winjs
+ * @type Boolean
+ * @static
+ */
+ winjs: ((typeof Windows !== "undefined") && Windows.System)
},
ua = subUA || nav && nav.userAgent,
@@ -11136,7 +11143,7 @@ YUI.Env[Y.version].modules = YUI.Env[Y.version].modules || {
]
}
};
-YUI.Env[Y.version].md5 = 'e8d703c81e9f6ffe00d514d00d7adcd7';
+YUI.Env[Y.version].md5 = '5fe7d71505fef8108b090c35db73bcde';
}, '@VERSION@', {"requires": ["loader-base"]});
View

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e38e757

Please sign in to comment.