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

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

Issue 2676573004: Import wpt@6010f54a979d242f657b284bae53c2b218c533f4 (Closed)
Patch Set: Update test expectations and baselines. 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-2/#sec-Per formanceNavigationTiming"/>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 </head>
11 <body>
12 <h1>Description</h1>
13 <p>This test validates that the value of the window.performance.getEntri esByType("navigation")[0].redirectCount attribute, as well as the window.perform ance.getEntriesByType("navigation")[0].redirectStart and redirectEnd attributes on a non-redirected navigation.</p>
14
15 <script>
16
17 async_test(function (t) {
18 var observer = new PerformanceObserver(
19 t.step_func(function (entryList) {
20 var navTiming = performance.getEntriesByType("navigation")[0 ];
21 assert_equals(navTiming.redirectCount, 0, "Expected redirect Count to be 0.");
22 assert_equals(navTiming.redirectStart, 0, "Expected redirect Start to be 0.");
23 assert_equals(navTiming.redirectEnd, 0, "Expected redirectEn d to be 0.");
24 observer.disconnect();
25 t.done();
26 })
27 );
28 observer.observe({entryTypes: ["navigation"]});
29
30 }, "Naivation without redirects.");
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698