rooibos-roku 5.15.5 → 5.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/framework/source/rooibos/BaseTestSuite.bs +105 -95
- package/dist/lib/framework/source/rooibos/MochaTestReporter.bs +31 -18
- package/dist/lib/framework/source/rooibos/TestResult.bs +2 -1
- package/dist/lib/rooibos/TestGroup.js +7 -2
- package/dist/lib/rooibos/TestGroup.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/rooibos/CodeCoverageProcessor.spec.js +0 -507
- package/dist/lib/rooibos/CodeCoverageProcessor.spec.js.map +0 -1
- package/dist/lib/rooibos/MockUtil.spec.js +0 -484
- package/dist/lib/rooibos/MockUtil.spec.js.map +0 -1
- package/dist/lib/rooibos/TestSuiteBuilder.spec.js +0 -1160
- package/dist/lib/rooibos/TestSuiteBuilder.spec.js.map +0 -1
|
@@ -230,6 +230,7 @@ namespace rooibos
|
|
|
230
230
|
return invalid
|
|
231
231
|
end if
|
|
232
232
|
|
|
233
|
+
m.currentAssertLineNumber = -1
|
|
233
234
|
m.currentResult.throwOnFailedAssertion = m.throwOnFailedAssertion
|
|
234
235
|
if m.catchCrashes and not test.noCatch and not m.noCatch
|
|
235
236
|
try
|
|
@@ -271,14 +272,23 @@ namespace rooibos
|
|
|
271
272
|
' * @param {Dynamic} [msg=""] - message to display in the test report
|
|
272
273
|
' * @returns {boolean} - true if the assert was satisfied, false otherwise
|
|
273
274
|
' */
|
|
274
|
-
function fail(msg = "Error" as string, actual = "" as string, expected = "" as string) as dynamic
|
|
275
|
+
function fail(msg = "Error" as string, actual = "" as string, expected = "" as string, createError = false as boolean) as dynamic
|
|
275
276
|
if m.currentResult.isFail
|
|
276
277
|
if m.throwOnFailedAssertion
|
|
277
278
|
throw m.currentResult.getMessage()
|
|
278
279
|
end if
|
|
279
280
|
return false
|
|
280
281
|
end if
|
|
281
|
-
|
|
282
|
+
|
|
283
|
+
error = invalid
|
|
284
|
+
if createError
|
|
285
|
+
try
|
|
286
|
+
throw msg
|
|
287
|
+
catch error
|
|
288
|
+
end try
|
|
289
|
+
end if
|
|
290
|
+
|
|
291
|
+
m.currentResult.fail(msg, m.currentAssertLineNumber, actual, expected, error)
|
|
282
292
|
return false
|
|
283
293
|
end function
|
|
284
294
|
|
|
@@ -357,7 +367,7 @@ namespace rooibos
|
|
|
357
367
|
if msg = ""
|
|
358
368
|
msg = `expected "${rooibos.common.truncateString(actual)}" to be ${rooibos.common.truncateString(expected)}`
|
|
359
369
|
end if
|
|
360
|
-
return m.fail(msg, actual, expected)
|
|
370
|
+
return m.fail(msg, actual, expected, true)
|
|
361
371
|
end if
|
|
362
372
|
return true
|
|
363
373
|
catch error
|
|
@@ -388,7 +398,7 @@ namespace rooibos
|
|
|
388
398
|
if msg = ""
|
|
389
399
|
msg = `expected "${rooibos.common.truncateString(actual)}" to be ${rooibos.common.truncateString(expected)}`
|
|
390
400
|
end if
|
|
391
|
-
return m.fail(msg, actual, expected)
|
|
401
|
+
return m.fail(msg, actual, expected, true)
|
|
392
402
|
end if
|
|
393
403
|
|
|
394
404
|
return true
|
|
@@ -423,7 +433,7 @@ namespace rooibos
|
|
|
423
433
|
messageExpected = rooibos.common.truncateString(expected)
|
|
424
434
|
msg = `expected "${messageActual}" to equal "${messageExpected}"`
|
|
425
435
|
end if
|
|
426
|
-
m.
|
|
436
|
+
m.fail(msg, actual, expected, true)
|
|
427
437
|
return false
|
|
428
438
|
end if
|
|
429
439
|
return true
|
|
@@ -459,7 +469,7 @@ namespace rooibos
|
|
|
459
469
|
messageExpected = rooibos.common.truncateString(expected)
|
|
460
470
|
msg = `expected "${messageActual}" to be like "${messageExpected}"`
|
|
461
471
|
end if
|
|
462
|
-
m.
|
|
472
|
+
m.fail(msg, actual, expected, true)
|
|
463
473
|
return false
|
|
464
474
|
end if
|
|
465
475
|
return true
|
|
@@ -495,7 +505,7 @@ namespace rooibos
|
|
|
495
505
|
messageExpected = rooibos.common.truncateString(expected)
|
|
496
506
|
msg = `expected "${messageActual}" to not equal "${messageExpected}"`
|
|
497
507
|
end if
|
|
498
|
-
m.
|
|
508
|
+
m.fail(msg, "", "", true)
|
|
499
509
|
return false
|
|
500
510
|
end if
|
|
501
511
|
return true
|
|
@@ -528,7 +538,7 @@ namespace rooibos
|
|
|
528
538
|
actual = rooibos.common.asMultilineString(value, true)
|
|
529
539
|
msg = `expected "${rooibos.common.truncateString(actual)}" to be invalid`
|
|
530
540
|
end if
|
|
531
|
-
m.
|
|
541
|
+
m.fail(msg, "", "", true)
|
|
532
542
|
return false
|
|
533
543
|
end if
|
|
534
544
|
return true
|
|
@@ -560,7 +570,7 @@ namespace rooibos
|
|
|
560
570
|
actual = rooibos.common.asMultilineString(value, true)
|
|
561
571
|
msg = `expected "${rooibos.common.truncateString(actual)}" to not be invalid`
|
|
562
572
|
end if
|
|
563
|
-
m.
|
|
573
|
+
m.fail(msg, "", "", true)
|
|
564
574
|
return false
|
|
565
575
|
end if
|
|
566
576
|
return true
|
|
@@ -592,7 +602,7 @@ namespace rooibos
|
|
|
592
602
|
if msg = ""
|
|
593
603
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to be an AssociativeArray`
|
|
594
604
|
end if
|
|
595
|
-
m.
|
|
605
|
+
m.fail(msg, "", "", true)
|
|
596
606
|
return false
|
|
597
607
|
end if
|
|
598
608
|
|
|
@@ -601,7 +611,7 @@ namespace rooibos
|
|
|
601
611
|
actual = rooibos.common.asMultilineString(aa, true)
|
|
602
612
|
msg = `expected "${rooibos.common.truncateString(actual)}" to have property "${key}"`
|
|
603
613
|
end if
|
|
604
|
-
m.
|
|
614
|
+
m.fail(msg, "", "", true)
|
|
605
615
|
return false
|
|
606
616
|
end if
|
|
607
617
|
return true
|
|
@@ -634,7 +644,7 @@ namespace rooibos
|
|
|
634
644
|
if msg = ""
|
|
635
645
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to be an AssociativeArray`
|
|
636
646
|
end if
|
|
637
|
-
m.
|
|
647
|
+
m.fail(msg, "", "", true)
|
|
638
648
|
return false
|
|
639
649
|
end if
|
|
640
650
|
|
|
@@ -643,7 +653,7 @@ namespace rooibos
|
|
|
643
653
|
actual = rooibos.common.asMultilineString(aa, true)
|
|
644
654
|
msg = `expected "${rooibos.common.truncateString(actual)}" to not have property "${key}"`
|
|
645
655
|
end if
|
|
646
|
-
m.
|
|
656
|
+
m.fail(msg, "", "", true)
|
|
647
657
|
return false
|
|
648
658
|
end if
|
|
649
659
|
return true
|
|
@@ -676,7 +686,7 @@ namespace rooibos
|
|
|
676
686
|
if msg = ""
|
|
677
687
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to be an AssociativeArray`
|
|
678
688
|
end if
|
|
679
|
-
m.
|
|
689
|
+
m.fail(msg, "", "", true)
|
|
680
690
|
return false
|
|
681
691
|
end if
|
|
682
692
|
|
|
@@ -684,7 +694,7 @@ namespace rooibos
|
|
|
684
694
|
if msg = ""
|
|
685
695
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(keys, true))}" to be an Array`
|
|
686
696
|
end if
|
|
687
|
-
m.
|
|
697
|
+
m.fail(msg, "", "", true)
|
|
688
698
|
return false
|
|
689
699
|
end if
|
|
690
700
|
|
|
@@ -704,7 +714,7 @@ namespace rooibos
|
|
|
704
714
|
if msg = ""
|
|
705
715
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to have properties ${rooibos.common.truncateString(missingKeys.join(", "))}`
|
|
706
716
|
end if
|
|
707
|
-
m.
|
|
717
|
+
m.fail(msg, actual, expected, true)
|
|
708
718
|
return false
|
|
709
719
|
end if
|
|
710
720
|
return true
|
|
@@ -736,7 +746,7 @@ namespace rooibos
|
|
|
736
746
|
if msg = ""
|
|
737
747
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to be an AssociativeArray`
|
|
738
748
|
end if
|
|
739
|
-
m.
|
|
749
|
+
m.fail(msg, "", "", true)
|
|
740
750
|
return false
|
|
741
751
|
end if
|
|
742
752
|
|
|
@@ -744,7 +754,7 @@ namespace rooibos
|
|
|
744
754
|
if msg = ""
|
|
745
755
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(keys, true))}" to be an Array`
|
|
746
756
|
end if
|
|
747
|
-
m.
|
|
757
|
+
m.fail(msg, "", "", true)
|
|
748
758
|
return false
|
|
749
759
|
end if
|
|
750
760
|
|
|
@@ -759,7 +769,7 @@ namespace rooibos
|
|
|
759
769
|
if msg = ""
|
|
760
770
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(aa, true))}" to not have properties ${rooibos.common.truncateString(foundKeys.join(", "))}`
|
|
761
771
|
end if
|
|
762
|
-
m.
|
|
772
|
+
m.fail(msg, "", "", true)
|
|
763
773
|
return false
|
|
764
774
|
end if
|
|
765
775
|
|
|
@@ -796,7 +806,7 @@ namespace rooibos
|
|
|
796
806
|
if msg = ""
|
|
797
807
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
798
808
|
end if
|
|
799
|
-
m.
|
|
809
|
+
m.fail(msg, "", "", true)
|
|
800
810
|
return false
|
|
801
811
|
end if
|
|
802
812
|
|
|
@@ -804,7 +814,7 @@ namespace rooibos
|
|
|
804
814
|
if msg = ""
|
|
805
815
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to contain "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}"`
|
|
806
816
|
end if
|
|
807
|
-
m.
|
|
817
|
+
m.fail(msg, "", "", true)
|
|
808
818
|
return false
|
|
809
819
|
end if
|
|
810
820
|
return true
|
|
@@ -837,7 +847,7 @@ namespace rooibos
|
|
|
837
847
|
if msg = ""
|
|
838
848
|
msg = `expected value "${rooibos.common.truncateString(rooibos.common.asMultilineString(values, true))}" must be an Array`
|
|
839
849
|
end if
|
|
840
|
-
m.
|
|
850
|
+
m.fail(msg, "", "", true)
|
|
841
851
|
return false
|
|
842
852
|
end if
|
|
843
853
|
|
|
@@ -845,7 +855,7 @@ namespace rooibos
|
|
|
845
855
|
if msg = ""
|
|
846
856
|
msg = `actual value "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" must be an Array`
|
|
847
857
|
end if
|
|
848
|
-
m.
|
|
858
|
+
m.fail(msg, "", "", true)
|
|
849
859
|
return false
|
|
850
860
|
end if
|
|
851
861
|
|
|
@@ -855,7 +865,7 @@ namespace rooibos
|
|
|
855
865
|
if msg = ""
|
|
856
866
|
msg = `expected search value "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}" to be an AssociativeArray`
|
|
857
867
|
end if
|
|
858
|
-
m.
|
|
868
|
+
m.fail(msg, "", "", true)
|
|
859
869
|
return false
|
|
860
870
|
end if
|
|
861
871
|
for each item in array
|
|
@@ -880,7 +890,7 @@ namespace rooibos
|
|
|
880
890
|
if msg = ""
|
|
881
891
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to contain "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}"`
|
|
882
892
|
end if
|
|
883
|
-
m.
|
|
893
|
+
m.fail(msg, "", "", true)
|
|
884
894
|
return false
|
|
885
895
|
end if
|
|
886
896
|
|
|
@@ -916,7 +926,7 @@ namespace rooibos
|
|
|
916
926
|
if msg = ""
|
|
917
927
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
918
928
|
end if
|
|
919
|
-
m.
|
|
929
|
+
m.fail(msg, "", "", true)
|
|
920
930
|
return false
|
|
921
931
|
end if
|
|
922
932
|
|
|
@@ -924,7 +934,7 @@ namespace rooibos
|
|
|
924
934
|
if msg = ""
|
|
925
935
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to not contain "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}"`
|
|
926
936
|
end if
|
|
927
|
-
m.
|
|
937
|
+
m.fail(msg, "", "", true)
|
|
928
938
|
return false
|
|
929
939
|
end if
|
|
930
940
|
|
|
@@ -957,7 +967,7 @@ namespace rooibos
|
|
|
957
967
|
if msg = ""
|
|
958
968
|
msg = `expected target "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
959
969
|
end if
|
|
960
|
-
m.
|
|
970
|
+
m.fail(msg, "", "", true)
|
|
961
971
|
return false
|
|
962
972
|
end if
|
|
963
973
|
|
|
@@ -965,7 +975,7 @@ namespace rooibos
|
|
|
965
975
|
if msg = ""
|
|
966
976
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray or Array`
|
|
967
977
|
end if
|
|
968
|
-
m.
|
|
978
|
+
m.fail(msg, "", "", true)
|
|
969
979
|
return false
|
|
970
980
|
end if
|
|
971
981
|
|
|
@@ -973,7 +983,7 @@ namespace rooibos
|
|
|
973
983
|
if msg = ""
|
|
974
984
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray to match type "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}"`
|
|
975
985
|
end if
|
|
976
|
-
m.
|
|
986
|
+
m.fail(msg, "", "", true)
|
|
977
987
|
return false
|
|
978
988
|
end if
|
|
979
989
|
|
|
@@ -981,7 +991,7 @@ namespace rooibos
|
|
|
981
991
|
if msg = ""
|
|
982
992
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an Array to match type "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}"`
|
|
983
993
|
end if
|
|
984
|
-
m.
|
|
994
|
+
m.fail(msg, "", "", true)
|
|
985
995
|
return false
|
|
986
996
|
end if
|
|
987
997
|
|
|
@@ -1001,7 +1011,7 @@ namespace rooibos
|
|
|
1001
1011
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to contain "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}"`
|
|
1002
1012
|
end if
|
|
1003
1013
|
end if
|
|
1004
|
-
m.
|
|
1014
|
+
m.fail(msg, "", "", true)
|
|
1005
1015
|
return false
|
|
1006
1016
|
end if
|
|
1007
1017
|
end for
|
|
@@ -1035,7 +1045,7 @@ namespace rooibos
|
|
|
1035
1045
|
if msg = ""
|
|
1036
1046
|
msg = `expected target "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
1037
1047
|
end if
|
|
1038
|
-
m.
|
|
1048
|
+
m.fail(msg, "", "", true)
|
|
1039
1049
|
return false
|
|
1040
1050
|
end if
|
|
1041
1051
|
|
|
@@ -1043,7 +1053,7 @@ namespace rooibos
|
|
|
1043
1053
|
if msg = ""
|
|
1044
1054
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray or Array`
|
|
1045
1055
|
end if
|
|
1046
|
-
m.
|
|
1056
|
+
m.fail(msg, "", "", true)
|
|
1047
1057
|
return false
|
|
1048
1058
|
end if
|
|
1049
1059
|
|
|
@@ -1051,7 +1061,7 @@ namespace rooibos
|
|
|
1051
1061
|
if msg = ""
|
|
1052
1062
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray to match type "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}"`
|
|
1053
1063
|
end if
|
|
1054
|
-
m.
|
|
1064
|
+
m.fail(msg, "", "", true)
|
|
1055
1065
|
return false
|
|
1056
1066
|
end if
|
|
1057
1067
|
|
|
@@ -1059,7 +1069,7 @@ namespace rooibos
|
|
|
1059
1069
|
if msg = ""
|
|
1060
1070
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an Array to match type "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}"`
|
|
1061
1071
|
end if
|
|
1062
|
-
m.
|
|
1072
|
+
m.fail(msg, "", "", true)
|
|
1063
1073
|
return false
|
|
1064
1074
|
end if
|
|
1065
1075
|
|
|
@@ -1079,7 +1089,7 @@ namespace rooibos
|
|
|
1079
1089
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to not contain "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}"`
|
|
1080
1090
|
end if
|
|
1081
1091
|
end if
|
|
1082
|
-
m.
|
|
1092
|
+
m.fail(msg, "", "", true)
|
|
1083
1093
|
return false
|
|
1084
1094
|
end if
|
|
1085
1095
|
end for
|
|
@@ -1112,7 +1122,7 @@ namespace rooibos
|
|
|
1112
1122
|
if msg = ""
|
|
1113
1123
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
1114
1124
|
end if
|
|
1115
|
-
m.
|
|
1125
|
+
m.fail(msg, "", "", true)
|
|
1116
1126
|
return false
|
|
1117
1127
|
end if
|
|
1118
1128
|
|
|
@@ -1120,7 +1130,7 @@ namespace rooibos
|
|
|
1120
1130
|
if msg = ""
|
|
1121
1131
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(count, true))}" to be an Number`
|
|
1122
1132
|
end if
|
|
1123
|
-
m.
|
|
1133
|
+
m.fail(msg, "", "", true)
|
|
1124
1134
|
return false
|
|
1125
1135
|
end if
|
|
1126
1136
|
|
|
@@ -1134,7 +1144,7 @@ namespace rooibos
|
|
|
1134
1144
|
if msg = ""
|
|
1135
1145
|
msg = `expected count "${actualCount}" to be "${count}"`
|
|
1136
1146
|
end if
|
|
1137
|
-
m.
|
|
1147
|
+
m.fail(msg, rooibos.common.asMultilineString(actualCount, true), rooibos.common.asMultilineString(count, true), true)
|
|
1138
1148
|
return false
|
|
1139
1149
|
end if
|
|
1140
1150
|
return true
|
|
@@ -1166,7 +1176,7 @@ namespace rooibos
|
|
|
1166
1176
|
if msg = ""
|
|
1167
1177
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
1168
1178
|
end if
|
|
1169
|
-
m.
|
|
1179
|
+
m.fail(msg, "", "", true)
|
|
1170
1180
|
return false
|
|
1171
1181
|
end if
|
|
1172
1182
|
|
|
@@ -1174,7 +1184,7 @@ namespace rooibos
|
|
|
1174
1184
|
if msg = ""
|
|
1175
1185
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(count, true))}" to be an Number`
|
|
1176
1186
|
end if
|
|
1177
|
-
m.
|
|
1187
|
+
m.fail(msg, "", "", true)
|
|
1178
1188
|
return false
|
|
1179
1189
|
end if
|
|
1180
1190
|
|
|
@@ -1188,7 +1198,7 @@ namespace rooibos
|
|
|
1188
1198
|
if msg = ""
|
|
1189
1199
|
msg = `expected count "${actualCount}" to not be "${count}"`
|
|
1190
1200
|
end if
|
|
1191
|
-
m.
|
|
1201
|
+
m.fail(msg, "", "", true)
|
|
1192
1202
|
return false
|
|
1193
1203
|
end if
|
|
1194
1204
|
|
|
@@ -1222,7 +1232,7 @@ namespace rooibos
|
|
|
1222
1232
|
if msg = ""
|
|
1223
1233
|
msg = `expected "${rooibos.common.truncateString(actual)}" to be empty`
|
|
1224
1234
|
end if
|
|
1225
|
-
m.
|
|
1235
|
+
m.fail(msg, actual, rooibos.common.asMultilineString({}, true), true)
|
|
1226
1236
|
return false
|
|
1227
1237
|
end if
|
|
1228
1238
|
else if rooibos.common.isArray(item)
|
|
@@ -1231,7 +1241,7 @@ namespace rooibos
|
|
|
1231
1241
|
if msg = ""
|
|
1232
1242
|
msg = `expected "${rooibos.common.truncateString(actual)}" to be empty`
|
|
1233
1243
|
end if
|
|
1234
|
-
m.
|
|
1244
|
+
m.fail(msg, actual, rooibos.common.asMultilineString([], true), true)
|
|
1235
1245
|
return false
|
|
1236
1246
|
end if
|
|
1237
1247
|
else if rooibos.common.isString(item)
|
|
@@ -1240,14 +1250,14 @@ namespace rooibos
|
|
|
1240
1250
|
if msg = ""
|
|
1241
1251
|
msg = `expected ${rooibos.common.truncateString(actual)} to be empty`
|
|
1242
1252
|
end if
|
|
1243
|
-
m.
|
|
1253
|
+
m.fail(msg, actual, "", true)
|
|
1244
1254
|
return false
|
|
1245
1255
|
end if
|
|
1246
1256
|
else
|
|
1247
1257
|
if msg = ""
|
|
1248
1258
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(item, true))}" to be an AssociativeArray, Array, or String`
|
|
1249
1259
|
end if
|
|
1250
|
-
m.
|
|
1260
|
+
m.fail(msg, "", "", true)
|
|
1251
1261
|
return false
|
|
1252
1262
|
end if
|
|
1253
1263
|
return true
|
|
@@ -1280,7 +1290,7 @@ namespace rooibos
|
|
|
1280
1290
|
actual = rooibos.common.asMultilineString(item, true)
|
|
1281
1291
|
msg = `expected "${rooibos.common.truncateString(actual)}" to not be empty`
|
|
1282
1292
|
end if
|
|
1283
|
-
m.
|
|
1293
|
+
m.fail(msg, "", "", true)
|
|
1284
1294
|
return false
|
|
1285
1295
|
end if
|
|
1286
1296
|
else if rooibos.common.isArray(item)
|
|
@@ -1289,7 +1299,7 @@ namespace rooibos
|
|
|
1289
1299
|
actual = rooibos.common.asMultilineString(item, true)
|
|
1290
1300
|
msg = `expected "${rooibos.common.truncateString(actual)}" to not be empty`
|
|
1291
1301
|
end if
|
|
1292
|
-
m.
|
|
1302
|
+
m.fail(msg, "", "", true)
|
|
1293
1303
|
return false
|
|
1294
1304
|
end if
|
|
1295
1305
|
else if rooibos.common.isString(item)
|
|
@@ -1298,14 +1308,14 @@ namespace rooibos
|
|
|
1298
1308
|
actual = rooibos.common.asMultilineString(item, true)
|
|
1299
1309
|
msg = `expected ${rooibos.common.truncateString(actual)} to be empty`
|
|
1300
1310
|
end if
|
|
1301
|
-
m.
|
|
1311
|
+
m.fail(msg, "", "", true)
|
|
1302
1312
|
return false
|
|
1303
1313
|
end if
|
|
1304
1314
|
else
|
|
1305
1315
|
if msg = ""
|
|
1306
1316
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(item, true))}" to be an AssociativeArray, Array, or String`
|
|
1307
1317
|
end if
|
|
1308
|
-
m.
|
|
1318
|
+
m.fail(msg, "", "", true)
|
|
1309
1319
|
return false
|
|
1310
1320
|
end if
|
|
1311
1321
|
return true
|
|
@@ -1337,7 +1347,7 @@ namespace rooibos
|
|
|
1337
1347
|
if msg = ""
|
|
1338
1348
|
msg = `expect type ${rooibos.common.asMultilineString(typeStr, true)} to be "Boolean", "String", "Integer", "Array", or "AssociativeArray"`
|
|
1339
1349
|
end if
|
|
1340
|
-
m.
|
|
1350
|
+
m.fail(msg, "", "", true)
|
|
1341
1351
|
return false
|
|
1342
1352
|
end if
|
|
1343
1353
|
|
|
@@ -1345,7 +1355,7 @@ namespace rooibos
|
|
|
1345
1355
|
if msg = ""
|
|
1346
1356
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray or Array`
|
|
1347
1357
|
end if
|
|
1348
|
-
m.
|
|
1358
|
+
m.fail(msg, "", "", true)
|
|
1349
1359
|
return false
|
|
1350
1360
|
end if
|
|
1351
1361
|
|
|
@@ -1367,7 +1377,7 @@ namespace rooibos
|
|
|
1367
1377
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(item, true))}" to be type ${rooibos.common.asMultilineString(typeStr, true)}`
|
|
1368
1378
|
end if
|
|
1369
1379
|
end if
|
|
1370
|
-
m.
|
|
1380
|
+
m.fail(msg, "", "", true)
|
|
1371
1381
|
return false
|
|
1372
1382
|
end if
|
|
1373
1383
|
end for
|
|
@@ -1443,7 +1453,7 @@ namespace rooibos
|
|
|
1443
1453
|
if msg = ""
|
|
1444
1454
|
msg = `expected ${rooibos.common.truncateString(actual)} to be type ${rooibos.common.truncateString(expected)}`
|
|
1445
1455
|
end if
|
|
1446
|
-
m.
|
|
1456
|
+
m.fail(msg, actual, expected, true)
|
|
1447
1457
|
return false
|
|
1448
1458
|
end if
|
|
1449
1459
|
return true
|
|
@@ -1478,7 +1488,7 @@ namespace rooibos
|
|
|
1478
1488
|
if msg = ""
|
|
1479
1489
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1480
1490
|
end if
|
|
1481
|
-
m.
|
|
1491
|
+
m.fail(msg, actual, expected, true)
|
|
1482
1492
|
return false
|
|
1483
1493
|
else if value.subType() <> typeStr
|
|
1484
1494
|
actual = rooibos.common.getTypeWithComponentWrapper(value, true)
|
|
@@ -1486,7 +1496,7 @@ namespace rooibos
|
|
|
1486
1496
|
if msg = ""
|
|
1487
1497
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1488
1498
|
end if
|
|
1489
|
-
m.
|
|
1499
|
+
m.fail(msg, actual, expected, true)
|
|
1490
1500
|
return false
|
|
1491
1501
|
end if
|
|
1492
1502
|
return true
|
|
@@ -1510,7 +1520,7 @@ namespace rooibos
|
|
|
1510
1520
|
if msg = ""
|
|
1511
1521
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}" to be an instance of ${rooibos.common.truncateString(rooibos.common.asMultilineString(expectedClassName, true))}`
|
|
1512
1522
|
end if
|
|
1513
|
-
m.
|
|
1523
|
+
m.fail(msg, "", "", true)
|
|
1514
1524
|
return false
|
|
1515
1525
|
end if
|
|
1516
1526
|
|
|
@@ -1518,7 +1528,7 @@ namespace rooibos
|
|
|
1518
1528
|
if msg = ""
|
|
1519
1529
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(value, true))}" to be an instance of ${rooibos.common.truncateString(rooibos.common.asMultilineString(expectedClassName, true))}`
|
|
1520
1530
|
end if
|
|
1521
|
-
m.
|
|
1531
|
+
m.fail(msg, "", "", true)
|
|
1522
1532
|
return false
|
|
1523
1533
|
end if
|
|
1524
1534
|
|
|
@@ -1536,7 +1546,7 @@ namespace rooibos
|
|
|
1536
1546
|
if msg = ""
|
|
1537
1547
|
msg = `expected class ${rooibos.common.truncateString(actual)} to be an instance of ${rooibos.common.truncateString(expected)}`
|
|
1538
1548
|
end if
|
|
1539
|
-
m.
|
|
1549
|
+
m.fail(msg, "", "", true)
|
|
1540
1550
|
return false
|
|
1541
1551
|
end if
|
|
1542
1552
|
return true
|
|
@@ -1581,7 +1591,7 @@ namespace rooibos
|
|
|
1581
1591
|
if msg = ""
|
|
1582
1592
|
msg = `expected count "${actual}" to be "${expected}"`
|
|
1583
1593
|
end if
|
|
1584
|
-
m.
|
|
1594
|
+
m.fail(msg, actual, expected, true)
|
|
1585
1595
|
return false
|
|
1586
1596
|
end if
|
|
1587
1597
|
else
|
|
@@ -1590,7 +1600,7 @@ namespace rooibos
|
|
|
1590
1600
|
if msg = ""
|
|
1591
1601
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1592
1602
|
end if
|
|
1593
|
-
m.
|
|
1603
|
+
m.fail(msg, actual, expected, true)
|
|
1594
1604
|
return false
|
|
1595
1605
|
end if
|
|
1596
1606
|
return true
|
|
@@ -1630,7 +1640,7 @@ namespace rooibos
|
|
|
1630
1640
|
if msg = ""
|
|
1631
1641
|
msg = `expected count "${actual}" to not be "${expected}"`
|
|
1632
1642
|
end if
|
|
1633
|
-
m.
|
|
1643
|
+
m.fail(msg, actual, expected, true)
|
|
1634
1644
|
return false
|
|
1635
1645
|
end if
|
|
1636
1646
|
else
|
|
@@ -1639,7 +1649,7 @@ namespace rooibos
|
|
|
1639
1649
|
if msg = ""
|
|
1640
1650
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1641
1651
|
end if
|
|
1642
|
-
m.
|
|
1652
|
+
m.fail(msg, actual, expected, true)
|
|
1643
1653
|
return false
|
|
1644
1654
|
end if
|
|
1645
1655
|
return true
|
|
@@ -1676,7 +1686,7 @@ namespace rooibos
|
|
|
1676
1686
|
if msg = ""
|
|
1677
1687
|
msg = `expected child count "${childCount}" to be "0"`
|
|
1678
1688
|
end if
|
|
1679
|
-
m.
|
|
1689
|
+
m.fail(msg, "", "", true)
|
|
1680
1690
|
return false
|
|
1681
1691
|
end if
|
|
1682
1692
|
else
|
|
@@ -1685,7 +1695,7 @@ namespace rooibos
|
|
|
1685
1695
|
if msg = ""
|
|
1686
1696
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1687
1697
|
end if
|
|
1688
|
-
m.
|
|
1698
|
+
m.fail(msg, actual, expected, true)
|
|
1689
1699
|
return false
|
|
1690
1700
|
end if
|
|
1691
1701
|
return true
|
|
@@ -1723,7 +1733,7 @@ namespace rooibos
|
|
|
1723
1733
|
if msg = ""
|
|
1724
1734
|
msg = `expected child count "${childCount}" to be greater then "0"`
|
|
1725
1735
|
end if
|
|
1726
|
-
m.
|
|
1736
|
+
m.fail(msg, "", "", true)
|
|
1727
1737
|
return false
|
|
1728
1738
|
end if
|
|
1729
1739
|
else
|
|
@@ -1732,7 +1742,7 @@ namespace rooibos
|
|
|
1732
1742
|
if msg = ""
|
|
1733
1743
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1734
1744
|
end if
|
|
1735
|
-
m.
|
|
1745
|
+
m.fail(msg, actual, expected, true)
|
|
1736
1746
|
return false
|
|
1737
1747
|
end if
|
|
1738
1748
|
return true
|
|
@@ -1765,7 +1775,7 @@ namespace rooibos
|
|
|
1765
1775
|
if msg = ""
|
|
1766
1776
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to contain child "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(value, true))}" by reference`
|
|
1767
1777
|
end if
|
|
1768
|
-
m.
|
|
1778
|
+
m.fail(msg, "", "", true)
|
|
1769
1779
|
return false
|
|
1770
1780
|
end if
|
|
1771
1781
|
else
|
|
@@ -1774,7 +1784,7 @@ namespace rooibos
|
|
|
1774
1784
|
if msg = ""
|
|
1775
1785
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1776
1786
|
end if
|
|
1777
|
-
m.
|
|
1787
|
+
m.fail(msg, actual, expected, true)
|
|
1778
1788
|
return false
|
|
1779
1789
|
end if
|
|
1780
1790
|
return true
|
|
@@ -1806,7 +1816,7 @@ namespace rooibos
|
|
|
1806
1816
|
if msg = ""
|
|
1807
1817
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to contain child "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(value, true))}" by reference`
|
|
1808
1818
|
end if
|
|
1809
|
-
m.
|
|
1819
|
+
m.fail(msg, "", "", true)
|
|
1810
1820
|
return false
|
|
1811
1821
|
else
|
|
1812
1822
|
if node.isSubType("mc_Node")
|
|
@@ -1819,7 +1829,7 @@ namespace rooibos
|
|
|
1819
1829
|
if msg = ""
|
|
1820
1830
|
msg = `expected child count "${childCount}" to be "1"`
|
|
1821
1831
|
end if
|
|
1822
|
-
m.
|
|
1832
|
+
m.fail(msg, "", "", true)
|
|
1823
1833
|
return false
|
|
1824
1834
|
end if
|
|
1825
1835
|
end if
|
|
@@ -1829,7 +1839,7 @@ namespace rooibos
|
|
|
1829
1839
|
if msg = ""
|
|
1830
1840
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1831
1841
|
end if
|
|
1832
|
-
m.
|
|
1842
|
+
m.fail(msg, actual, expected, true)
|
|
1833
1843
|
return false
|
|
1834
1844
|
end if
|
|
1835
1845
|
return true
|
|
@@ -1863,7 +1873,7 @@ namespace rooibos
|
|
|
1863
1873
|
if msg = ""
|
|
1864
1874
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to not contain child "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(value, true))}" by reference`
|
|
1865
1875
|
end if
|
|
1866
|
-
m.
|
|
1876
|
+
m.fail(msg, "", "", true)
|
|
1867
1877
|
return false
|
|
1868
1878
|
end if
|
|
1869
1879
|
else
|
|
@@ -1872,7 +1882,7 @@ namespace rooibos
|
|
|
1872
1882
|
if msg = ""
|
|
1873
1883
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1874
1884
|
end if
|
|
1875
|
-
m.
|
|
1885
|
+
m.fail(msg, actual, expected, true)
|
|
1876
1886
|
return false
|
|
1877
1887
|
end if
|
|
1878
1888
|
return true
|
|
@@ -1907,7 +1917,7 @@ namespace rooibos
|
|
|
1907
1917
|
if msg = ""
|
|
1908
1918
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1909
1919
|
end if
|
|
1910
|
-
m.
|
|
1920
|
+
m.fail(msg, actual, expected, true)
|
|
1911
1921
|
return false
|
|
1912
1922
|
end if
|
|
1913
1923
|
|
|
@@ -1915,7 +1925,7 @@ namespace rooibos
|
|
|
1915
1925
|
if msg = ""
|
|
1916
1926
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray`
|
|
1917
1927
|
end if
|
|
1918
|
-
m.
|
|
1928
|
+
m.fail(msg, "", "", true)
|
|
1919
1929
|
return false
|
|
1920
1930
|
end if
|
|
1921
1931
|
|
|
@@ -1950,7 +1960,7 @@ namespace rooibos
|
|
|
1950
1960
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to have properties "${rooibos.common.truncateString(rooibos.common.asMultilineString(missingValues))}"`
|
|
1951
1961
|
end if
|
|
1952
1962
|
end if
|
|
1953
|
-
m.
|
|
1963
|
+
m.fail(msg, actual, expected, true)
|
|
1954
1964
|
return false
|
|
1955
1965
|
end if
|
|
1956
1966
|
return true
|
|
@@ -1985,7 +1995,7 @@ namespace rooibos
|
|
|
1985
1995
|
if msg = ""
|
|
1986
1996
|
msg = `expected type "${rooibos.common.truncateString(actual)}" to be type "${rooibos.common.truncateString(expected)}"`
|
|
1987
1997
|
end if
|
|
1988
|
-
m.
|
|
1998
|
+
m.fail(msg, actual, expected, true)
|
|
1989
1999
|
return false
|
|
1990
2000
|
end if
|
|
1991
2001
|
|
|
@@ -1998,7 +2008,7 @@ namespace rooibos
|
|
|
1998
2008
|
if msg = ""
|
|
1999
2009
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to not contain child "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(value, true))}" by reference`
|
|
2000
2010
|
end if
|
|
2001
|
-
m.
|
|
2011
|
+
m.fail(msg, "", "", true)
|
|
2002
2012
|
return false
|
|
2003
2013
|
end if
|
|
2004
2014
|
end for
|
|
@@ -2018,14 +2028,14 @@ namespace rooibos
|
|
|
2018
2028
|
if msg = ""
|
|
2019
2029
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.getTypeWithComponentWrapper(node, true))}" to have not have properties "${rooibos.common.truncateString(rooibos.common.asMultilineString(foundValues))}"`
|
|
2020
2030
|
end if
|
|
2021
|
-
m.
|
|
2031
|
+
m.fail(msg, actual, expected, true)
|
|
2022
2032
|
return false
|
|
2023
2033
|
end if
|
|
2024
2034
|
else
|
|
2025
2035
|
if msg = ""
|
|
2026
2036
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray`
|
|
2027
2037
|
end if
|
|
2028
|
-
m.
|
|
2038
|
+
m.fail(msg, "", "", true)
|
|
2029
2039
|
return false
|
|
2030
2040
|
end if
|
|
2031
2041
|
return true
|
|
@@ -2062,7 +2072,7 @@ namespace rooibos
|
|
|
2062
2072
|
if msg = ""
|
|
2063
2073
|
msg = `expected target "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to be an AssociativeArray`
|
|
2064
2074
|
end if
|
|
2065
|
-
m.
|
|
2075
|
+
m.fail(msg, "", "", true)
|
|
2066
2076
|
return false
|
|
2067
2077
|
end if
|
|
2068
2078
|
|
|
@@ -2070,7 +2080,7 @@ namespace rooibos
|
|
|
2070
2080
|
if msg = ""
|
|
2071
2081
|
msg = `expected subset "${rooibos.common.truncateString(rooibos.common.asMultilineString(subset, true))}" to be an AssociativeArray`
|
|
2072
2082
|
end if
|
|
2073
|
-
m.
|
|
2083
|
+
m.fail(msg, "", "", true)
|
|
2074
2084
|
return false
|
|
2075
2085
|
end if
|
|
2076
2086
|
|
|
@@ -2103,7 +2113,7 @@ namespace rooibos
|
|
|
2103
2113
|
if msg = ""
|
|
2104
2114
|
msg = `expected "${rooibos.common.truncateString(rooibos.common.asMultilineString(array, true))}" to have properties "${rooibos.common.truncateString(rooibos.common.asMultilineString(missingValues))}"`
|
|
2105
2115
|
end if
|
|
2106
|
-
m.
|
|
2116
|
+
m.fail(msg, actual, expected, true)
|
|
2107
2117
|
return false
|
|
2108
2118
|
end if
|
|
2109
2119
|
return true
|
|
@@ -2199,7 +2209,7 @@ namespace rooibos
|
|
|
2199
2209
|
return m.mock(target, methodName, 1, expectedArgs, returnValue, true)
|
|
2200
2210
|
catch error
|
|
2201
2211
|
'bs:disable-next-line
|
|
2202
|
-
m.
|
|
2212
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2203
2213
|
end try
|
|
2204
2214
|
return invalid
|
|
2205
2215
|
end function
|
|
@@ -2234,7 +2244,7 @@ namespace rooibos
|
|
|
2234
2244
|
return m.stub(target, methodName, returnValue, true)
|
|
2235
2245
|
catch error
|
|
2236
2246
|
'bs:disable-next-line
|
|
2237
|
-
m.
|
|
2247
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2238
2248
|
return false
|
|
2239
2249
|
end try
|
|
2240
2250
|
return false
|
|
@@ -2253,7 +2263,7 @@ namespace rooibos
|
|
|
2253
2263
|
return m.mock(target, methodName, 0, invalid, invalid, true)
|
|
2254
2264
|
catch error
|
|
2255
2265
|
'bs:disable-next-line
|
|
2256
|
-
m.
|
|
2266
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2257
2267
|
return false
|
|
2258
2268
|
end try
|
|
2259
2269
|
return false
|
|
@@ -2283,7 +2293,7 @@ namespace rooibos
|
|
|
2283
2293
|
return m.mock(target, methodName, 1, expectedArgs, returnValue, allowNonExistingMethods)
|
|
2284
2294
|
' catch error
|
|
2285
2295
|
'bs:disable-next-line
|
|
2286
|
-
' m.
|
|
2296
|
+
' m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2287
2297
|
' return false
|
|
2288
2298
|
' end try
|
|
2289
2299
|
' return false
|
|
@@ -2312,7 +2322,7 @@ namespace rooibos
|
|
|
2312
2322
|
end if
|
|
2313
2323
|
catch error
|
|
2314
2324
|
'bs:disable-next-line
|
|
2315
|
-
m.
|
|
2325
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2316
2326
|
end try
|
|
2317
2327
|
return false
|
|
2318
2328
|
end function
|
|
@@ -2333,7 +2343,7 @@ namespace rooibos
|
|
|
2333
2343
|
return m.mock(target, methodName, 0, invalid, invalid, allowNonExistingMethods)
|
|
2334
2344
|
catch error
|
|
2335
2345
|
'bs:disable-next-line
|
|
2336
|
-
m.
|
|
2346
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2337
2347
|
end try
|
|
2338
2348
|
return false
|
|
2339
2349
|
end function
|
|
@@ -2357,7 +2367,7 @@ namespace rooibos
|
|
|
2357
2367
|
return m.mock(target, methodName, expectedInvocations, expectedArgs, returnValue, allowNonExistingMethods)
|
|
2358
2368
|
catch error
|
|
2359
2369
|
'bs:disable-next-line
|
|
2360
|
-
m.
|
|
2370
|
+
m.fail("Setting up mock failed: " + error.message, "", "", true)
|
|
2361
2371
|
end try
|
|
2362
2372
|
return false
|
|
2363
2373
|
end function
|
|
@@ -2717,7 +2727,7 @@ namespace rooibos
|
|
|
2717
2727
|
if m.currentResult.isFail
|
|
2718
2728
|
return false
|
|
2719
2729
|
end if
|
|
2720
|
-
m.
|
|
2730
|
+
m.fail("mock failure on '" + methodName + "' : " + message, "", "", true)
|
|
2721
2731
|
return false
|
|
2722
2732
|
end function
|
|
2723
2733
|
|
|
@@ -3109,12 +3119,12 @@ namespace rooibos
|
|
|
3109
3119
|
return false
|
|
3110
3120
|
end if
|
|
3111
3121
|
if target = invalid
|
|
3112
|
-
m.fail("Target was invalid")
|
|
3122
|
+
m.fail("Target was invalid", "", "", true)
|
|
3113
3123
|
end if
|
|
3114
3124
|
|
|
3115
3125
|
result = m.waitForField(target, fieldName, delay, maxAttempts)
|
|
3116
3126
|
if not result
|
|
3117
|
-
return m.fail("Timeout waiting for targetField " + fieldName + " to be set on target")
|
|
3127
|
+
return m.fail("Timeout waiting for targetField " + fieldName + " to be set on target", "", "", true)
|
|
3118
3128
|
end if
|
|
3119
3129
|
|
|
3120
3130
|
return true
|