Running test: basicTest Tests that Preload.preloadingAttemptSourcesUpdated is dispatched. Preload attempts: [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/page.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } [1] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/subresource.js } nodeIds : [ ] ruleSetIds : [ [0] : ] } ] Running test: multipleRuleSetsWithDuplicates Tests that Preload.preloadingAttemptSourcesUpdated groups duplicates correctly. Preload attempts: [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/one.html } nodeIds : [ ] ruleSetIds : [ [0] : [1] : ] } [1] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/three.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } [2] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/two.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } [3] : { key : { action : Prerender loaderId : url : http://127.0.0.1:8000/two.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } [4] : { key : { action : PrerenderUntilScript loaderId : url : http://127.0.0.1:8000/pus.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } ] Running test: documentRules Tests that Preload.preloadingAttemptSourcesUpdated is sent for document rule triggered attempts. Preload attempts: [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/star.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } [1] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/tau-ceti.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } [2] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/time.html } nodeIds : [ [0] : [1] : ] ruleSetIds : [ [0] : ] } [3] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/universe.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } [4] : { key : { action : Prerender loaderId : url : http://127.0.0.1:8000/space.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } [5] : { key : { action : Prerender loaderId : url : http://127.0.0.1:8000/time.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } [6] : { key : { action : PrerenderUntilScript loaderId : url : http://127.0.0.1:8000/pus.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : ] } ] Running test: duplicateRuleSets Tests that Preload.preloadingAttemptSourcesUpdated de-duplicates node ids when there are two identical rule sets. Preload attempts: [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/bar.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : [1] : ] } [1] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/foo.html } nodeIds : [ [0] : ] ruleSetIds : [ [0] : [1] : ] } ] Running test: dynamicUpdate Tests that Preload.preloadingAttemptSourcesUpdated is dynamic. Preloading attempts: [ ] Preloading attempts (after DOM mutation): [ [0] : { key : { action : Prefetch loaderId : url : https://foo.com/bar.html } nodeIds : ruleSetIds : } ] Running test: loaderId Tests that Preload.preloadingAttemptSourcesUpdated uses the correct loaderId. preloadingAttemptSourcesUpdated: { loaderId : preloadingAttemptSources : [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/next.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } ] } preloadingAttemptSourcesUpdated: { loaderId : preloadingAttemptSources : [ [0] : { key : { action : Prefetch loaderId : url : http://127.0.0.1:8000/prev.html } nodeIds : [ ] ruleSetIds : [ [0] : ] } ] } preloadingAttemptSourcesUpdated: { loaderId : preloadingAttemptSources : [ ] }