Description[NoStatePrefetch] Remove JS injection in tests
With upcoming changes the renderer that is used for prefetch will exit early
before tests have a chance to execute javascript there. Fortunately, there is
another way to check whether javascript is executed: requesting a resource from
an inline script in a blocking manner. This is simpler than changing the
lifetime of the renderer specifically for tests.
NoStatePrefetchBrowserTest.CheckJavascript would still be able to run with the
new renderer lifetime, but I decided to still remove it because it is testing
mechanisms that are not used any more.
BUG=643652
Committed: https://crrev.com/0b1e4e811cca307ef42d014937ee604161ce637e
Cr-Commit-Position: refs/heads/master@{#426460}
Patch Set 1 #
Total comments: 5
Patch Set 2 : addressed comments by mattcary #
Total comments: 2
Patch Set 3 : PrefetchSimple: check the should-be-fetched resource is indeed fetched #
Messages
Total messages: 23 (12 generated)
|