Skip to content

Commit

Permalink
Compare the ES6 sticky (y) property for RegExp. Can't add to tests yet.
Browse files Browse the repository at this point in the history
Fixes #284 - deepEqual for RegExp should compare
  • Loading branch information
jzaefferer committed Aug 17, 2012
1 parent 561d6b7 commit 9e73c8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ QUnit.load = function() {
}
}
moduleFilterHtml += "</select>";

// `userAgent` initialized at top of scope
userAgent = id( "qunit-userAgent" );
if ( userAgent ) {
Expand Down Expand Up @@ -1020,7 +1020,7 @@ QUnit.load = function() {
addEvent( moduleFilter, "change", function() {
var selectBox = moduleFilter.getElementsByTagName("select")[0],
selectedModule = decodeURIComponent(selectBox.options[selectBox.selectedIndex].value);

window.location = QUnit.url( { module: ( selectedModule === "" ) ? undefined : selectedModule } );
});
toolbar.appendChild(moduleFilter);
Expand Down Expand Up @@ -1433,7 +1433,8 @@ QUnit.equiv = (function() {
a.global === b.global &&
// (gmi) ...
a.ignoreCase === b.ignoreCase &&
a.multiline === b.multiline;
a.multiline === b.multiline &&
a.sticky === b.sticky;
},

// - skip when the property is a method of an instance (OOP)
Expand Down

0 comments on commit 9e73c8a

Please sign in to comment.