mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): proper disposal and recreation of iOS native views (#9879)
This commit is contained in:
committed by
Nathan Walker
parent
b7e6128576
commit
f548fdc735
@@ -1,7 +1,7 @@
|
||||
import * as helper from '../../ui-helper';
|
||||
import * as btnCounter from './pages/button-counter';
|
||||
import * as TKUnit from '../../tk-unit';
|
||||
import { isIOS, isAndroid } from '@nativescript/core';
|
||||
import { isIOS } from '@nativescript/core';
|
||||
|
||||
// Integration tests that asser sertain runtime behavior, lifecycle events atc.
|
||||
|
||||
@@ -163,7 +163,7 @@ export function test_css_sets_properties() {
|
||||
page.content = stack;
|
||||
|
||||
// TODO: The check counts here should be the same as the counts before removing from the page.
|
||||
const expectedNativeSettersAfterReaddedToPage = isAndroid ? [2, 4, 4, 4] : expectedChangesAfterResettingClasses;
|
||||
const expectedNativeSettersAfterReaddedToPage = [2, 4, 4, 4];
|
||||
for (let i = 0; i < buttons.length; i++) {
|
||||
TKUnit.assertEqual(buttons[i].colorSetNativeCount, expectedNativeSettersAfterReaddedToPage[i], `Expected ${buttons[i].id} native set to not be called when added to page.`);
|
||||
TKUnit.assertEqual(buttons[i].colorPropertyChangeCount, expectedChangesAfterResettingClasses[i], `Expected ${buttons[i].id} change notifications for css properties to not occur when added to page.`);
|
||||
|
||||
Reference in New Issue
Block a user