Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Compare the ES6 sticky (y) property for RegExp. Can't add to tests yet. Fixes #284...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 11:45:51 +0000 (13:45 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 11:45:51 +0000 (13:45 +0200)
qunit/qunit.js

index cf3e6b1..e6d5831 100644 (file)
@@ -949,7 +949,7 @@ QUnit.load = function() {
                }
        }
        moduleFilterHtml += "</select>";
-       
+
        // `userAgent` initialized at top of scope
        userAgent = id( "qunit-userAgent" );
        if ( userAgent ) {
@@ -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);
@@ -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)

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf