Index: third_party/WebKit/LayoutTests/http/tests/performance-timing/nav2-test-instance-accessible-from-the-start.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/performance-timing/nav2-test-instance-accessible-from-the-start.html b/third_party/WebKit/LayoutTests/http/tests/performance-timing/nav2-test-instance-accessible-from-the-start.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3bb3ff7f6926fea9597ba3126a021b39831adc1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/performance-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> |
panicker
2017/03/10 21:46:36
move this under web-platform-tests in external/wpt
sunjian
2017/03/13 19:08:18
I thought of doing this. But i am not sure whether
panicker
2017/03/13 20:42:40
Yes it's fine to move to external/wpt/ as this is
sunjian
2017/03/14 18:36:58
Done.
|
+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> |