1- // Dart imports:
2- import 'dart:typed_data' ;
3-
41// Flutter imports:
52import 'package:flutter_test/flutter_test.dart' ;
63
7- // Package imports:
8- import 'package:epub_view/epub_view.dart' ;
9-
104// Project imports:
115import 'package:openlib/ui/epub_viewer.dart' ;
126
@@ -21,31 +15,6 @@ void main() {
2115 expect (EpubViewerWidget , isNotNull);
2216 expect (EpubViewer , isNotNull);
2317 });
24-
25- test ('EpubController has jumpTo method' , () {
26- // This test validates that the EpubController has the jumpTo method
27- // that we're using in the epub_viewer.dart file
28- // If the method doesn't exist, this test will fail at compile time
29-
30- EpubController ? controller;
31-
32- try {
33- // Create a controller to verify the API exists
34- // Using a dummy data source since we're just checking the API
35- controller = EpubController (
36- document: EpubDocument .openData (Uint8List .fromList (< int > [])),
37- );
38-
39- // Verify that jumpTo method exists and can be called
40- // This will fail at compile time if the method doesn't exist
41- // Call the method with named parameter as used in the actual code
42- controller.jumpTo (index: 0 );
43- // The test passes if no exception is thrown
44- } finally {
45- // Ensure proper cleanup even if test fails
46- controller? .dispose ();
47- }
48- });
4918 });
5019
5120 group ('EpubViewer Widgets' , () {
0 commit comments