10000 Add Tests For `Windows` by milwad-dev · Pull Request #100 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

Add Tests For Windows #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add test for invisibleFrameless in window
  • Loading branch information
milwad-dev committed Jul 31, 2023
commit f1e2452d8a5aa47c2cb2129e3ea340dae96aa9c5
10 changes: 10 additions & 0 deletions tests/Windows/WindowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,13 @@

expect($window->toArray()['titleBarStyle'])->toBe('customButtonsOnHover');
});

it('test for invisibleFrameless in window', function () {
$window = Window::open()->invisibleFrameless();
$windowArray = $window->toArray();

expect($windowArray['frame'])->toBeTrue();
expect($windowArray['transparent'])->toBeTrue();
expect($windowArray['focusable'])->toBeFalse();
expect($windowArray['hasShadow'])->toBeFalse();
});
0