Permalink
Browse files

useage info is sent to stderr instead of stdout. [fixes #2095077].

  • Loading branch information...
Adam Moore
Adam Moore committed Mar 17, 2010
1 parent d84c5da commit 6e67ea01b059dfef61b6479aa38f875efd712047
Showing with 96 additions and 1 deletion.
  1. +1 −1 src/com/yahoo/platform/yui/compressor/YUICompressor.java
  2. +17 −0 tests/_munge.js
  3. +5 −0 tests/_string_combo.js
  4. +73 −0 tests/_syntax_error.js
@@ -209,7 +209,7 @@ public EvaluatorException runtimeError(String message, String sourceName,
}
private static void usage() {
- System.out.println(
+ System.err.println(
"\nUsage: java -jar yuicompressor-x.y.z.jar [options] [input file]\n\n"
+ "Global Options\n"
View
@@ -0,0 +1,17 @@
+(function() {
+ var w = window;
+
+ // logger
+ //
+ // var c = 1..toString();
+
+ w.hello = function(a, abc) {
+ // "a:nomunge"; // this useless statement causes a munging error
+ var xyz = "a:nomunge",
+ d = abc; // but it works fine like this
+
+
+
+ w.alert("Hello, " + a);
+ };
+})();
View
@@ -0,0 +1,5 @@
+function test(){
+ var a = "a" +
+ "b" +
+ "c";
+}
View
@@ -0,0 +1,73 @@
+
+window.$ = $telerik.$;
+$(document).ready(function() {
+movePageElements();
+
+var text = $('textarea').val();
+
+if (text != "")
+$('textarea').attr("style", "display: block;");
+else
+$('textarea').attr("style", "display: none;");
+
+//cleanup
+text = null;
+});
+
+function movePageElements() {
+var num = null;
+var pagenum = $(".pagecontrolscontainer");
+if (pagenum.length > 0) {
+var num = pagenum.attr("pagenumber");
+if ((num > 5) && (num < 28)) {
+var x = $('div#commentbutton');
+$("div.buttonContainer").prepend(x);
+}
+else {
+$('div#commentbutton').attr("style", "display: none;");
+}
+}
+
+//Add in dropshadowing
+if ((num > 5) && (num < 28)) {
+var top = $('.dropshadow-top');
+var middle = $('#dropshadow');
+var bottom = $('.dropshadow-bottom');
+$('#page').prepend(top);
+$('#topcontainer').after(middle);
+middle.append($('#topcontainer'));
+middle.after(bottom);
+}
+
+//cleanup
+num = null;
+pagenum = null;
+top = null;
+middle = null;
+bottom=null;
+}
+
+function expandCollapseDiv(id) {
+$telerik.$(id).slideToggle("slow");
+}
+
+function expandCollapseHelp() {
+$('.helpitems').slideToggle("slow");
+
+//Add in dropshadowing
+if ($('#helpcontainer').length) {
+$('#help-dropshadow-bot').insertAfter('#helpcontainer');
+$('#help-dropshadow-bot').removeAttr("style");
+}
+}
+
+function expandCollapseComments() {
+var style = $('textarea').attr("style");
+if (style == "display: none;")
+$('textarea').fadeIn().focus();
+else
+$('textarea').fadeOut();
+
+//cleanup
+style = null;
+}

0 comments on commit 6e67ea0

Please sign in to comment.