| <!DOCTYPE html><!-- webkit-test-runner [ useFlexibleViewport=true PluginsEnabled=false ] --> |
| <meta name="viewport" content="width=device-width"> |
| <script src="/js-test-resources/ui-helper.js"></script> |
| testRunner.setShouldLogDownloadCallbacks(true); |
| testRunner.waitUntilDownloadFinished(); |
| testRunner.setShouldDownloadUndisplayableMIMETypes(true); |
| <p>The download should succeed.</p> |
| <a id="testLink">Download plugin</a> |
| const testURL = "/plugins/resources/mock-plugin-cacheable.pl"; |
| if (!window.eventSender) { |
| alert('Click the link to run the test.'); |
| UIHelper.activateAt(elmt.offsetLeft + 5, elmt.offsetTop + 5); |
| function cacheTestResource(then) |
| let frame = document.createElement("iframe"); |
| document.body.appendChild(frame); |
| cacheTestResource(function() { |
| internals.clearMemoryCache(); |
| let link = document.getElementById("testLink"); |