You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times
* Condense the changes when applying properties
TKUnit.assertEqual(buttons[i].colorSetNativeCount,expectedChangesAfterResettingClasses[i],`Expected ${buttons[i].id} native set after classes are reapplied.`);
149
+
TKUnit.assertEqual(buttons[i].colorPropertyChangeCount,expectedChangesAfterResettingClasses[i],`Expected ${buttons[i].id} change notifications classes are reapplied.`);
150
+
}
151
+
152
+
conststack: any=page.getViewById("stack");
153
+
page.content=null;
154
+
155
+
for(leti=0;i<buttons.length;i++){
156
+
TKUnit.assertEqual(buttons[i].colorSetNativeCount,expectedChangesAfterResettingClasses[i],`Expected ${buttons[i].id} native set to not be called when removed from page.`);
157
+
TKUnit.assertEqual(buttons[i].colorPropertyChangeCount,expectedChangesAfterResettingClasses[i],`Expected ${buttons[i].id} change notifications for css properties to not occur when removed from page.`);
158
+
}
159
+
160
+
page.content=stack;
161
+
162
+
// TODO: The check counts here should be the same as the counts before removing from the page.
TKUnit.assertEqual(buttons[i].colorSetNativeCount,expectedNativeSettersAfterReaddedToPage[i],`Expected ${buttons[i].id} native set to not be called when added to page.`);
166
+
TKUnit.assertEqual(buttons[i].colorPropertyChangeCount,expectedChangesAfterResettingClasses[i],`Expected ${buttons[i].id} change notifications for css properties to not occur when added to page.`);
0 commit comments