Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor.

  • Loading branch information...
commit 9d7aefcc048d7ab5fd120c4d2754ff569e11f0ee 1 parent 5d0cf37
@slevithan authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/spec/s-xregexp-methods.js
View
7 tests/spec/s-xregexp-methods.js
@@ -828,6 +828,9 @@ describe('XRegExp.isRegExp()', function() {
// Cleanup
iframe.parentNode.removeChild(iframe);
+ } else {
+ // Keep the assertion count consistent cross-environment
+ expect(typeof document).toBe('undefined');
}
});
@@ -1069,7 +1072,7 @@ describe('XRegExp.matchChain()', function() {
describe('XRegExp.replace()', function() {
/*
- * NOTE: These specs should mirror those for RegExp.prototype.replace as closely as possible.
+ * NOTE: These specs should mirror those for String.prototype.replace as closely as possible.
*/
/*
@@ -1170,7 +1173,7 @@ describe('XRegExp.replaceEach()', function() {
describe('XRegExp.split()', function() {
/*
- * NOTE: These specs should mirror those for RegExp.prototype.split as closely as possible.
+ * NOTE: These specs should mirror those for String.prototype.split as closely as possible.
*/
it('should pass tests with a variety of subjects, separators, and limits', function() {
Please sign in to comment.
Something went wrong with that request. Please try again.