Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook committed Jan 4, 2022
1 parent d693f23 commit be59401
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
3 changes: 2 additions & 1 deletion src/source/ml/ItemFocusManager.spec.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace tests
@tags("ml")
@ignore("fix me")
@tags("ml", "fixme")
@suite("ItemFocusManager tests")
class ItemFocusManagerTests extends tests.BaseTestSuite

Expand Down
15 changes: 8 additions & 7 deletions src/source/ml/ItemViewManager.spec.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace tests
@tags("ml")
@ignore("fix me")
@tags("ml", "fixme")
@suite("ItemViewManager tests")
class ItemViewManagerTests extends tests.BaseTestSuite

Expand Down Expand Up @@ -44,26 +45,26 @@ namespace tests
container.translation = [0, 0]
child.translation = [300, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
container.translation = [300, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x

container.translation = [-300, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x

container.translation = [1000, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x

container.translation = [-1000, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x

child.translation = [1000, 0]
'bs:disable-next-line
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x
' ? "P" ; child.ancestorBoundingRect(owner).x ; " C " ; child.BoundingRect().x

end function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
"id": "forgotText_1",
"_type": "mv_Label",
"text": "nba.com/forgot-de"
"text": "org.com/forgot-de"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{
"id": "forgotText_1",
"_type": "mv_Label",
"text": "nba.com/forgot-fr"
"text": "org.com/forgot-fr"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"id": "emailInput",
"_type": "nba_TextInput",
"_type": "mv_TextInput",
"size": [
610,
102
Expand All @@ -54,7 +54,7 @@
"_children": [
{
"id": "passwordInput",
"_type": "nba_TextInput",
"_type": "mv_TextInput",
"size": [
610,
102
Expand All @@ -68,7 +68,7 @@
},
{
"id": "signInButton",
"_type": "nba_Button",
"_type": "mv_Button",
"size": [
152,
72
Expand All @@ -83,7 +83,7 @@
},
{
"id": "createAccountButton",
"_type": "nba_Button",
"_type": "mv_Button",
"size": [
259,
72
Expand Down Expand Up @@ -127,7 +127,7 @@
"_type": "mv_Label",
"fontKey": "SystemBold,30",
"color": "#000000",
"text": "nba.com/forgot"
"text": "org.com/forgot"
},
{
"size": [
Expand Down
14 changes: 7 additions & 7 deletions src/source/view/StyleManager.spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ namespace tests
})
m.assertEqual(bundle.views[2], {
"id": "emailInput",
"_type": "nba_TextInput",
"_type": "mv_TextInput",
"size": [
610,
102
Expand Down Expand Up @@ -441,7 +441,7 @@ namespace tests
}))
m.assertEqual(lcase(formatJson(englishBundle.views[0])), expected)
m.assertEqual(lcase(formatJson(englishBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "Password"
"id": "passwordInput"
"isHandlingSelection": false
Expand Down Expand Up @@ -469,7 +469,7 @@ namespace tests
"uri": "pkg:/images/sign-in-logo-fr-$$RES$$.png"
})))
m.assertEqual(lcase(formatJson(frenchBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "le mot de passe"
"id": "passwordInput"
"isHandlingSelection": false
Expand All @@ -490,7 +490,7 @@ namespace tests
"uri": "pkg:/images/sign-in-logo-de-$$res$$.png"
})))
m.assertEqual(lcase(formatJson(germanBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "Passwort"
"id": "passwordInput"
"isHandlingSelection": false
Expand Down Expand Up @@ -539,7 +539,7 @@ namespace tests
}))
m.assertEqual(lcase(formatJson(englishBundle.views[0])), expected)
m.assertEqual(lcase(formatJson(englishBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "Password"
"id": "passwordInput"
"isHandlingSelection": false
Expand Down Expand Up @@ -567,7 +567,7 @@ namespace tests
"uri": "pkg:/images/sign-in-logo-fr-$$RES$$.png"
})))
m.assertEqual(lcase(formatJson(frenchBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "le mot de passe"
"id": "passwordInput"
"isHandlingSelection": false
Expand All @@ -588,7 +588,7 @@ namespace tests
"uri": "pkg:/images/sign-in-logo-de-$$res$$.png"
})))
m.assertEqual(lcase(formatJson(germanBundle.views[3]._children[0])), lcase(formatJson({
"_type": "nba_TextInput"
"_type": "mv_TextInput"
"hintText": "Passwort"
"id": "passwordInput"
"isHandlingSelection": false
Expand Down

0 comments on commit be59401

Please sign in to comment.