1 Tests file system project mappings.
4 Running: testAutomaticMapping
6 Workspace event: UISourceCodeAdded: filesystem:/var/www/html/foo.js.
7 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
8 Adding network resource.
9 Workspace event: UISourceCodeAdded: http://localhost/html/foo.js.
10 Workspace event: UISourceCodeAdded: http://localhost/bar.js.
11 UISourceCode uri to url mappings:
12 filesystem:/var/www/html/foo.js ->
13 filesystem:/var/www/bar.js ->
14 error: networkUISourceCode: [object Object]
15 Adding mapping between network and file system resources.
16 Emulate reloading inspector.
17 Workspace event: UISourceCodeAdded: filesystem:/var/www/html/foo.js.
18 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
19 UISourceCode uri to url mappings:
20 filesystem:/var/www/html/foo.js -> http://localhost/html/foo.js
21 filesystem:/var/www/bar.js -> http://localhost/bar.js
22 Removing mapping between network and file system resources.
23 Emulate reloading inspector.
24 Workspace event: UISourceCodeAdded: filesystem:/var/www/html/foo.js.
25 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
26 UISourceCode uri to url mappings:
27 filesystem:/var/www/html/foo.js ->
28 filesystem:/var/www/bar.js ->
30 Running: testScriptFileOnReloadWithDirtyFile
32 Adding file system mapping.
33 Workspace event: UISourceCodeAdded: filesystem:/var/www/html/foo.js.
34 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
35 Workspace event: UISourceCodeAdded: debugger:/VM1 foo.js.
36 Dumping uiSourceCode and script content:
37 uiSourceCode: <foo content>
39 //# sourceURL=http://localhost/html/foo.js
41 - hasDivergedFromVM: false
42 - sourceFrame._muted: false
44 - hasDivergedFromVM: true
45 - sourceFrame._muted: true
46 Committing uiSourceCode with live edit failure:
47 Dumping uiSourceCode and script content:
48 uiSourceCode: <foo content edited>
50 //# sourceURL=http://localhost/html/foo.js
52 - hasDivergedFromVM: true
53 - sourceFrame._muted: true
54 Reloading with saved but diverged uiSourceCode:
56 Workspace event: UISourceCodeAdded: debugger:/VM2 foo.js.
57 Dumping uiSourceCode and script content:
58 uiSourceCode: <foo content edited>
60 //# sourceURL=http://localhost/html/foo.js
62 - hasDivergedFromVM: true
63 - sourceFrame._muted: true
64 Editing uiSourceCode again:
65 - hasDivergedFromVM: true
66 - sourceFrame._muted: true
67 Committing uiSourceCode again (with live edit success now):
68 Dumping uiSourceCode and script content:
69 uiSourceCode: <foo content edited again>
70 script: <foo content edited again>
71 - hasDivergedFromVM: false
72 - sourceFrame._muted: false
75 Workspace event: UISourceCodeAdded: debugger:/VM3 foo.js.
76 - hasDivergedFromVM: false
77 - sourceFrame._muted: false
78 Editing uiSourceCode again and reloading while it is dirty:
80 Workspace event: UISourceCodeAdded: debugger:/VM4 foo.js.
81 - hasDivergedFromVM: true
82 - sourceFrame._muted: true
84 Running: testLiveEditReload
86 Adding file system mapping.
89 ==Source frame contents start==
92 return "live-edited string";
95 ==Source frame contents end==
97 Running: testExcludingFolders
99 Adding exclusion pattern and excluded folder.
100 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
101 Workspace event: UISourceCodeAdded: filesystem:/var/www/html2/foo.js.
102 Dumping uiSourceCodes origin URLs:
103 - file:///var/www/bar.js
104 - file:///var/www/html2/foo.js
105 Excluding html2 folder:
106 Workspace event: UISourceCodeRemoved: filesystem:/var/www/html2/foo.js.
107 Dumping uiSourceCodes origin URLs:
108 - file:///var/www/bar.js
110 Running: testRemoveProject
112 Workspace event: UISourceCodeAdded: filesystem:/var/www/foo.js.
113 Dumping uiSourceCodes origin URLs:
114 - file:///var/www/foo.js
116 Received project removed event.
118 Running: testURLAfterRenaming
120 Adding file system mapping.
121 Workspace event: UISourceCodeAdded: filesystem:/var/www/html/foo.js.
122 Workspace event: UISourceCodeAdded: filesystem:/var/www/bar.js.
123 Workspace event: UISourceCodeAdded: filesystem:/var/www/foo/bar/baz.js.
125 uiSourceCode URL change after renaming: http://localhost/html/foo.js -> http://localhost/html/newName.js
126 uiSourceCode URL change after renaming: http://localhost/bar.js -> http://localhost/newName.js
127 uiSourceCode URL change after renaming: http://localhost/foo/bar/baz.js -> http://localhost/foo/bar/newName.js