Giter VIP home page Giter VIP logo

Comments (3)

IgorMinar avatar IgorMinar commented on May 5, 2024

What's the problem with using Chrome in your setup? If it's available, Karma should be able to use it.

PhantomJS is not a browser. It is not compatible with Firefox or Chrome. Your users do not use phantomjs to run your app. So it makes no sense to run tests in PhantomJS.

Also debugging test failures in PhantomJS is a PITA.

from angular-phonecat.

IgorMinar avatar IgorMinar commented on May 5, 2024

We should really just address the issue of using chrome or other modern browser in your environment. Karma can launch Chrome on windows, so I don't quite understand what's the problem.

from angular-phonecat.

adityamenon avatar adityamenon commented on May 5, 2024

Sorry to have created an issue of no real consequence. After a little fiddling to resolve the ENOENT error in Windows (also, I should have just RTFM), Karma works great from cmd. I'm not really particular that it should work in Vagrant alone, and maybe it is foolhardy to try now when Chrome doesn't know how to work without GTK & X11 initialized. Hopefully in the future this will be frictionless...

The issue with using Chrome is, I realized, myself. There is a guide to run Chrome with xvfb, but I could not replicate the results. I just got varying errors with issue I tried to fix (yesterday it was missing fonts today it is something else) and keep getting output like:

[0521/213125:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[0521/213125:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
Xlib:  extension "RANDR" missing on display ":99".
[2207:2234:0521/213125:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[2207:2230:0521/213125:ERROR:object_proxy.cc(624)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd'
: no such name
[2207:2230:0521/213125:ERROR:object_proxy.cc(624)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd'
: no such name
[2207:2207:0521/213126:ERROR:object_proxy.cc(529)] Failed to call method: org.chromium.Mtpd.EnumerateStorages: object_path= /org/chromium/Mtpd: org.freedesktop.DBus.Error.
ServiceUnknown: The name org.chromium.Mtpd was not provided by any .service files
[0521/213126:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[0521/213126:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[0521/213126:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[0521/213126:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[0521/213126:ERROR:nss_util.cc(90)] Failed to create /home/vagrant/.pki/nssdb directory.
[2207:2207:0521/213126:ERROR:extension_prefs.cc(1520)] Bad or missing pref 'version' for extension 'aohghmighlieiainnegkcijnfilokake'
[2207:2207:0521/213126:ERROR:extension_prefs.cc(1520)] Bad or missing pref 'version' for extension 'apdfllckaahabafndbhieahigkjlhalf'
[2207:2207:0521/213126:ERROR:extension_prefs.cc(1520)] Bad or missing pref 'version' for extension 'coobgpohoikkiipiblmjeljniedjpjpf'
[2207:2207:0521/213126:ERROR:extension_prefs.cc(1520)] Bad or missing pref 'version' for extension 'blpcfgokakmgnkcojhhkbfbldkacnbeo'
[2207:2207:0521/213126:ERROR:extension_prefs.cc(1520)] Bad or missing pref 'version' for extension 'pjkljhegncpnkpknbcohdijeoejaedia'

I don't know if this is just permissions but trying to run as root failed because Chrome would 'refuse' to do so...

from angular-phonecat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.