1
1
import 'dart:async' as _i4;
2
2
import 'dart:html' as _i2;
3
3
import 'dart:math' as _i5;
4
- import 'dart:web_sql' as _i3;
5
4
6
5
import 'package:mockito/mockito.dart' as _i1;
7
6
8
7
// ignore_for_file: comment_references
9
8
10
9
// ignore_for_file: unnecessary_parenthesis
11
10
11
+ // ignore_for_file: extra_positional_arguments_could_be_named
12
+
12
13
class _FakeDocument extends _i1.Fake implements _i2.Document {}
13
14
14
15
class _FakeLocation extends _i1.Fake implements _i2.Location {}
@@ -38,8 +39,6 @@ class _FakeMediaQueryList extends _i1.Fake implements _i2.MediaQueryList {}
38
39
39
40
class _FakeEntry extends _i1.Fake implements _i2.Entry {}
40
41
41
- class _FakeSqlDatabase extends _i1.Fake implements _i3.SqlDatabase {}
42
-
43
42
class _FakeGeolocation extends _i1.Fake implements _i2.Geolocation {}
44
43
45
44
class _FakeMediaStream extends _i1.Fake implements _i2.MediaStream {}
@@ -51,6 +50,10 @@ class _FakeRelatedApplication extends _i1.Fake
51
50
///
52
51
/// See the documentation for Mockito's code generation for more information.
53
52
class MockWindow extends _i1.Mock implements _i2.Window {
53
+ MockWindow () {
54
+ _i1.throwOnMissingStub (this );
55
+ }
56
+
54
57
@override
55
58
_i4.Future <num > get animationFrame =>
56
59
(super .noSuchMethod (Invocation .getter (#animationFrame), Future .value (0 ))
@@ -526,14 +529,6 @@ class MockWindow extends _i1.Mock implements _i2.Window {
526
529
void moveTo (_i5.Point <num >? p) =>
527
530
super .noSuchMethod (Invocation .method (#moveTo, [p]));
528
531
@override
529
- _i3.SqlDatabase openDatabase (String ? name, String ? version,
530
- String ? displayName, int ? estimatedSize,
531
- [_i2.DatabaseCallback ? creationCallback]) =>
532
- (super .noSuchMethod (
533
- Invocation .method (#openDatabase,
534
- [name, version, displayName, estimatedSize, creationCallback]),
535
- _FakeSqlDatabase ()) as _i3.SqlDatabase );
536
- @override
537
532
void addEventListener (String ? type, _i2.EventListener ? listener,
538
533
[bool ? useCapture]) =>
539
534
super .noSuchMethod (
@@ -559,6 +554,10 @@ class MockWindow extends _i1.Mock implements _i2.Window {
559
554
///
560
555
/// See the documentation for Mockito's code generation for more information.
561
556
class MockNavigator extends _i1.Mock implements _i2.Navigator {
557
+ MockNavigator () {
558
+ _i1.throwOnMissingStub (this );
559
+ }
560
+
562
561
@override
563
562
String get language =>
564
563
(super .noSuchMethod (Invocation .getter (#language), '' ) as String );
0 commit comments