| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,7 +146,7 @@ export function test_ClearHistory_WithTransition() { | |||
| 146 | 146 | // Test case for https://github.com/NativeScript/NativeScript/issues/1948 | |
| 147 | 147 | export function test_ClearHistoryWithTransitionDoesNotBreakNavigation() { | |
| 148 | 148 | let topmost = topmostFrame(); | |
| 149 | - let mainTestPage = topmost.currentPage; | ||
| 149 | + let mainTestPage = new Page(); | ||
| 150 | 150 | let mainPageFactory = function (): Page { | |
| 151 | 151 | return mainTestPage; | |
| 152 | 152 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,15 @@ | |||
| 1 | 1 | /* tslint:disable */ | |
| 2 | 2 | import * as TKUnit from "./TKUnit"; | |
| 3 | - import { _resetRootView, getRootView } from "tns-core-modules/application"; | ||
| 3 | + import { _resetRootView } from "tns-core-modules/application"; | ||
| 4 | 4 | import { messageType } from "tns-core-modules/trace"; | |
| 5 | - import { topmost, Frame, NavigationEntry } from "tns-core-modules/ui/frame"; | ||
| 5 | + import { topmost, Frame } from "tns-core-modules/ui/frame"; | ||
| 6 | 6 | import { Page } from "tns-core-modules/ui/page"; | |
| 7 | 7 | import { TextView } from "tns-core-modules/ui/text-view"; | |
| 8 | 8 | import { Button } from "tns-core-modules/ui/button"; | |
| 9 | 9 | import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; | |
| 10 | 10 | import * as platform from "tns-core-modules/platform"; | |
| 11 | 11 | import "./ui-test"; | |
| 12 | - import * as fs from "tns-core-modules/file-system"; | ||
| 13 | - import { unsetValue } from "tns-core-modules/ui/core/properties"; | ||
| 14 | - import { ad, ios } from "tns-core-modules/utils/utils"; | ||
| 12 | + import { ios } from "tns-core-modules/utils/utils"; | ||
| 15 | 13 | ||
| 16 | 14 | Frame.defaultAnimatedNavigation = false; | |
| 17 | 15 | ||
@@ -148,12 +146,12 @@ if (platform.isIOS && ios.MajorVersion > 10) { | |||
| 148 | 146 | import * as stylePropertiesTests from "./ui/styling/style-properties-tests"; | |
| 149 | 147 | allTests["STYLE-PROPERTIES"] = stylePropertiesTests; | |
| 150 | 148 | ||
| 151 | - import * as tabViewRootTests from "./ui/tab-view/tab-view-root-tests"; | ||
| 152 | - allTests["TAB-VIEW-ROOT"] = tabViewRootTests; | ||
| 153 | - | ||
| 154 | 149 | import * as frameTests from "./ui/frame/frame-tests"; | |
| 155 | 150 | allTests["FRAME"] = frameTests; | |
| 156 | 151 | ||
| 152 | + import * as tabViewRootTests from "./ui/tab-view/tab-view-root-tests"; | ||
| 153 | + allTests["TAB-VIEW-ROOT"] = tabViewRootTests; | ||
| 154 | + | ||
| 157 | 155 | import * as viewTests from "./ui/view/view-tests"; | |
| 158 | 156 | allTests["VIEW"] = viewTests; | |
| 159 | 157 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -849,7 +849,7 @@ export const testAlignContent_spaceBetween_withPadding = test( | |||
| 849 | 849 | isBottomAlignedWith(text3, flexbox); | |
| 850 | 850 | isLeftAlignedWith(text3, flexbox); | |
| 851 | 851 | } | |
| 852 | - ); | ||
| 852 | + ); | ||
| 853 | 853 | ||
| 854 | 854 | export const testAlignContent_spaceAround = test( | |
| 855 | 855 | activity_align_content_test, | |
@@ -862,9 +862,9 @@ export const testAlignContent_spaceAround = test( | |||
| 862 | 862 | let spaceAround = height(flexbox) - height(text1) - height(text3); | |
| 863 | 863 | spaceAround /= 4; // Divide by the number of flex lines * 2 | |
| 864 | 864 | ||
| 865 | - isBelowWith(flexbox, text1, spaceAround); | ||
| 865 | + isBelowWith(flexbox, text1, Math.ceil(spaceAround)); | ||
| 866 | 866 | isBelowWith(text1, text3, height(text1) + 2 * spaceAround); | |
| 867 | - isAboveWith(text3, flexbox, spaceAround); | ||
| 867 | + isAboveWith(text3, flexbox, Math.ceil(spaceAround)); | ||
| 868 | 868 | isAboveWith(text1, text3, height(text3) + 2 * spaceAround); | |
| 869 | 869 | ||
| 870 | 870 | // TODO: equal(flexbox.getFlexLines().size(), is(2)); | |
@@ -992,9 +992,9 @@ export const testAlignContent_spaceAround_flexDirection_column = test( | |||
| 992 | 992 | ||
| 993 | 993 | let spaceAround = width(flexbox) - width(text1) - width(text3); | |
| 994 | 994 | spaceAround /= 4; // Divide by the number of flex lines * 2 | |
| 995 | - isLeftWith(flexbox, text1, spaceAround); | ||
| 995 | + isLeftWith(flexbox, text1, Math.ceil(spaceAround)); | ||
| 996 | 996 | isLeftWith(text1, text3, width(text1) + 2 * spaceAround); | |
| 997 | - isRightWith(text3, flexbox, spaceAround); | ||
| 997 | + isRightWith(text3, flexbox, Math.ceil(spaceAround)); | ||
| 998 | 998 | isRightWith(text1, text3, width(text3) + 2 * spaceAround); | |
| 999 | 999 | } | |
| 1000 | 1000 | ); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments