mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(tabs-ios9): no view controller managing visible view error (#7837)
This commit is contained in:
@@ -6,6 +6,11 @@ import * as TKUnit from "../tk-unit";
|
||||
import * as xmlModule from "tns-core-modules/xml";
|
||||
import * as fs from "tns-core-modules/file-system";
|
||||
import * as builder from "tns-core-modules/ui/builder";
|
||||
import { isIOS } from "tns-core-modules/platform";
|
||||
import { device } from "tns-core-modules/platform";
|
||||
import lazy from "tns-core-modules/utils/lazy";
|
||||
|
||||
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
|
||||
|
||||
export var test_XmlParser_IsDefined = function () {
|
||||
TKUnit.assertNotEqual(xmlModule.XmlParser, undefined, "Class XmlParser should be defined!");
|
||||
@@ -94,6 +99,10 @@ export var test_XmlParser_OnErrorIsCalledWhenAnErrorOccurs = function () {
|
||||
};
|
||||
|
||||
export var test_XmlParser_IntegrationTest = function () {
|
||||
if (isIOS && sdkVersion() < 10) {
|
||||
return;
|
||||
}
|
||||
|
||||
var actualResult = "";
|
||||
var xmlParser = new xmlModule.XmlParser(function (event: xmlModule.ParserEvent) {
|
||||
if (event.eventType === xmlModule.ParserEventType.Text && event.data.trim() === "") {
|
||||
@@ -194,6 +203,10 @@ export var test_XmlParser_DummyDocumentationTest = function () {
|
||||
};
|
||||
|
||||
export var test_XmlParser_NamespacesTest = function () {
|
||||
if (isIOS && sdkVersion() < 10) {
|
||||
return;
|
||||
}
|
||||
|
||||
var xmlParser = new xmlModule.XmlParser(function (event: xmlModule.ParserEvent) {
|
||||
if (event.eventType !== xmlModule.ParserEventType.StartElement) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user