Merge pull request #3506 from NativeScript/cankov/css-animation-tests

Fixed CSS-ANIMATION tests
This commit is contained in:
Panayot Cankov
2017-01-18 13:59:38 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@ -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())) {

View File

@ -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 {

View File

@ -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;