For WebKit HTTP tests, the root is LayoutTests/http/tests, but for WebSocket ones, it's LayoutTests/. Is there a reason for such a difference? It's somewhat confusing, and makes one use longer paths in tests.
The root has been chosen such that LayoutTests/fast/js/resources/*.js are accessible from Web Socket tests. As an alternative, I considered using a symbolic link from the websocket directory but decided otherwise, because the SVN's handling of symbolic link on Windows could confuse developers. Yuzo
Sharing resources is good, but maybe if would still be better for WebSocket to have its own copy of the files. Since WebSocket tests are all async - unlike most JS tests - this could help us make an easier to use test harness for those. Currently, there is a lot of copy/paste code needed in every test.