Make all tests use syntax compatible with IE6/7/8
This commit is contained in:
committed by
Davis W. Frank & Rajan Agaskar
parent
fd91433792
commit
8b02bf731b
@@ -82,7 +82,7 @@ describe("jasmine.Matchers", function() {
|
||||
expect((match(/[abc]/gm).toNotEqual(/1/i))).toPass();
|
||||
|
||||
// only test if the browser supports the sticky option on a regExp see pull #234
|
||||
if (RegExp.prototype.sticky !== undefined) {
|
||||
if (typeof RegExp.prototype.sticky !== 'undefined') {
|
||||
var sticky_regexp = new RegExp("[abc]", "y");
|
||||
expect((match(sticky_regexp).toEqual(/1/i))).toFail();
|
||||
expect((match(sticky_regexp).toNotEqual(/1/i))).toPass();
|
||||
|
||||
Reference in New Issue
Block a user