mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix for types - isString and isNumber. Modified several tests to pass on VS Emulator for Android. Fix page background to be applied in onLoaded method. Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not. Remove android_constants because they are per theme and we cannot use them safely. Fix for SearchBar reseColorProperty method.
To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:
##iOS
var app = require("application");
app.init(null);
var tests = require("Tests");
tests.runAll();
##Android
app.init({
getActivity: function(intent) {
return com.tns.NativeScriptActivity.extend({});
},
onCreate: function() {
require("application").init(this);
require("Tests").runAll();
}
});