Skip to content

Commit

Permalink
add internal to debouncer and add whitespaces to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz committed Aug 19, 2024
1 parent 7b20277 commit 491201f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions flutter/lib/src/utils/debouncer.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:meta/meta.dart';

@internal
class Debouncer {
Expand Down
10 changes: 5 additions & 5 deletions flutter/test/widgets_binding_observer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void main() {
// ignore: deprecated_member_use
window.physicalSizeTestValue = Size(newWidth, newHeight);

//waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
// waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
await tester.pump(Duration(milliseconds: 150));

final breadcrumb =
Expand Down Expand Up @@ -233,7 +233,7 @@ void main() {
// ignore: deprecated_member_use
window.devicePixelRatioTestValue = newPixelRatio;

//waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
// waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
await tester.pump(Duration(milliseconds: 150));

final breadcrumb =
Expand Down Expand Up @@ -271,7 +271,7 @@ void main() {
// ignore: deprecated_member_use
window.viewInsetsTestValue = WindowPadding.zero;

//waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
// waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
await tester.pump(Duration(milliseconds: 150));

verifyNever(hub.addBreadcrumb(captureAny));
Expand All @@ -295,7 +295,7 @@ void main() {

window.onMetricsChanged!();

//waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
// waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
await tester.pump(Duration(milliseconds: 150));

verifyNever(hub.addBreadcrumb(captureAny));
Expand Down Expand Up @@ -470,7 +470,7 @@ void main() {

verifyNever(hub.addBreadcrumb(captureAny));

//waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
// waiting for debouncing with 100ms added https://github.com/getsentry/sentry-dart/issues/400
await tester.pump(Duration(milliseconds: 150));

verify(hub.addBreadcrumb(captureAny)).called(1);
Expand Down

0 comments on commit 491201f

Please sign in to comment.