!FAIL: JSMin : Overall (1 of 1 tests run so far have failed) ---Output: 1237 bytes /*! is.js (c) 2001 Douglas Crockford 2001 June 3 */ var is={ie:navigator.appName=='Microsoft Internet Explorer',java:navigator.javaEnabled(),ns:navigator.appName=='Netscape',ua:navigator.userAgent.toLowerCase(),version:parseFloat(navigator.appVersion.substr(21))||parseFloat(navigator.appVersion),win:navigator.platform=='Win32'} /*!* * preserve this comment, too */ is.mac=is.ua.indexOf('mac')>=0;if(is.ua.indexOf('opera')>=0){is.ie=is.ns=false;is.opera=true;} if(is.ua.indexOf('gecko')>=0){is.ie=is.ns=false;is.gecko=true;}/*@cc_on /*@if (@_win32) if (is.ie && is.win) document.write("PASS: IE/win honored conditional comment.
"); @else @*/if(is.ie&&is.win) document.write("FAIL: IE/win did not honor multi-line conditional comment.
");else document.write("PASS: Non-IE/win browser ignores multi-line conditional comment.
");/*@end @*/var recognizesCondComm=true;//@cc_on/* recognizesCondComm=false;//@cc_on*/ if((is.ie&&is.win)==recognizesCondComm) document.write("PASS: IE/win honored single-line conditional comment.
");else document.write("FAIL: Non-IE/win browser did not ignore single-line conditional comment.
");//@cc_on/* //@cc_on*/ //@cc_on/* 'hello'; /*!* preserved */ /*!* preserved */ ---Expected: 1263 bytes /*! is.js (c) 2001 Douglas Crockford 2001 June 3 */ var is={ie:navigator.appName=='Microsoft Internet Explorer',java:navigator.javaEnabled(),ns:navigator.appName=='Netscape',ua:navigator.userAgent.toLowerCase(),version:parseFloat(navigator.appVersion.substr(21))||parseFloat(navigator.appVersion),win:navigator.platform=='Win32'} /*!* * preserve this comment, too */ is.mac=is.ua.indexOf('mac')>=0;if(is.ua.indexOf('opera')>=0){is.ie=is.ns=false;is.opera=true;} if(is.ua.indexOf('gecko')>=0){is.ie=is.ns=false;is.gecko=true;}/*@cc_on /*@if (@_win32) if (is.ie && is.win) document.write("PASS: IE/win honored conditional comment.
"); @else @*/if(is.ie&&is.win) document.write("FAIL: IE/win did not honor multi-line conditional comment.
");else document.write("PASS: Non-IE/win browser ignores multi-line conditional comment.
");/*@end @*/var recognizesCondComm=true;//@cc_on/* recognizesCondComm=false;//@cc_on*/ if((is.ie&&is.win)==recognizesCondComm) document.write("PASS: IE/win honored single-line conditional comment.
");else document.write("FAIL: Non-IE/win browser did not ignore single-line conditional comment.
");//@cc_on/* //@cc_on*/ //@cc_on/* 'hello'; /*!* preserved */ /*!* preserved */ ---Source: 1863 bytes /*! is.js (c) 2001 Douglas Crockford 2001 June 3 */ // is // The -is- object is used to identify the browser. Every browser edition // identifies itself, but there is no standard way of doing it, and some of // the identification is deceptive. This is because the authors of web // browsers are liars. For example, Microsoft's IE browsers claim to be // Mozilla 4. Netscape 6 claims to be version 5. var is = { ie: navigator.appName == 'Microsoft Internet Explorer', java: navigator.javaEnabled(), ns: navigator.appName == 'Netscape', ua: navigator.userAgent.toLowerCase(), version: parseFloat(navigator.appVersion.substr(21)) || parseFloat(navigator.appVersion), win: navigator.platform == 'Win32' } /*!* * preserve this comment, too */ is.mac = is.ua.indexOf('mac') >= 0; if (is.ua.indexOf('opera') >= 0) { is.ie = is.ns = false; is.opera = true; } if (is.ua.indexOf('gecko') >= 0) { is.ie = is.ns = false; is.gecko = true; } /*@cc_on /*@if (@_win32) if (is.ie && is.win) document.write("PASS: IE/win honored conditional comment.
"); @else @*/ if (is.ie && is.win) document.write("FAIL: IE/win did not honor multi-line conditional comment.
"); else document.write("PASS: Non-IE/win browser ignores multi-line conditional comment.
"); /*@end @*/ var recognizesCondComm = true; //@cc_on/* recognizesCondComm = false; //@cc_on*/ if ((is.ie && is.win) == recognizesCondComm) document.write("PASS: IE/win honored single-line conditional comment.
"); else document.write("FAIL: Non-IE/win browser did not ignore single-line conditional comment.
"); // hello //@cc_on/* // world //@cc_on*/ //@cc_on/* 'hello'; /*!* preserved */ /*!* preserved */ PASS: JSMin : Handle "+ ++a" syntax (Issue 144) (1 of 2 tests run so far have passed) ---Output: 55 bytes a/++b;a*--b;a++-b;a+--b;a-++b;a+-b;a+ ++b;a+--b;a- --b; ---Expected: 55 bytes a/++b;a*--b;a++-b;a+--b;a-++b;a+-b;a+ ++b;a+--b;a- --b; ---Source: 121 bytes a / ++b; a * --b; a++ - b; a + --b; a - ++b; a + -b; a + ++b; a + --b; a - --b; !FAIL: JSMin : Handle \n!function()... (Issue 256) (2 of 3 tests run so far have failed) ---Output: 43 bytes !function(){}(window) !function(){}(window) ---Expected: 44 bytes !function(){}(window) !function(){}(window) ---Source: 46 bytes !function(){}(window) !function(){}(window) !FAIL: JSMin : Identify RegExp literals (3 of 4 tests run so far have failed) ---Output: 119 bytes function testIssue74(){return /'/;} !function(s){return /^[£$€?.]/.test(s);}();typeof / ' /;x=/ [/] /;1/foo;(2)/foo; ---Expected: 121 bytes function testIssue74(){return /'/;} !function(s){return /^[£$€?.]/.test(s);}();typeof / ' /;x=/ [/] /;1/foo;(2)/foo; ---Source: 175 bytes function testIssue74() { return /'/; } !function(s) { return /^[£$€?.]/.test(s); }(); typeof / ' /; x = / [/] /; 1 / foo; (2) / foo; PASS: JSMin : throw on Unterminated String (2 of 5 tests run so far have passed) PASS: JSMin : throw on Unterminated RegExp (3 of 6 tests run so far have passed) PASS: JSMin : throw on Unterminated Comment (4 of 7 tests run so far have passed)