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

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: const auto& 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" : "F AIL") + ": image1.png");
12 console.log((internals.isPreloaded("resources/non-existant.js") ? "PASS" : "FAIL") + ": non-existant.js");
13 }
14 }
15
16 window.addEventListener('DOMContentLoaded', function () {
17 test();
18 setTimeout(function() {
19 test();
20 if (window.testRunner) {
21 testRunner.notifyDone();
22 }
23 }, 100);
24 }, false);
25 </script>
26 internals.isPreloaded() should remain the same even after
27 ResourceFetcher::clearPreloads() is called (around document's load event).
28 crbug.com/643621
29 <script src=resources/non-existant.js></script>
30 <script>document.write("<plaintext>");</script>
31 <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