How to use the intern/dojo/Evented.apply function in intern

To help you get started, we’ve selected a few intern 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 mozilla / platform-status / tests / support / SeleniumTunnel.js View on Github external
function SeleniumTunnel(kwArgs) {
    Evented.apply(this, arguments);
    for (var key in kwArgs) {
      Object.defineProperty(this, key, Object.getOwnPropertyDescriptor(kwArgs, key));
    }

    this.architecture = process.arch;
    this.auth = null;
    this.directory = testsVarDir;
    this.executable = seleniumFilename;
    this.hostname = 'localhost';
    this.pathname = '/wd/hub';
    this.platform = process.platform;
    this.port = 4444;
    this.protocol = 'http';
    this.proxy = null;
    this.tunnelId = null;
    this.url = seleniumDownloadUrl;