spec: Test the -able methods

This commit is contained in:
Cheng Zhao 2016-01-23 03:35:30 -08:00
parent 010cc3276a
commit c41de501cb
4 changed files with 113 additions and 8 deletions

View file

@ -465,9 +465,9 @@ void NativeWindowViews::SetMinimizable(bool minimizable) {
bool NativeWindowViews::IsMinimizable() {
#if defined(OS_WIN)
return CanMinimize();
return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_MINIMIZEBOX;
#else
return true; // CanMinimize() Not implemented on Linux.
return true; // Not implemented on Linux.
#endif
}
@ -480,9 +480,9 @@ void NativeWindowViews::SetMaximizable(bool maximizable) {
bool NativeWindowViews::IsMaximizable() {
#if defined(OS_WIN)
return CanMaximize();
return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_MAXIMIZEBOX;
#else
return true; // CanMaximize() Not implemented on Linux.
return true; // Not implemented on Linux.
#endif
}