blob: 55e983a4d1e83a1b2c0ad87fe4949a7925a0e224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#import <Cocoa/Cocoa.h>
#include <QMenuBar>
#include <QTest>
bool tst_qmenubar_taskQTBUG56275(QMenuBar *menubar)
{
NSMenu *mainMenu = menubar->toNSMenu();
return mainMenu.numberOfItems == 2
&& [[mainMenu itemAtIndex:1].title isEqualToString:@"menu"];
}
|