aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-08-10 12:22:56 +0200
committerShawn Rutledge <shawn.rutledge@digia.com>2014-08-13 07:59:32 +0200
commitcf9b3c334d70d5018b438f37518b057ead9199c0 (patch)
tree7d692ca59e460ac04eecae2586ba7e1cfb5a2f61 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
parenta111b1b108f2d3344cb2b2b677e738fd9dd68945 (diff)
Remove QQuickWindow::glslVersion & glslIsCoreProfile
Superceded by the OpenGLInfo attached type => remove the API before it gets released Change-Id: I7511fd28eb375eb3cd3cdd4bda6d82c1883e3094 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
-rw-r--r--tests/auto/quick/qquickwindow/tst_qquickwindow.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
index 3acf8a5f07..52dd3f1a8d 100644
--- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
+++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
@@ -367,7 +367,6 @@ private slots:
void contentItemSize();
void defaultSurfaceFormat();
- void glslVersion();
void attachedProperty();
@@ -1949,40 +1948,6 @@ void tst_qquickwindow::defaultSurfaceFormat()
QSurfaceFormat::setDefaultFormat(savedDefaultFormat);
}
-void tst_qquickwindow::glslVersion()
-{
- QQuickWindow window;
- window.show();
- QVERIFY(QTest::qWaitForWindowExposed(&window));
-
- // Core profile is never requested by default.
- QVERIFY(!window.glslIsCoreProfile());
-
- // Get the format from the context, not the window. The actual OpenGL version and
- // related settings are associated with the context and are only written back to the
- // context's format.
- QSurfaceFormat format = window.openglContext()->format();
-
- if (format.renderableType() == QSurfaceFormat::OpenGL) {
- if (format.majorVersion() == 2)
- QCOMPARE(window.glslVersion(), QString());
- else if (format.majorVersion() == 3)
- QVERIFY(window.glslVersion().startsWith('3')
- || window.glslVersion() == QStringLiteral("130")
- || window.glslVersion() == QStringLiteral("140")
- || window.glslVersion() == QStringLiteral("150"));
- else if (format.majorVersion() == 4)
- QVERIFY(window.glslVersion().startsWith('4'));
- QVERIFY(!window.glslVersion().contains(QStringLiteral("core")));
- QVERIFY(!window.glslVersion().contains(QStringLiteral("es")));
- } else if (format.renderableType() == QSurfaceFormat::OpenGLES) {
- if (format.majorVersion() == 2)
- QCOMPARE(window.glslVersion(), QString());
- else
- QVERIFY(window.glslVersion().contains(QStringLiteral("es")));
- }
-}
-
void tst_qquickwindow::attachedProperty()
{
QQuickView view(testFileUrl("windowattached.qml"));