mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
Create window_utils_test.dart
This commit is contained in:
62
test/utils/window_utils_test.dart
Normal file
62
test/utils/window_utils_test.dart
Normal file
@ -0,0 +1,62 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:apidash/utils/window_utils.dart';
|
||||
|
||||
void main() {
|
||||
group(
|
||||
"Testing showButtonLabelsInBodySuccess function",
|
||||
() {
|
||||
test('Test case 1 options 0', () {
|
||||
expect(showButtonLabelsInBodySuccess(0, 300), true);
|
||||
});
|
||||
|
||||
test('Test case 2 options 0', () {
|
||||
expect(showButtonLabelsInBodySuccess(0, 500), true);
|
||||
});
|
||||
|
||||
test('Test case 1 options 1', () {
|
||||
expect(showButtonLabelsInBodySuccess(1, 250), false);
|
||||
});
|
||||
|
||||
test('Test case 2 options 1', () {
|
||||
expect(showButtonLabelsInBodySuccess(1, 350), true);
|
||||
});
|
||||
|
||||
test('Test case 1 options 2', () {
|
||||
expect(showButtonLabelsInBodySuccess(2, 250), false);
|
||||
});
|
||||
|
||||
test('Test case 2 options 2', () {
|
||||
expect(showButtonLabelsInBodySuccess(2, 350), false);
|
||||
});
|
||||
|
||||
test('Test case 3 options 2', () {
|
||||
expect(showButtonLabelsInBodySuccess(2, 450), true);
|
||||
});
|
||||
|
||||
test('Test case 1 options 3', () {
|
||||
expect(showButtonLabelsInBodySuccess(3, 350), false);
|
||||
});
|
||||
|
||||
test('Test case 2 options 3', () {
|
||||
expect(showButtonLabelsInBodySuccess(3, 450), false);
|
||||
});
|
||||
|
||||
test('Test case 3 options 3', () {
|
||||
expect(showButtonLabelsInBodySuccess(3, 550), true);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
group(
|
||||
"Testing showButtonLabelsInViewCodePane function",
|
||||
() {
|
||||
test('Test case 2', () {
|
||||
expect(showButtonLabelsInViewCodePane(350), false);
|
||||
});
|
||||
|
||||
test('Test case 3', () {
|
||||
expect(showButtonLabelsInViewCodePane(450), true);
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user