Tests resource content is correctly loaded if Resource.requestContent was called before network request was finished. https://bugs.webkit.org/show_bug.cgi?id=90153
Adding dynamic script:
Waiting for script request to finish:
Clearing memory cache:
Requesting content:
Resource url: http://127.0.0.1:8000/devtools/resource-tree/resources/dynamic-script.js
Resource content: function foo() {
}