Skip to content

Commit

Permalink
#2529. Fix failing API core tests (#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov authored Feb 9, 2024
1 parent d200d2e commit 4f884c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 35 deletions.
4 changes: 3 additions & 1 deletion LibTest/core/DateTime/parse_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ check(String str, int year, int month, int day, int hours, int minutes,
Expect.equals(minutes, d.minute);
Expect.equals(seconds, d.second);
Expect.equals(milliseconds, d.millisecond);
Expect.equals(microseconds, d.microsecond);
if (!isJS) { // microseconds are not supported on Web
Expect.equals(microseconds, d.microsecond);
}
}

main() {
Expand Down
8 changes: 2 additions & 6 deletions LibTest/core/StackOverflowError/stackTrace_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

/// @assertion StackTrace stackTrace
/// @description Checks that this property is not null if error is thrown
/// @description Checks that this property is not null for the newly created
/// instance
/// @author [email protected]
/// @issue 28179
Expand All @@ -12,9 +13,4 @@ import "../../../Utils/expect.dart";
main() {
Error e = new StackOverflowError();
Expect.isNull(e.stackTrace);
try {
throw e;
} on StackOverflowError catch (er) {
Expect.isNotNull(e.stackTrace);
}
}
24 changes: 0 additions & 24 deletions LibTest/core/StackOverflowError/stackTrace_A01_t02.dart

This file was deleted.

4 changes: 2 additions & 2 deletions LibTest/core/Uri/Uri.dataFromBytes_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ main() {
check(l, "image/gif");
check(l, "text/plain");
check(l, "Text/Plain");
check(l, "Avada / Kedavra");
check(l, "Абра / Кадабра");
check(l, "avada / kedavra");
check(l, "абра / кадабра");
}
4 changes: 2 additions & 2 deletions LibTest/core/UriData/UriData.fromBytes_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ main() {
check(l, "image/gif");
check(l, "text/plain");
check(l, "Text/Plain");
check(l, "Avada / Kedavra");
check(l, "Абра / Кадабра");
check(l, "avada / kedavra");
check(l, "абра / кадабра");
}

0 comments on commit 4f884c0

Please sign in to comment.