mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Improve unit-tests (#1946)
* Improved unit-tests speed & reliability * Fixed iOS tests. Improved message output
This commit is contained in:
@@ -69,14 +69,14 @@ export class StyleScope {
|
||||
}
|
||||
|
||||
private setCss(cssString: string, cssFileName?: string, append: boolean = false): void {
|
||||
this._css = this._css ? this._css + cssString : cssString;
|
||||
this._css = this._css && append ? this._css + cssString : cssString;
|
||||
if (cssFileName) {
|
||||
this._cssFileName = cssFileName;
|
||||
}
|
||||
|
||||
this._reset();
|
||||
|
||||
const parsedSelectors = StyleScope.createSelectorsFromCss(cssString, cssFileName, this._keyframes);
|
||||
const parsedSelectors = StyleScope.createSelectorsFromCss(this._css, cssFileName, this._keyframes);
|
||||
if (append) {
|
||||
this._localCssSelectors.push.apply(this._localCssSelectors, parsedSelectors);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user