在我的考试中,我试着做
browser().navigateTo('<test app which is not on localhost>');
我无法验证我的测试中的网址.我得到这个错误:
$location.url() TypeError: Object [object Object] has no method 'injector' at Object.<anonymous> (<localhost path>/angular-scenario.js:25407:30)
proxies = {'/': 'http://localhost:9000/'}; // assume your app is running on port 9000 urlRoot = '/_karma_/'; // important,could be any non-trivial path