tests: enhance the coverage for DSWaylandSurface 77/243477/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 7 Sep 2020 08:47:02 +0000 (17:47 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:54:16 +0000 (19:54 +0900)
Change-Id: I708a6fc597911c54d9bfe7711fc2563b82dfb8d9

tests/DSWaylandSurface-test.cpp

index a83d794..d8db123 100644 (file)
@@ -137,6 +137,10 @@ TEST_F(DSWaylandSurfaceTest, registerCallbackSurfaceCommitted)
 
                        wl_surface_attach(testClient->surface, testClient->buffer, 0, 0);
                        wl_surface_damage(testClient->surface, 0, 0, 100, 100);
+                       wl_surface_set_buffer_transform(testClient->surface, 0);
+                       wl_surface_set_buffer_scale(testClient->surface, 1);
+                       wl_surface_damage_buffer(testClient->surface, 0, 0, 100, 100);
+                       wl_surface_frame(testClient->surface);
                        wl_surface_commit(testClient->surface);
 
                        wl_display_roundtrip(testClient->display);