mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Let about 300 non UI tests run
This commit is contained in:
@@ -29,28 +29,29 @@ export function isRunningOnEmulator(): boolean {
|
||||
|
||||
export var allTests = {};
|
||||
|
||||
// allTests["PLATFORM"] = require("./platform-tests");
|
||||
// allTests["FILE SYSTEM"] = require("./file-system-tests");
|
||||
// allTests["HTTP"] = require("./http-tests");
|
||||
// allTests["XHR"] = require("./xhr-tests");
|
||||
// allTests["FETCH"] = require("./fetch-tests");
|
||||
// allTests["APPLICATION SETTINGS"] = require("./application-settings-tests");
|
||||
// allTests["APPLICATION"] = require("./application-tests");
|
||||
// allTests["IMAGE SOURCE"] = require("./image-source-tests");
|
||||
// allTests["OBSERVABLE-ARRAY"] = require("./data/observable-array-tests");
|
||||
// allTests["VIRTUAL-ARRAY"] = require("./data/virtual-array-tests");
|
||||
// allTests["OBSERVABLE"] = require("./data/observable-tests");
|
||||
// allTests["TIMER"] = require("./timer-tests");
|
||||
// allTests["COLOR"] = require("./color-tests");
|
||||
// allTests["DEPENDENCY-OBSERVABLE"] = require("./ui/dependency-observable-tests");
|
||||
allTests["PLATFORM"] = require("./platform-tests");
|
||||
allTests["FILE SYSTEM"] = require("./file-system-tests");
|
||||
allTests["HTTP"] = require("./http-tests");
|
||||
allTests["XHR"] = require("./xhr-tests");
|
||||
allTests["FETCH"] = require("./fetch-tests");
|
||||
allTests["APPLICATION SETTINGS"] = require("./application-settings-tests");
|
||||
allTests["APPLICATION"] = require("./application-tests");
|
||||
allTests["IMAGE SOURCE"] = require("./image-source-tests");
|
||||
allTests["OBSERVABLE-ARRAY"] = require("./data/observable-array-tests");
|
||||
allTests["VIRTUAL-ARRAY"] = require("./data/virtual-array-tests");
|
||||
allTests["OBSERVABLE"] = require("./data/observable-tests");
|
||||
allTests["TIMER"] = require("./timer-tests");
|
||||
allTests["COLOR"] = require("./color-tests");
|
||||
|
||||
allTests["DEPENDENCY-OBSERVABLE"] = require("./ui/dependency-observable-tests");
|
||||
// allTests["BINDABLE"] = require("./ui/bindable-tests");
|
||||
// allTests["BINDING-EXPRESSIONS"] = require("./ui/binding-expressions-tests");
|
||||
// allTests["XML-PARSER"] = require("./xml-parser-tests/xml-parser-tests");
|
||||
allTests["XML-PARSER"] = require("./xml-parser-tests/xml-parser-tests");
|
||||
// allTests["FORMATTEDSTRING"] = require("./text/formatted-string-tests");
|
||||
// allTests["FILE-SYSTEM-ACCESS"] = require("./file-system-access-tests/file-system-access-tests");
|
||||
// allTests["FILE-NAME-RESOLVER"] = require("./file-name-resolver-tests/file-name-resolver-tests");
|
||||
// allTests["WEAK-EVENTS"] = require("./weak-event-listener-tests");
|
||||
// allTests["CONNECTIVITY"] = require("./connectivity-tests");
|
||||
allTests["FILE-SYSTEM-ACCESS"] = require("./file-system-access-tests/file-system-access-tests");
|
||||
allTests["FILE-NAME-RESOLVER"] = require("./file-name-resolver-tests/file-name-resolver-tests");
|
||||
allTests["WEAK-EVENTS"] = require("./weak-event-listener-tests");
|
||||
allTests["CONNECTIVITY"] = require("./connectivity-tests");
|
||||
|
||||
// allTests["PROXY-VIEW-CONTAINER"] = require("./ui/proxy-view-container/proxy-view-container-tests")
|
||||
// allTests["SCROLL-VIEW"] = require("./ui/scroll-view/scroll-view-tests");
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
} from "ui/layouts/flexbox-layout";
|
||||
// << flexbox-layout-require
|
||||
|
||||
import {View, unsetValue, Length} from "ui/core/view";
|
||||
import {View, unsetValue, Length, PercentLength} from "ui/core/view";
|
||||
import {Label} from "ui/label";
|
||||
import * as TKUnit from "../../TKUnit";
|
||||
import * as helper from "../helper";
|
||||
@@ -1844,7 +1844,7 @@ export const testWrap_childMargin_horizontal = test(
|
||||
({flexbox, text1, text2, text3}) => {
|
||||
isBelow(text2, text1);
|
||||
isRightOf(text3, text2);
|
||||
closeEnough(height(flexbox), height(text1) + height(text2) + Length.toDevicePixels(text2.style.marginTop, 0) + Length.toDevicePixels(text2.style.marginBottom, 0));
|
||||
closeEnough(height(flexbox), height(text1) + height(text2) + PercentLength.toDevicePixels(text2.style.marginTop, 0, Number.NaN) + PercentLength.toDevicePixels(text2.style.marginBottom, 0, Number.NaN));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1907,7 +1907,7 @@ export const testWrap_childMargin_vertical = test(
|
||||
isRightOf(text2, text1);
|
||||
isBelow(text3, text2);
|
||||
// dips anyone?
|
||||
closeEnough(width(flexbox), width(text1) + width(text2) + Length.toDevicePixels(text2.marginLeft, 0) + Length.toDevicePixels(text2.marginRight, 0));
|
||||
closeEnough(width(flexbox), width(text1) + width(text2) + PercentLength.toDevicePixels(text2.marginLeft, 0, Number.NaN) + PercentLength.toDevicePixels(text2.marginRight, 0, Number.NaN));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"version": "2.4.0"
|
||||
},
|
||||
"tns-android": {
|
||||
"version": "2.4.0"
|
||||
"version": "2.4.1"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -24,4 +24,4 @@
|
||||
"lazy": "1.0.11",
|
||||
"typescript": "~2.0.10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user