mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Attempt to fix page-agent-get-resource-tree on the bot
Unclear why it's failing since we don't have output from the bot, but this seems like a reasonable guess. TBR=ojan@chromium.org Review URL: https://codereview.chromium.org/742813002
This commit is contained in:
parent
2df4773295
commit
0c2d6c92eb
@ -4,6 +4,11 @@
|
||||
<import src="/sky/framework/inspector/page-agent.sky" as="PageAgent" />
|
||||
<img src='does_not_exist.jpg' />
|
||||
<script>
|
||||
// This is to avoid hard-coding the hostname and port number in the tests.
|
||||
function absoluteURL(url) {
|
||||
return String(new URL(url, document.URL));
|
||||
}
|
||||
|
||||
describe('PageAgent.getResourceTree', function() {
|
||||
it('should dump the current resource tree', function() {
|
||||
var pageAgent = new PageAgent();
|
||||
@ -14,24 +19,24 @@ describe('PageAgent.getResourceTree', function() {
|
||||
"frame": {
|
||||
"id": "1",
|
||||
"loaderId": "1",
|
||||
"url": "http://127.0.0.1:8000/sky/tests/inspector/page-agent-get-resource-tree.sky",
|
||||
"url": absoluteURL("/sky/tests/inspector/page-agent-get-resource-tree.sky"),
|
||||
"mimeType": "text/html",
|
||||
"securityOrigin": "http://127.0.0.1:8000/sky/tests/inspector/page-agent-get-resource-tree.sky"
|
||||
"securityOrigin": absoluteURL("/sky/tests/inspector/page-agent-get-resource-tree.sky")
|
||||
},
|
||||
"resources": [{
|
||||
"url": "http://127.0.0.1:8000/sky/tests/resources/chai.sky",
|
||||
"url": absoluteURL("/sky/tests/resources/chai.sky"),
|
||||
"type": "Document",
|
||||
"mimeType": "text/html"
|
||||
}, {
|
||||
"url": "http://127.0.0.1:8000/sky/tests/resources/mocha.sky",
|
||||
"url": absoluteURL("/sky/tests/resources/mocha.sky"),
|
||||
"type": "Document",
|
||||
"mimeType": "text/html"
|
||||
}, {
|
||||
"url": "http://127.0.0.1:8000/sky/framework/inspector/page-agent.sky",
|
||||
"url": absoluteURL("/sky/framework/inspector/page-agent.sky"),
|
||||
"type": "Document",
|
||||
"mimeType": "text/html"
|
||||
}, {
|
||||
"url": "http://127.0.0.1:8000/sky/tests/inspector/does_not_exist.jpg",
|
||||
"url": absoluteURL("/sky/tests/inspector/does_not_exist.jpg"),
|
||||
"type": "Image",
|
||||
"mimeType": "image/unknown"
|
||||
}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user