function Application_Core_FuncName() {
this .publicMethod = function () {
}
this ._privateMethod = function () {
}
}
* This source code was highlighted with Source Code Highlighter .
function Application_Core_FuncName() {
this .publicMethod = function () {
}
this ._privateMethod = function () {
}
}
* This source code was highlighted with Source Code Highlighter .
function Application_Core_FuncName() {
this .publicMethod = function () {
}
this ._privateMethod = function () {
}
}
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_HelperName = {
init: function () {
},
publicMethod: function () {
},
_privateMethod: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_HelperName = {
init: function () {
},
publicMethod: function () {
},
_privateMethod: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_HelperName = {
init: function () {
},
publicMethod: function () {
},
_privateMethod: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
Application_Helper_HelperName._privateMethod()
.
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
})
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
})
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
})
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
};
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
});
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
});
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
},
_getUsername: function () {
},
_getInfo: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
},
_getUsername: function () {
},
_getInfo: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
},
_getUsername: function () {
},
_getInfo: function () {
}
};
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
});
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
var html = Application_Helper_UserInfo.getHTML.call(mockUserInfo);
if (html != undefined && html.indexOf( 'id="application_helper_userinfo"' ) != -1 && html.indexOf( 'Name' ) != -1 && html.indexOf( 'photo.png' ) != -1 && html.indexOf( 'Information' ) != -1) {
ok( true , "HTML ok" );
} else {
ok( false , "HTML does not pass" );
}
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
var html = Application_Helper_UserInfo.getHTML.call(mockUserInfo);
if (html != undefined && html.indexOf( 'id="application_helper_userinfo"' ) != -1 && html.indexOf( 'Name' ) != -1 && html.indexOf( 'photo.png' ) != -1 && html.indexOf( 'Information' ) != -1) {
ok( true , "HTML ok" );
} else {
ok( false , "HTML does not pass" );
}
});
* This source code was highlighted with Source Code Highlighter .
module( "User Info" );
test( "main" , function () {
equals( typeof (Application_Helper_UserInfo), "object" , "Check object" );
equals(Application_Helper_UserInfo.hasOwnProperty( "getHTML" ), true , "Check existing method getHTML" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getPhoto" ), true , "Check existing private method _getPhoto" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getUsername" ), true , "Check existing private method _getUsername" );
equals(Application_Helper_UserInfo.hasOwnProperty( "_getInfo" ), true , "Check existing method _getInfo" );
var mockUserInfo = {
username: 'Name' ,
photo: 'photo.png' ,
info: 'Information'
};
var photo = Application_Helper_UserInfo._getPhoto.call(mockUserInfo);
equals(photo, 'photo.png' , 'Checking photo' );
var username = Application_Helper_UserInfo._getUsername.call(mockUserInfo);
equals(username, 'Name' , 'Checking username' );
var info = Application_Helper_UserInfo._getInfo.call(mockUserInfo);
equals(info, 'Information' , 'Checking information' );
var html = Application_Helper_UserInfo.getHTML.call(mockUserInfo);
if (html != undefined && html.indexOf( 'id="application_helper_userinfo"' ) != -1 && html.indexOf( 'Name' ) != -1 && html.indexOf( 'photo.png' ) != -1 && html.indexOf( 'Information' ) != -1) {
ok( true , "HTML ok" );
} else {
ok( false , "HTML does not pass" );
}
});
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
var html = '<div id="application_helper_userinfo">' ;
html += '<div>' + Application_Helper_UserInfo._getPhoto.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getUsername.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getInfo.call( this ) + '</div>' ;
html += '</div>' ;
return html;
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
var html = '<div id="application_helper_userinfo">' ;
html += '<div>' + Application_Helper_UserInfo._getPhoto.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getUsername.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getInfo.call( this ) + '</div>' ;
html += '</div>' ;
return html;
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
var Application_Helper_UserInfo = {
getHTML: function () {
var html = '<div id="application_helper_userinfo">' ;
html += '<div>' + Application_Helper_UserInfo._getPhoto.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getUsername.call( this ) + '</div>' ;
html += '<div>' + Application_Helper_UserInfo._getInfo.call( this ) + '</div>' ;
html += '</div>' ;
return html;
},
_getPhoto: function () {
return this .photo;
},
_getUsername: function () {
return this .username;
},
_getInfo: function () {
return this .info;
}
};
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/119465/