Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_test.cpp
Show First 20 Lines • Show All 354 Lines • ▼ Show 20 Line(s) | 301 | { | |||
---|---|---|---|---|---|
355 | QSignalSpy frameRenderedSpy(scene, &Scene::frameRendered); | 355 | QSignalSpy frameRenderedSpy(scene, &Scene::frameRendered); | ||
356 | QVERIFY(frameRenderedSpy.isValid()); | 356 | QVERIFY(frameRenderedSpy.isValid()); | ||
357 | QVERIFY(frameRenderedSpy.wait()); | 357 | QVERIFY(frameRenderedSpy.wait()); | ||
358 | 358 | | |||
359 | const QPoint startPos = client->pos() + client->clientPos(); | 359 | const QPoint startPos = client->pos() + client->clientPos(); | ||
360 | auto image = scene->backend()->buffer(); | 360 | auto image = scene->backend()->buffer(); | ||
361 | for (auto y = startPos.y(); y < startPos.y() + client->clientSize().height(); y++) { | 361 | for (auto y = startPos.y(); y < startPos.y() + client->clientSize().height(); y++) { | ||
362 | for (auto x = startPos.x(); x < startPos.x() + client->clientSize().width(); x++) { | 362 | for (auto x = startPos.x(); x < startPos.x() + client->clientSize().width(); x++) { | ||
363 | if ((x >= 95 && y >= 41) || y >= 203) { | | |||
364 | QEXPECT_FAIL("", "BUG 382748", Continue); | | |||
365 | } | | |||
366 | QCOMPARE(image->pixel(x, y), qRgb(255, 255, 255)); | 363 | QCOMPARE(image->pixel(x, y), qRgb(255, 255, 255)); | ||
367 | } | 364 | } | ||
368 | } | 365 | } | ||
369 | 366 | | |||
370 | // and destroy the window again | 367 | // and destroy the window again | ||
371 | xcb_unmap_window(c.data(), w); | 368 | xcb_unmap_window(c.data(), w); | ||
372 | xcb_flush(c.data()); | 369 | xcb_flush(c.data()); | ||
373 | 370 | | |||
Show All 9 Lines |