mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #3506 from NativeScript/cankov/css-animation-tests
Fixed CSS-ANIMATION tests
This commit is contained in:
@ -95,7 +95,7 @@ allTests["REPEATER"] = require("./ui/repeater/repeater-tests");
|
|||||||
allTests["SEARCH-BAR"] = require('./ui/search-bar/search-bar-tests');
|
allTests["SEARCH-BAR"] = require('./ui/search-bar/search-bar-tests');
|
||||||
allTests["SEGMENTED-BAR"] = require("./ui/segmented-bar/segmented-bar-tests");
|
allTests["SEGMENTED-BAR"] = require("./ui/segmented-bar/segmented-bar-tests");
|
||||||
allTests["ANIMATION"] = require("./ui/animation/animation-tests");
|
allTests["ANIMATION"] = require("./ui/animation/animation-tests");
|
||||||
//allTests["CSS-ANIMATION"] = require("./ui/animation/css-animation-tests");
|
allTests["CSS-ANIMATION"] = require("./ui/animation/css-animation-tests");
|
||||||
|
|
||||||
// Skip transitions on android emulators with API 23
|
// Skip transitions on android emulators with API 23
|
||||||
if (!(platform.device.os === platform.platformNames.android && parseInt(platform.device.sdkVersion) === 23 && isRunningOnEmulator())) {
|
if (!(platform.device.os === platform.platformNames.android && parseInt(platform.device.sdkVersion) === 23 && isRunningOnEmulator())) {
|
||||||
|
@ -99,7 +99,7 @@ export class Color implements definition.Color {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public equals(value: definition.Color): boolean {
|
public equals(value: definition.Color): boolean {
|
||||||
return this.argb === value.argb;
|
return value && this.argb === value.argb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static equals(value1: definition.Color, value2: definition.Color): boolean {
|
public static equals(value1: definition.Color, value2: definition.Color): boolean {
|
||||||
|
@ -195,10 +195,10 @@ function parseKeyframeDeclarations(keyframe: Object): Array<KeyframeDeclaration>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declarations[propertyName] = parseFloat(value);
|
delete declarations[propertyName];
|
||||||
}
|
}
|
||||||
else if (propertyName === "backgroundColor" || propertyName === "background-color") {
|
else if (propertyName === "backgroundColor" || propertyName === "background-color") {
|
||||||
declarations[propertyName] = new Color(value);
|
declarations["backgroundColor"] = new Color(value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
declarations[propertyName] = value;
|
declarations[propertyName] = value;
|
||||||
|
Reference in New Issue
Block a user