~alan-griffiths/mir/move-miral-to-mir-no-more-miral-packages

« back to all changes in this revision

Viewing changes to tests/unit-tests/scene/test_surface.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2017-09-05 17:18:31 UTC
  • mfrom: (4235.1.7 mir4)
  • Revision ID: tarmac-20170905171831-ver6wjy0ht67vopc
Incorporate miral project into mir source tree

This is a third pass at removing code obsoleted by MirAL.

Approved by mir-ci-bot, Gerry Boland, Chris Halse Rogers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    }
332
332
}
333
333
 
334
 
TEST_F(SurfaceCreation, test_surface_set_alpha)
335
 
{
336
 
    using namespace testing;
337
 
 
338
 
    float alpha = 0.5f;
339
 
 
340
 
    surface.set_alpha(alpha);
341
 
    EXPECT_FLOAT_EQ(alpha, surface.alpha());
342
 
    auto renderables = surface.generate_renderables(nullptr);
343
 
    ASSERT_THAT(renderables.size(), Ge(1));
344
 
    EXPECT_FLOAT_EQ(alpha, renderables[0]->alpha());
345
 
    
346
 
    alpha = 0.1;
347
 
 
348
 
    surface.set_alpha(alpha);
349
 
    EXPECT_FLOAT_EQ(alpha, surface.alpha());
350
 
    renderables = surface.generate_renderables(nullptr);
351
 
    ASSERT_THAT(renderables.size(), Ge(1));
352
 
    EXPECT_FLOAT_EQ(alpha, renderables[0]->alpha());
353
 
}
354
 
 
355
334
TEST_F(SurfaceCreation, consume_calls_send_event)
356
335
{
357
336
    using namespace testing;