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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_instance_accessible_from_the_start.html

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: add TODO Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_open_blank_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_instance_accessible_from_the_start.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_instance_accessible_from_the_start.html b/third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_instance_accessible_from_the_start.html
new file mode 100644
index 0000000000000000000000000000000000000000..a3bb3ff7f6926fea9597ba3126a021b39831adc1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_instance_accessible_from_the_start.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var navigationTiming2 = window.performance.getEntriesByType('navigation')[0];
+ assert_true(navigationTiming2 !== undefined);
+ assert_equals(navigationTiming2.entryType, "navigation");
+ assert_equals(navigationTiming2.startTime, 0);
+ assert_equals(navigationTiming2.initiatorType, "navigation");
+ done();
+}, "PerformanceNavigationTiming instance exists with reasonable values.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_open_blank_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698