-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add airtap for continuous browser tests * ad-hoc fixes for browser tests * comment out failing browser tests * restore safari * Updated. * more airtap quirks * remove --no-coverage for airtap * better sauce credentials for travis * Maybe better env variables for airtap * removed sauce credentials from .travis.yml * added back all browsers * added back loopback host * Updated README links for sauce and travis * Suport for IE11
- Loading branch information
Showing
9 changed files
with
148 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sauce_connect: true | ||
browsers: | ||
- name: chrome | ||
version: latest | ||
platform: Windows 10 | ||
- name: internet explorer | ||
version: latest | ||
platform: Windows 10 | ||
- name: firefox | ||
version: latest | ||
platform: Windows 10 | ||
- name: safari | ||
version: latest | ||
platform: Mac 10.13 | ||
- name: microsoftedge | ||
version: latest | ||
platform: Windows 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules/ | |
coverage | ||
package-lock.json | ||
*.tap | ||
.airtaprc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
'use strict'; | ||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
|
||
var codes = {}; | ||
|
||
function createErrorType(code, message, Base) { | ||
if (!Base) { | ||
Base = Error; | ||
} | ||
|
||
function getMessage(arg1, arg2) { | ||
if (typeof message === 'string') { | ||
return message; | ||
} else { | ||
return message(arg1, arg2); | ||
} | ||
} | ||
|
||
var NodeError = function (_Base) { | ||
_inherits(NodeError, _Base); | ||
|
||
function NodeError(arg1, arg2) { | ||
_classCallCheck(this, NodeError); | ||
|
||
return _possibleConstructorReturn(this, (NodeError.__proto__ || Object.getPrototypeOf(NodeError)).call(this, getMessage(arg1, arg2))); | ||
} | ||
|
||
return NodeError; | ||
}(Base); | ||
|
||
NodeError.prototype.name = Base.name; | ||
NodeError.prototype.code = code; | ||
|
||
codes[code] = NodeError; | ||
} | ||
|
||
createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { | ||
return 'The value "' + value + '" is invalid for option "' + name + '"'; | ||
}, TypeError); | ||
createErrorType('ERR_INVALID_ARG_TYPE', 'argument must be of the right type', TypeError); | ||
createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); | ||
createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { | ||
return 'The ' + name + ' method is not implemented'; | ||
}); | ||
createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'premature close'); | ||
createErrorType('ERR_STREAM_DESTROYED', 'the stream was destroyed'); | ||
createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); | ||
createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); | ||
createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); | ||
createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); | ||
createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { | ||
return 'Unknown encoding: ' + arg; | ||
}, TypeError); | ||
createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); | ||
|
||
module.exports.codes = codes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters