[dojo 1.7.0b] doh.runner does not work with registerModulePath or paths URL parameter
I'm trying to get my tests running with the dojo 1.7.0 beta, but I'm failing miserably. My tests don't sit in a directory that is a sibling to dojo, so I need to pass a requireModulePath (which seems to be deprecated in favor of a 'paths' parameter) to runner.html.
Only, that doesn't seem to work, so I've been investigating a little and I think I've uncovered 2 issues:
First, runner.html parses the requireModulePath or paths parameter, but it doesn't use it anywhere. I think it should be set in the config object, both in the sandbox or non sandbox case, like this:
The paths property is not set in the config object in runner.html in 1.7.0b though. If I add it, the path information is passed and processed to pathsMapProg as expected, and used in subsequent require calls.
However, my tests still didn't load because the path to the test module was still not correct: Before a file is downloaded it's path seems to be compacted (compactPath function in dojo.js). However, that function does not always update lastSegment when modifying the result array. If I modify the function like this:
If I test those modifications on a simple case, everything appears to be working, but maybe I'm missing things? I'd register a trac ticket... but I guess I should sign the CLA first :) (which reminds me... why haven't I done that yet :/).