Sha256: f4a3c4a6c5ea77d4399aaceb49a0bad13db4e1bf2b81dd2160489cff7e823eb2

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

// This is the only file that adds things to the global namespace. To
// simulate, in Node, the appearance of running in a browser, with
// files loaded by <script> tags

// Because it needs to pollute the global namespace, it has been
// written in JavaScript, because CoffeeScript protects the global
// namespace very effectively.

coffee = require('coffee-script')
sinon = require('sinon');
should = require('should');
date = require('date');

underscore = require('underscore');
_ = underscore;

exports.tw = require('bridge').tw;

function recursiveExtend(moduleToExtend, module) {
  _.each(module, function (value, key) {
    if (moduleToExtend[key] == null) moduleToExtend[key] = {};
    if (typeof value == "Object") {
      recursiveExtend(moduleToExtend[key], value);
    } else {
      _.extend(moduleToExtend[key], module[key]);
    }
  });
}

function getPageObjectForPageName(pageName){
  var pageObject;
  return pageObject;
}

function getWidget(name) {
  return tw.bridge.widgets.widget(name)
}

function showDialog(name) {
  return tw.bridge.dialog.display(name)
}

function triggerTimer(name){
  return tw.bridge.timers.triggerTimer(name)
}

exports.getPageObjectForPageName = getPageObjectForPageName;
exports.getWidget = getWidget;
exports.triggerTimer = triggerTimer;

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
calatrava-0.6.6 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.5 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.4 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.3 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.2 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.1 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.6.0 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.5.0 lib/calatrava/templates/kernel/features/support/spec_helper.js
calatrava-0.0.1 lib/calatrava/templates/kernel/features/support/spec_helper.js