mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
test fixed
This commit is contained in:
@ -628,10 +628,10 @@ export var testBackgroundColor = function () {
|
|||||||
|
|
||||||
export var testBackgroundImage = function () {
|
export var testBackgroundImage = function () {
|
||||||
var lbl = _createLabelWithBorder();
|
var lbl = _createLabelWithBorder();
|
||||||
|
lbl.cssClass = "myClass";
|
||||||
helper.buildUIAndRunTest(lbl, function (views: Array<viewModule.View>) {
|
helper.buildUIAndRunTest(lbl, function (views: Array<viewModule.View>) {
|
||||||
var page = <page.Page>views[1];
|
var page = <page.Page>views[1];
|
||||||
page.css = "View { background-image: url('~/logo.png') }";
|
page.css = ".myClass { background-image: url('~/logo.png') }";
|
||||||
|
|
||||||
TKUnit.assert(definition.checkNativeBackgroundImage(lbl), "Style background-image not loaded correctly.");
|
TKUnit.assert(definition.checkNativeBackgroundImage(lbl), "Style background-image not loaded correctly.");
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user