|
2 | 2 |
|
3 | 3 | exports[`sources-tree addToTree can add a file to an intermediate directory 1`] = ` |
4 | 4 | " - root path= |
5 | | - - unpkg.com path=/unpkg.com |
6 | | - |
7 | | - - mode path=/unpkg.com/[email protected]/mode |
8 | | - - xml path=/unpkg.com/[email protected]/mode/xml |
9 | | - - xml.js path=/unpkg.com/[email protected]/mode/xml/xml.js source_id=server1.conn13.child1/39 |
10 | | - - [email protected] path=/unpkg.com/[email protected] source_id=server1.conn13.child1/37 |
| 5 | + - unpkg.com path=unpkg.com |
| 6 | + |
| 7 | + - mode path=unpkg.com/[email protected]/mode |
| 8 | + - xml path=unpkg.com/[email protected]/mode/xml |
| 9 | + - xml.js path=unpkg.com/[email protected]/mode/xml/xml.js source_id=server1.conn13.child1/39 |
| 10 | + - [email protected] path=unpkg.com/[email protected] source_id=server1.conn13.child1/37 |
11 | 11 | " |
12 | 12 | `; |
13 | 13 |
|
14 | 14 | exports[`sources-tree addToTree correctly parses file sources 1`] = ` |
15 | 15 | " - root path= |
16 | | - - file:// path=/file:// |
17 | | - - a path=/file:///a |
18 | | - - b.js path=/file:///a/b.js source_id=undefined |
| 16 | + - file:// path=file:// |
| 17 | + - a path=file:///a |
| 18 | + - b.js path=file:///a/b.js source_id=undefined |
19 | 19 | " |
20 | 20 | `; |
21 | 21 |
|
22 | 22 | exports[`sources-tree addToTree does not attempt to add two of the same directory 1`] = ` |
23 | 23 | " - root path= |
24 | | - - davidwalsh.name path=/davidwalsh.name |
| 24 | + - davidwalsh.name path=davidwalsh.name |
25 | 25 | - (index) path=https://davidwalsh.name/ source_id=server1.conn13.child1/37 |
26 | | - - wp-content path=/davidwalsh.name/wp-content |
27 | | - - prism.js path=/davidwalsh.name/wp-content/prism.js source_id=server1.conn13.child1/39 |
| 26 | + - wp-content path=davidwalsh.name/wp-content |
| 27 | + - prism.js path=davidwalsh.name/wp-content/prism.js source_id=server1.conn13.child1/39 |
28 | 28 | " |
29 | 29 | `; |
30 | 30 |
|
31 | 31 | exports[`sources-tree addToTree does not attempt to add two of the same file 1`] = ` |
32 | 32 | " - root path= |
33 | | - - davidwalsh.name path=/davidwalsh.name |
| 33 | + - davidwalsh.name path=davidwalsh.name |
34 | 34 | - (index) path=https://davidwalsh.name/ source_id=server1.conn13.child1/37 |
35 | 35 | " |
36 | 36 | `; |
37 | 37 |
|
38 | 38 | exports[`sources-tree addToTree excludes javascript: URLs from the tree 1`] = ` |
39 | 39 | " - root path= |
40 | | - - example.com path=/example.com |
41 | | - - source1.js path=/example.com/source1.js source_id=undefined |
| 40 | + - example.com path=example.com |
| 41 | + - source1.js path=example.com/source1.js source_id=undefined |
42 | 42 | " |
43 | 43 | `; |
44 | 44 |
|
45 | 45 | exports[`sources-tree addToTree replaces a file with a directory 1`] = ` |
46 | 46 | " - root path= |
47 | | - - unpkg.com path=/unpkg.com |
48 | | - |
49 | | - - mode path=/unpkg.com/[email protected]/mode |
50 | | - - xml path=/unpkg.com/[email protected]/mode/xml |
51 | | - - xml.js path=/unpkg.com/[email protected]/mode/xml/xml.js source_id=server1.conn13.child1/39 |
52 | | - - [email protected] path=/unpkg.com/[email protected] source_id=server1.conn13.child1/37 |
| 47 | + - unpkg.com path=unpkg.com |
| 48 | + |
| 49 | + - mode path=unpkg.com/[email protected]/mode |
| 50 | + - xml path=unpkg.com/[email protected]/mode/xml |
| 51 | + - xml.js path=unpkg.com/[email protected]/mode/xml/xml.js source_id=server1.conn13.child1/39 |
| 52 | + - [email protected] path=unpkg.com/[email protected] source_id=server1.conn13.child1/37 |
53 | 53 | " |
54 | 54 | `; |
55 | 55 |
|
56 | 56 | exports[`sources-tree addToTree supports data URLs 1`] = ` |
57 | 57 | " - root path= |
58 | | - - (no domain) path=/(no domain) |
| 58 | + - (no domain) path=(no domain) |
59 | 59 | - data:text/html,<script>console.log(123)</script> path=data:text/html,<script>console.log(123)</script> source_id=server1.conn13.child1/39 |
60 | 60 | " |
61 | 61 | `; |
62 | 62 |
|
63 | 63 | exports[`sources-tree addToTree uses debuggeeUrl as default 1`] = ` |
64 | 64 | " - root path= |
65 | | - - localhost:4242 path=/localhost:4242 |
66 | | - - components path=/localhost:4242/components |
67 | | - - Header.js path=/localhost:4242/components/Header.js source_id=undefined |
68 | | - - TodoItem.js path=/localhost:4242/components/TodoItem.js source_id=undefined |
69 | | - - TodoTextInput.js path=/localhost:4242/components/TodoTextInput.js source_id=undefined |
70 | | - - reducers path=/localhost:4242/reducers |
71 | | - - index.js path=/localhost:4242/reducers/index.js source_id=undefined |
72 | | - - index.js path=/localhost:4242/index.js source_id=undefined |
73 | | - - resource:// path=/resource:// |
74 | | - - modules path=/resource:///modules |
75 | | - - ExtensionContent.jsm path=/resource:///modules/ExtensionContent.jsm source_id=undefined |
76 | | - - voz37vlg5.codesandbox.io path=/voz37vlg5.codesandbox.io |
77 | | - - static path=/voz37vlg5.codesandbox.io/static |
78 | | - - js path=/voz37vlg5.codesandbox.io/static/js |
79 | | - - components path=/voz37vlg5.codesandbox.io/static/js/components |
80 | | - - TodoItem.js path=/voz37vlg5.codesandbox.io/static/js/components/TodoItem.js source_id=undefined |
| 65 | + - localhost:4242 path=localhost:4242 |
| 66 | + - components path=localhost:4242/components |
| 67 | + - Header.js path=localhost:4242/components/Header.js source_id=undefined |
| 68 | + - TodoItem.js path=localhost:4242/components/TodoItem.js source_id=undefined |
| 69 | + - TodoTextInput.js path=localhost:4242/components/TodoTextInput.js source_id=undefined |
| 70 | + - reducers path=localhost:4242/reducers |
| 71 | + - index.js path=localhost:4242/reducers/index.js source_id=undefined |
| 72 | + - index.js path=localhost:4242/index.js source_id=undefined |
| 73 | + - resource:// path=resource:// |
| 74 | + - modules path=resource:///modules |
| 75 | + - ExtensionContent.jsm path=resource:///modules/ExtensionContent.jsm source_id=undefined |
| 76 | + - voz37vlg5.codesandbox.io path=voz37vlg5.codesandbox.io |
| 77 | + - static path=voz37vlg5.codesandbox.io/static |
| 78 | + - js path=voz37vlg5.codesandbox.io/static/js |
| 79 | + - components path=voz37vlg5.codesandbox.io/static/js/components |
| 80 | + - TodoItem.js path=voz37vlg5.codesandbox.io/static/js/components/TodoItem.js source_id=undefined |
81 | 81 | " |
82 | 82 | `; |
83 | 83 |
|
84 | 84 | exports[`sources-tree addToTree uses projectRoot to filter the list 1`] = ` |
85 | 85 | " - root path= |
86 | | - - components path=/components |
87 | | - - Header.js path=/components/Header.js source_id=undefined |
88 | | - - TodoItem.js path=/components/TodoItem.js source_id=undefined |
89 | | - - TodoTextInput.js path=/components/TodoTextInput.js source_id=undefined |
90 | 86 | " |
91 | 87 | `; |
0 commit comments