Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add querystring test for hasOwnProperty usage
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 15, 2011
1 parent 98990b9 commit b3af074
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/simple/test-querystring.js
Expand Up @@ -49,9 +49,10 @@ var qsTestCases = [
[' foo = bar ', '%20foo%20=%20bar%20', {' foo ': ' bar '}],
['foo=%zx', 'foo=%25zx', {'foo': '%zx'}],
['foo=%EF%BF%BD', 'foo=%EF%BF%BD', {'foo': '\ufffd' }],
[ 'toString=foo&valueOf=bar&__defineGetter__=baz',
'toString=foo&valueOf=bar&__defineGetter__=baz',
{ toString: 'foo',
[ 'hasOwnProperty=x&toString=foo&valueOf=bar&__defineGetter__=baz',
'hasOwnProperty=x&toString=foo&valueOf=bar&__defineGetter__=baz',
{ hasOwnProperty: 'x',
toString: 'foo',
valueOf: 'bar',
__defineGetter__: 'baz' } ]
];
Expand Down

0 comments on commit b3af074

Please sign in to comment.