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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/navigation-timing/nav2_test_open_blank_page.html

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: addressed comments Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <title>Navigation Timing 2 WPT</title>
6 <link rel="author" title="Google" href="http://www.google.com/" />
7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navig ation-timing-interface"/>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10
11 <script>
12
13 function onload_test()
14 {
15 var iframe_performance = document.getElementById("frameContext") .contentWindow.performance;
16 assert_equals(iframe_performance.getEntriesByType("navigation"). length, 0, "Expected there is no navigation timing instance");
Kunihiko Sakamoto 2017/02/16 08:42:29 Blank pages and data:url now have navigation timin
sunjian 2017/02/16 22:30:49 I only know that NT1 does expose navigation timing
17 done();
18 }
19 </script>
20
21 </head>
22 <body>
23 <h1>Description</h1>
24 <p>This test validates there does not exist a navigation timing instance when opening internal pages like about:blank.</p>
25
26 <iframe id="frameContext" onload="onload_test();" src="about:blank" styl e="width: 250px; height: 250px;"></iframe>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698