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

Side by Side Diff: LayoutTests/http/tests/misc/resource-timing-iframe-restored-from-history.html

Issue 1257953003: Do not report Resource Timing for iframe navigations when restored from history (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/resource-timing-iframe-restored-from-history-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <iframe id="frame" src="resources/frame-initial-url.html"></iframe>
4 <script>
5 description('Tests that iframe restored from history does not report resource ti ming.');
6 window.jsTestIsAsync = true;
7
8 function runTest() {
9 if (!sessionStorage.didNav) {
10 sessionStorage.didNav = true;
11 // Navigate a timeout to make sure we generate a history entry that we c an go back to.
12 setTimeout(function() {
13 location.href = 'data:text/html,<script>alert("Going back.");history .back();</' + 'script>';
14 }, 0);
15 } else {
16 delete sessionStorage.didNav;
17 shouldBe("performance.getEntriesByName('http://127.0.0.1:8000/misc/resou rces/frame-final-url.html').length", '0');
Mike West 2015/07/27 12:38:17 Can you verify that the correct entry is in the li
Kunihiko Sakamoto 2015/07/28 03:17:01 Done.
18 if (window.testRunner)
19 finishJSTest();
20 }
21 }
22 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/resource-timing-iframe-restored-from-history-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698