aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/metrics/paint_time.rs8
-rw-r--r--tests/wpt/meta-legacy-layout/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini2
-rw-r--r--tests/wpt/meta/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini2
-rw-r--r--tests/wpt/mozilla/meta-legacy-layout/mozilla/detached_layout.html.ini3
4 files changed, 7 insertions, 8 deletions
diff --git a/tests/unit/metrics/paint_time.rs b/tests/unit/metrics/paint_time.rs
index ac8ade3842c..65316e09d16 100644
--- a/tests/unit/metrics/paint_time.rs
+++ b/tests/unit/metrics/paint_time.rs
@@ -28,11 +28,12 @@ fn test_paint_metrics_construction() {
layout_sender,
script_sender,
ServoUrl::parse("about:blank").unwrap(),
+ 0,
);
assert_eq!(
(&paint_time_metrics).get_navigation_start(),
- None,
- "navigation start is None"
+ Some(0),
+ "navigation start is set properly"
);
assert_eq!(
paint_time_metrics.get_first_paint(),
@@ -57,6 +58,7 @@ fn test_common(display_list_is_contentful: bool, epoch: Epoch) -> PaintTimeMetri
layout_sender,
script_sender,
ServoUrl::parse("about:blank").unwrap(),
+ 0,
);
let dummy_profiler_metadata_factory = DummyProfilerMetadataFactory {};
@@ -66,8 +68,6 @@ fn test_common(display_list_is_contentful: bool, epoch: Epoch) -> PaintTimeMetri
display_list_is_contentful,
);
- // Should not set any metric until navigation start is set.
- paint_time_metrics.maybe_set_metric(epoch, 0);
assert_eq!(
paint_time_metrics.get_first_paint(),
None,
diff --git a/tests/wpt/meta-legacy-layout/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini b/tests/wpt/meta-legacy-layout/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini
deleted file mode 100644
index 7c64c626527..00000000000
--- a/tests/wpt/meta-legacy-layout/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[adopt-while-parsing-001.html]
- expected: TIMEOUT
diff --git a/tests/wpt/meta/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini b/tests/wpt/meta/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini
deleted file mode 100644
index 7c64c626527..00000000000
--- a/tests/wpt/meta/html/the-xhtml-syntax/parsing-xhtml-documents/adopt-while-parsing-001.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[adopt-while-parsing-001.html]
- expected: TIMEOUT
diff --git a/tests/wpt/mozilla/meta-legacy-layout/mozilla/detached_layout.html.ini b/tests/wpt/mozilla/meta-legacy-layout/mozilla/detached_layout.html.ini
new file mode 100644
index 00000000000..bc10807d4c2
--- /dev/null
+++ b/tests/wpt/mozilla/meta-legacy-layout/mozilla/detached_layout.html.ini
@@ -0,0 +1,3 @@
+[detached_layout.html]
+ [Detached layout doesn't panic]
+ expected: FAIL