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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <import src="/sky/tests/resources/chai.sky" /> 2 <import src="/sky/tests/resources/chai.sky" />
3 <import src="/sky/tests/resources/mocha.sky" /> 3 <import src="/sky/tests/resources/mocha.sky" />
4 <import src="/sky/framework/inspector/page-agent.sky" as="PageAgent" /> 4 <import src="/sky/framework/inspector/page-agent.sky" as="PageAgent" />
5 <img src='does_not_exist.jpg' /> 5 <img src='does_not_exist.jpg' />
6 <script> 6 <script>
7 // This is to avoid hard-coding the hostname and port number in the tests.
8 function absoluteURL(url) {
9 return String(new URL(url, document.URL));
10 }
11
12 describe('PageAgent.getResourceTree', function() { 7 describe('PageAgent.getResourceTree', function() {
13 it('should dump the current resource tree', function() { 8 it('should dump the current resource tree', function() {
14 var pageAgent = new PageAgent(); 9 var pageAgent = new PageAgent();
15 pageAgent.enable(); 10 pageAgent.enable();
16 var resourceTree = pageAgent.getResourceTree(); 11 var resourceTree = pageAgent.getResourceTree();
17 assert.deepEqual(resourceTree, { 12 assert.deepEqual(resourceTree, {
18 "frameTree": { 13 "frameTree": {
19 "frame": { 14 "frame": {
20 "id": "1", 15 "id": "1",
21 "loaderId": "1", 16 "loaderId": "1",
22 "url": absoluteURL("/sky/tests/inspector/page-agent-get-resource-tree. sky"), 17 "url": "http://127.0.0.1:8000/sky/tests/inspector/page-agent-get-resou rce-tree.sky",
23 "mimeType": "text/html", 18 "mimeType": "text/html",
24 "securityOrigin": absoluteURL("/sky/tests/inspector/page-agent-get-res ource-tree.sky") 19 "securityOrigin": "http://127.0.0.1:8000/sky/tests/inspector/page-agen t-get-resource-tree.sky"
25 }, 20 },
26 "resources": [{ 21 "resources": [{
27 "url": absoluteURL("/sky/tests/resources/chai.sky"), 22 "url": "http://127.0.0.1:8000/sky/tests/resources/chai.sky",
28 "type": "Document", 23 "type": "Document",
29 "mimeType": "text/html" 24 "mimeType": "text/html"
30 }, { 25 }, {
31 "url": absoluteURL("/sky/tests/resources/mocha.sky"), 26 "url": "http://127.0.0.1:8000/sky/tests/resources/mocha.sky",
32 "type": "Document", 27 "type": "Document",
33 "mimeType": "text/html" 28 "mimeType": "text/html"
34 }, { 29 }, {
35 "url": absoluteURL("/sky/framework/inspector/page-agent.sky"), 30 "url": "http://127.0.0.1:8000/sky/framework/inspector/page-agent.sky",
36 "type": "Document", 31 "type": "Document",
37 "mimeType": "text/html" 32 "mimeType": "text/html"
38 }, { 33 }, {
39 "url": absoluteURL("/sky/tests/inspector/does_not_exist.jpg"), 34 "url": "http://127.0.0.1:8000/sky/tests/inspector/does_not_exist.jpg",
40 "type": "Image", 35 "type": "Image",
41 "mimeType": "image/unknown" 36 "mimeType": "image/unknown"
42 }] 37 }]
43 } 38 }
44 }); 39 });
45 }); 40 });
46 }); 41 });
47 </script> 42 </script>
48 </html> 43 </html>
OLDNEW
« 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