Revert "Attempt to fix page-agent-get-resource-tree on the bot"

Didn't actually fix the bot:
http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux/builds/321/steps/mojob%20test/logs/stdio
so there is no point in keeping this change.

This reverts commit 4e50a3cdf887a77adfb0adf5f4e5ebc42a2d99f7.

TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/742783003
This commit is contained in:
Eric Seidel 2014-11-19 12:01:15 -08:00
parent 0c2d6c92eb
commit d2e657319b

View File

@ -4,11 +4,6 @@
<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();
@ -19,24 +14,24 @@ describe('PageAgent.getResourceTree', function() {
"frame": {
"id": "1",
"loaderId": "1",
"url": absoluteURL("/sky/tests/inspector/page-agent-get-resource-tree.sky"),
"url": "http://127.0.0.1:8000/sky/tests/inspector/page-agent-get-resource-tree.sky",
"mimeType": "text/html",
"securityOrigin": absoluteURL("/sky/tests/inspector/page-agent-get-resource-tree.sky")
"securityOrigin": "http://127.0.0.1:8000/sky/tests/inspector/page-agent-get-resource-tree.sky"
},
"resources": [{
"url": absoluteURL("/sky/tests/resources/chai.sky"),
"url": "http://127.0.0.1:8000/sky/tests/resources/chai.sky",
"type": "Document",
"mimeType": "text/html"
}, {
"url": absoluteURL("/sky/tests/resources/mocha.sky"),
"url": "http://127.0.0.1:8000/sky/tests/resources/mocha.sky",
"type": "Document",
"mimeType": "text/html"
}, {
"url": absoluteURL("/sky/framework/inspector/page-agent.sky"),
"url": "http://127.0.0.1:8000/sky/framework/inspector/page-agent.sky",
"type": "Document",
"mimeType": "text/html"
}, {
"url": absoluteURL("/sky/tests/inspector/does_not_exist.jpg"),
"url": "http://127.0.0.1:8000/sky/tests/inspector/does_not_exist.jpg",
"type": "Image",
"mimeType": "image/unknown"
}]