| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 00c25b7 commit 11d3884
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -404,3 +404,18 @@ export function test_setting_formattedText_With_UnknownFont_DoesNotCrash() { | |||
| 404 | 404 | TKUnit.waitUntilReady(() => btn.isLayoutValid); | |
| 405 | 405 | }); | |
| 406 | 406 | } | |
| 407 | + | ||
| 408 | + export function test_Native_Background_Color_BorderRadius_Change() { | ||
| 409 | + let view = new buttonModule.Button(); | ||
| 410 | + view.text = "TEST"; | ||
| 411 | + helper.buildUIAndRunTest(view, function (views: Array<viewModule.View>) { | ||
| 412 | + let page = <pagesModule.Page>views[1]; | ||
| 413 | + page.css = ".border { background-color: #00FF00; border-radius: 1; } .colorfilter { background-color: #FF0000; }"; | ||
| 414 | + view.className = "border"; | ||
| 415 | + helper.waitUntilLayoutReady(view); | ||
| 416 | + TKUnit.assertEqual(buttonTestsNative.getNativeBackgroundColor(view).hex, "#00FF00"); | ||
| 417 | + view.className = "colorfilter"; | ||
| 418 | + helper.waitUntilLayoutReady(view); | ||
| 419 | + TKUnit.assertEqual(buttonTestsNative.getNativeBackgroundColor(view).hex, "#FF0000"); | ||
| 420 | + }); | ||
| 421 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,7 @@ export module ad { | |||
| 50 | 50 | ||
| 51 | 51 | if (isSetColorFilterOnlyWidget(nativeView) | |
| 52 | 52 | && drawable | |
| 53 | + && !(drawable instanceof org.nativescript.widgets.BorderDrawable) | ||
| 53 | 54 | && !background.hasBorderWidth() | |
| 54 | 55 | && !background.hasBorderRadius() | |
| 55 | 56 | && !background.clipPath | |
| Back | FazBrowse Home | New Git URL |
0 commit comments