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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/preloader/is-preloaded-after-load.html

Issue 2332333003: Make internals.isPreloaded() to remain the same before/after clearPreloads() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow preloads before enableIsPreloadedForTest() Created 4 years, 3 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 | third_party/WebKit/LayoutTests/fast/preloader/is-preloaded-after-load-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 <body>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7
8 function test()
9 {
10 if (window.internals)
11 console.log(internals.isPreloaded("resources/image1.png") ? "PASS" : "FA IL");
12 }
13
14 window.addEventListener('DOMContentLoaded', function () {
15 test();
16 setTimeout(function() {
17 test();
18 if (window.testRunner) {
19 testRunner.notifyDone();
20 }
21 }, 100);
22 }, false);
23 </script>
24 internals.isPreloaded() should remain the same even after
25 ResourceFetcher::clearPreloads() is called (around document's load event).
26 crbug.com/643621
27 <script src=resources/non-existant.js></script>
Yoav Weiss 2016/09/15 06:57:03 Can you also test that non-existant.js isPreloaded
hiroshige 2016/09/15 08:04:40 Done.
28 <script>document.write("<plaintext>");</script>
29 <img src=resources/image1.png>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/preloader/is-preloaded-after-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698