Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/no-paint.html

Issue 2860143002: Add tests for paint-timing, and move existing tests to same location (Closed)
Patch Set: add missing image resources Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/no-paint.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/no-paint.html b/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/no-paint.html
new file mode 100644
index 0000000000000000000000000000000000000000..a21b6871a8f14cde47804ce84359c34e130aa056
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/no-paint.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<head>
+<title>Performance Paint Timing Test</title>
+</head>
+<body>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script>
+ async_test(function(t) {
+ var observer = new PerformanceObserver(
+ t.step_func(function (entryList) {
+ assert_unreached("no paint entries should be observed");
+ })
+ );
+ observer.observe({entryTypes: ["paint"]});
+
+ t.step_timeout(function() { t.done(); }, 1000);
+ }, "No paint entries are observable, as nothing is painted.");
+ </script>
+
+ <div><!--Nothing to paint--></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698