Skip to content
Browse files

Fix unit test.

  • Loading branch information...
jdm committed Jun 14, 2019
1 parent 15f69c8 commit 5904d14f729290f5236a3a995c5f93243bc7153e
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/unit/metrics/
@@ -9,7 +9,8 @@ use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
use msg::constellation_msg::TEST_PIPELINE_ID;
use profile_traits::time::{ProfilerChan, TimerMetadata};
use servo_url::ServoUrl;
use webrender_api::{AlphaType, ColorF, ImageDisplayItem, ImageKey, ImageRendering, LayoutSize};
use webrender_api::units::{LayoutRect, LayoutSize};
use webrender_api::{AlphaType, ColorF, ImageDisplayItem, ImageKey, ImageRendering};

struct DummyProfilerMetadataFactory {}
impl ProfilerMetadataFactory for DummyProfilerMetadataFactory {
@@ -118,6 +119,8 @@ fn test_first_contentful_paint_setter() {
let image = DisplayItem::Image(CommonDisplayItem::new(
ImageDisplayItem {
bounds: LayoutRect::zero(),
common: layout::display_list::items::empty_common_item_properties(),
image_key: ImageKey::DUMMY,
stretch_size: LayoutSize::zero(),
tile_spacing: LayoutSize::zero(),

0 comments on commit 5904d14

Please sign in to comment.
You can’t perform that action at this time.