Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / cc / layers / solid_color_scrollbar_layer_impl_unittest.cc
index 0317015..480cd64 100644 (file)
@@ -18,6 +18,7 @@ TEST(SolidColorScrollbarLayerImplTest, Occlusion) {
 
   ScrollbarOrientation orientation = VERTICAL;
   int thumb_thickness = layer_size.width();
+  int track_start = 0;
   bool is_left_side_vertical_scrollbar = false;
   bool is_overlay = false;
 
@@ -25,6 +26,7 @@ TEST(SolidColorScrollbarLayerImplTest, Occlusion) {
       impl.AddChildToRoot<SolidColorScrollbarLayerImpl>(
           orientation,
           thumb_thickness,
+          track_start,
           is_left_side_vertical_scrollbar,
           is_overlay);
   scrollbar_layer_impl->SetAnchorPoint(gfx::PointF());
@@ -34,6 +36,8 @@ TEST(SolidColorScrollbarLayerImplTest, Occlusion) {
   scrollbar_layer_impl->SetCurrentPos(100.f / 4);
   scrollbar_layer_impl->SetMaximum(100);
   scrollbar_layer_impl->SetVisibleToTotalLengthRatio(1.f / 2);
+  // SolidColorScrollbarLayers construct with opacity = 0.f, so override.
+  scrollbar_layer_impl->SetOpacity(1.f);
 
   impl.CalcDrawProps(viewport_size);