How to use the jasmine.phantom function in jasmine

To help you get started, we’ve selected a few jasmine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Animatron / player / tests / run-for-terminal.html View on Github external
function run_tests(on_finish, specs_to_run) {
        if (!window.__anm_conf) window.__anm_conf = {};
        window.__anm_conf.forceWindowScope = true;

        queue(require)(
                [ _files['jasmine'],
                  // _files['jasmine.html'],
                  _files['jasmine.tap'],
                  _files['jasmine.phantom'],
                  _files['vnd.matrix'],
                  _files['anm.dom-engine'], // FIXME: switch to test-engine
                  _files['anm.init'],
                  _files['anm.player'],
                  _files['anm.collisions'],
                  //_files['anm.intact-import'], // FIXME: enable
                  _files['anm.import'],
                  _files['anm.audio'],
                  _files['anm.audio-export'],
                  _files['anm.scripting'],
                  _files['anm.shapes'],
                  _files['tst.matchers'],
                  _files['tst.mocks'],
                  _files['tst.utils'],
                  _files['tst.engine']
          ], function() {
github Animatron / player / tests / run-for-teamcity.html View on Github external
function run_tests(on_finish, phantom) {
        if (!window.__anm_conf) window.__anm_conf = {};
      window.__anm_conf.forceWindowScope = true;

        queue(require)(
                [ _files['jasmine'],
                  // _files['jasmine.html'],
                  _files['jasmine.teamcity'],
                  _files['jasmine.phantom'],
                  _files['vnd.matrix'],
                  _files['anm.dom-engine'], // FIXME: switch to test-engine
                  _files['anm.init'],
                  _files['anm.player'],
                  _files['anm.collisions'],
                  _files['anm.intact-import'],
                  _files['tst.matchers'],
                  _files['tst.mocks'],
                  _files['tst.utils'],
                  _files['tst.engine']
          ], function() {
            anm.switchEngineTo(TestEngine);
            loadJasmine(window, [ new jasmine.TeamcityReporter(),
                                  new jasmine.PhantomReporter({ onFinish: on_finish }) ],
                                [ '*' ]);
          }