Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: sky/tests/inspector/page-agent-get-resource-tree.sky

Issue 742783003: Revert "Attempt to fix page-agent-get-resource-tree on the bot" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/inspector/page-agent-get-resource-tree.sky
diff --git a/sky/tests/inspector/page-agent-get-resource-tree.sky b/sky/tests/inspector/page-agent-get-resource-tree.sky
index cc5e113d8ed8ffe85d2c5e15257a1ff279e4b52a..99646824ed3f06d12c45ef91e09a8f50c787397e 100644
--- a/sky/tests/inspector/page-agent-get-resource-tree.sky
+++ b/sky/tests/inspector/page-agent-get-resource-tree.sky
@@ -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"
}]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698