Skip to content

Commit

Permalink
remove outdated XRegExp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed May 22, 2012
1 parent 6293565 commit 2ef6e71
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tests/cases/015_xregexp.html
Expand Up @@ -9,20 +9,8 @@

test('test XRegExp', function()
{
(function(){
var desc = 'Overridden RegExp.exec on numeric arguments with empty captures',
match;
try {
match = /(x)?(\d)(\d)/.exec( 213 );
ok(match, desc);
ok(match[0] === "21", 'matched string');
ok(match[1] === undefined, 'empty capture group is undefined');
ok(match[2] === "2", 'matched capture group returned expected string');
ok(match[3] === "1", 'matched capture group returned expected string');
} catch( ex ) {
ok(false, 'Caught Exception: ' + desc + '(' + ex.description + ')');
}
})();
expect(0);
// Previous tests are obsolete since XRegExp v2+ doesn't override native methods by default
});
});
</script>

0 comments on commit 2ef6e71

Please sign in to comment.