karma-runner/karma

script-launcher : bad script browser recognition

Open

#754 aberto em 23 de set. de 2013

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1.703 forks)batch import
help wantedtype: backlogtype: feature

Métricas do repositório

Stars
 (11.918 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Hi all, just wanted to note that after updating to latest karma (0.10.2) , if someone's got problem with "script browsers" ( we use a .bat to run IE tester with specific IE versions) , it could be because of the "browser type recognition". It gets recognized as "script browser" only if it's path it's absolute

lib\launcher.js line 19

 // TODO(vojta): determine script from name
      if (name.indexOf('/') !== -1) {
        name = 'Script';
      }

we just put a temporary work-around like this

 // TODO(vojta): determine script from name
      if (name.indexOf('/') !== -1  || name.indexOf('.bat') !== -1) {
        name = 'Script';
      }

Guia do colaborador